GNOME Bugzilla – Bug 624350
Toolbar Editor is throwing gtk-critical messages
Last modified: 2010-08-30 21:02:45 UTC
Created attachment 165885 [details] [review] replaces the fake_expose_widget method with a combination of the gtk_offscreen_window and gtk_widget_get_snapshot method. Toolbar Editor is throwing the following error: Gtk-CRITICAL **: gtk_widget_set_window: assertion `window == NULL || GDK_IS_WINDOW (window)' failed. I debugged the problem and it happens during the creation of the Toolbar Separator pixbuf I attached a patch that fixes this by replacing the fake_expose_widget method with a combination of the gtk_offscreen_window and gtk_widget_get_snapshot method.
The copy of toolbar-editor in evince already is fixed for this, it just needs to be applied upstream in libegg and then applied to epiphany.
evince approach is better, i used it to create a new patch. Can this be applied to epiphany now or have we to wait for a new version of libegg?
Created attachment 165919 [details] [review] refactored new_pixbuf_from_widget using gtk_offscreen_window
Created attachment 169114 [details] [review] egg-editable-toolbar: use gtk_offscreen_window to draw widgets Shuts up warnings when using the toolbar editor. Bug #624350
Neither Carlos nor Jorge's patch apply to libegg master, I recreated the patch here. I'd like to push it to libegg before epiphany updates its libegg copy (bug #580557). Anyone knows who keeps an eye on libegg or is it free for all?
Ok. So I committed this in libegg master and then updated epiphany's libegg copy. Everything's nice now :). Thanks!