Re: [Mark Mealman <mmealman concentric net>] The new libgtk 1.2_1.2.3-1 breaks gqmpeg 0.4.6-5



Havoc Pennington <rhp@zirx.pair.com> wrote:

>>On 18 May 1999, Ben Gertzfield wrote:
>> Is this person's problem because GTK+ 1.2 isn't really backwards
>> compatible (I would not be surprised ;) or for other reasons?
>> 
>
>The problem is that he's calling gtk_widget_set_events() on a realized
>widget, or maybe Gtk is; either way, it's a bug, because that function
>only works if the widget is not realized (thus the error message :-)
>
>You're supposed to use gtk_widget_add_events() if the widdget is already
>realized.
>
>(I have no idea if this changed between Gtk versions, I'm just telling you
>what the code does now. :-)

This is a bug in gqmpeg 0.5.1 that was exposed by the release of gtk 1.2.3,
the new gtk version realizes a widget when it is added as a child of one that
is already realized. I quickly released gqmpeg 0.5.2 to fix this.

The fix was simple: move the gtk_widget_set_events() calls to before the
widget is added to it's parent. (in this case a 1 line move)

-John
--
John Ellis <johne@bellatlantic.net>
http://gqview.netpedia.net



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