cvs: xfce4-panel compile error

Jasper Huijsmans jasper at
Tue Apr 6 17:19:45 CEST 2004

On Tue, Apr 06, 2004 at 02:07:47AM -0400, Brian J. Tarricone wrote:
> heh, you actually left off the important part of the output which is:
> controls.c:577: error: syntax error before "control_items"
> controls.c:577: warning: type defaults to `int' in declaration of 
> `control_items'
> the problem is that, with gtk 2.4, GtkItemFactory is considered 
> deprecated, in favor of the new GtkAction menu stuff.  
> --enable-debug=yes causes GTK_DISABLE_DEPRECATED to be defined, and so 
> you get an error if you try to use any deprecated gtk stuff.  the 
> annoying thing is that porting the code will require #ifdefs for gtk 2.4 
> and gtk < 2.4, since we want to allow gtk 2.2 and 2.0 users to still use 
> xfce4.  personally i don't think it's worth it to do the work, though on 
> the other hand --enable-debug can be quite useful.  anyway, as a 
> workaround, open up panel/Makefile, find references to 
> "-DGTK_DISABLE_DEPRECATED", and remove them.

Aah, yes, I forgot about that. This has to be fixed in libxfce4util,
debug mode should not set G*_DISABLE_DEPRECATED.

On a related note, it might be useful to put some wrapper code in
libxfcegui4 for common gtk2.2/2.4 stuff, most notably the file selector.


More information about the Xfce4-dev mailing list