Re: GTK 2.2 compatibility and GTK 2.4+ widgets



Gabriele Greco wrote:
There is a way to know if a widget is available only in a particular 
version of GTK 2.x?

I'm developing an application on a GTK 2.4 machine with the target to be 
able to run it also on GTK 2.2, since  most distributions of the past 
two years still has that installed.

It's the second time I have to disable a feature I've added since I've 
discovered (compiling on a GTK 2.2 machine) that the widget doesn't 
exists on that! (gtk_combo_entry, gtk_color_button...)

It will be nice to have in the widget documentation the GTK version in 
whitch a particular widget has been introduced.

It is always mentioned in documentation.

I use widgets from 2.4, but I have #if'ed variants in my source code
so that it can work on 2.0 and up (though a few really minor things
disappear on 2.0 and 2.2, because they were too difficult to backport
for the little gain.)

About GtkColorButton---I have it included in the source of my project.
The whole file is conditioned on GTK+ version being less than 2.4, so
on 2.4 my program simply uses the library version.

Paul





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