problem in xfce4-panel code
Jasper Huijsmans
jasper at moongroup.com
Wed Feb 12 08:00:33 CET 2003
Hey Edscott,
Thanks. I never thought of that. I just wrapped the gettext call in a
translate_menu function. That should work, I guess. It's in CVS.
Jasper
On 11 Feb 2003 16:56:46 -0600
edscott wilson garcia <edscott at imp.mx> wrote:
>
> Jasper:
>
> There is a problem in the panel code. In "my.gettext.h" you have:
>
> #if ENABLE_NLS
> # include <libintl.h>
> #else
> # define gettext(Msgid) ((const char *) (Msgid))
> #endif
>
> <libintl.h> defines gettext as a function. If NLS is not enabled, the
> compiler will define it as a macro. Everything is fine here, except
> when you get to line 322 of controls.c:
>
> gtk_item_factory_set_translate_func(factory,
> (GtkTranslateFunc) gettext,
> NULL, NULL);
> Here you are casting gettext as a GtkTranslateFunc. This cannot be
> done to the macro defined above. Alternate code should be provided to
> replace line 322 when ENABLE_NLS is not defined. Otherwise the
> configure script should fail with a big warning if ENABLE_NLS is not
> defined.
>
> saludos,
>
> Edscott
>
>
>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at moongroup.com
> http://moongroup.com/mailman/listinfo/xfce4-dev
--
IRC channel: #xfce on irc.freenode.net
More information about the Xfce4-dev
mailing list