Source compiling for gtk+ 2.2 and 2.4

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

 



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?

Thanks
Giulio
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Vuoi dimagrire oppure aumentare la massa muscolare o donare tonicità alla tua pelle? Qualunque sia il tuo obiettivo Oliviero.it ti propone dei pacchetti integratori personalizzati.
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2847&d=11-12
_______________________________________________

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