Re: Source compiling for gtk+ 2.2 and 2.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2004-12-11 at 14:42 +0100, antongiulio wrote:
> Hi,
> 
> in my little app I have used 'gtkcombobox' widget. In a system with gtk+ 2.4.x installed, it works, but in system with gtk+ =< 2.2 I got errors on compiling.
> 
> Since v2.4 GtkComboBox has replaced 'deprecated' GtkOptionMenu. Is there a way to compile both version of gtk+ library?
> 
> I thought to use:
> 
> #ifdef any_macro_for_gtk_version
> gtkcombobox
> #else
> gtkoptionmenu
> #endif
> 
> Could be it good? Eventually, what is right macro to use?

http://developer.gnome.org/doc/API/2.0/gtk/gtk-Feature-Test-Macros.html

Keith.

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux