Re: Fails to compile with Gtk 2.20



Brian,

Attached is a patch I just created to replace the deprecated features.
 There's a problem though.  This patch bumps the build dependency up
to gtk+ 2.20 as the recommended replacements were just introduced in
gtk+ 2.20.  Not sure the best way to get around this.

-Eric

On Wed, May 19, 2010 at 8:45 AM, Brian Phelps <lm317t gmail com> wrote:
> Thanks for the update Eric.
>
> If you find a patch for this let me know and I'll apply it and release
> a new version
>
> On Wed, May 19, 2010 at 11:40 AM, Eric Work <work eric gmail com> wrote:
>> 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
>> _______________________________________________
>> gtkdatabox-list mailing list
>> gtkdatabox-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtkdatabox-list
>>
>

Attachment: gtkdatabox-0.9.1.1-gtk-2.20.patch
Description: Binary data



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