Fails to compile with Gtk 2.20



Brian,

Looks like GtkDatabox fails to compile when using Gtk 2.20 due to the
use of deprecated features.  Previously they were allowed but now they
require special compile options to enable.  You can see the build log
at the following URL:

http://koji.fedoraproject.org/koji/getfile?taskID=2197292&name=build.log

In summary this appears to be the problem:

../gtk/.libs/libgtkdatabox.so: undefined reference to `GTK_WIDGET_REALIZED'
../gtk/.libs/libgtkdatabox.so: undefined reference to `GTK_WIDGET_STATE'
../gtk/.libs/libgtkdatabox.so: undefined reference to `GTK_WIDGET_VISIBLE'
../gtk/.libs/libgtkdatabox.so: undefined reference to `GTK_WIDGET_DRAWABLE'

Searching the web I found this info:

"This is caused by GTK+ 2.20, where those two macros are hidden if
GTK_DISABLE_DEPRECATED is defined while including the headers.

Either this shouldn't be defined or gtk_widget_get_realized() and
gtk_widget_get_visible() should be used instead."

Doesn't look like it should be too hard to fix.

-Eric


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