GNOME Bugzilla – Bug 612489
Does not compile with -DGSEAL_ENABLED
Last modified: 2010-03-10 22:41:13 UTC
This module does not build with -DGSEAL_ENABLED. See http://live.gnome.org/GnomeGoals/UseGseal . Note that maybe this report cannot be fixed yet, as GTK+ still misses some accessor functions (see bug 588389, bug 597610) needed for sealing. Also see http://live.gnome.org/GTK%2B/3.0/PendingSealings for current status. The jhbuild output posted here of course only lists the very first error when trying to compile. test-display.c: In function ‘view_pixbuf’: test-display.c:634: error: ‘GtkWidget’ has no member named ‘window’ test-display.c:635: error: ‘GtkWidget’ has no member named ‘window’ test-display.c:636: error: ‘GtkWidget’ has no member named ‘window’ test-display.c:636: error: ‘GtkWidget’ has no member named ‘window’ make[2]: *** [test-display.o] Error 1 make[2]: Leaving directory `/home/andre/svn-gnome/librsvg'
Totally uneducated guess: --- a/test-display.c +++ b/test-display.c @@ -631,9 +631,9 @@ view_pixbuf (ViewerCbInfo * info, int xid, const char *color) #ifdef ENABLE_XEMBED if (xid > 0) { - XReparentWindow (GDK_WINDOW_XDISPLAY (win->window), - GDK_WINDOW_XID (win->window), xid, 0, 0); - XMapWindow (GDK_WINDOW_XDISPLAY (win->window), GDK_WINDOW_XID (win->window)); + XReparentWindow (GDK_WINDOW_XDISPLAY (gtk_widget_get_window(win)), + GDK_WINDOW_XID (gtk_widget_get_window(win)), xid, 0, 0); + XMapWindow (GDK_WINDOW_XDISPLAY (gtk_widget_get_window(win)), GDK_WINDOW_XID (gtk_widget_get_window(win))); } #endif } gtk+-2.0 >= 2.16.0 required already, and gtk_widget_get_window() exists since 2.14. Compiles fine after applying.
the patch looks correct to me
Thanks. Committed: http://git.gnome.org/browse/librsvg/commit/?id=f1fc86c474d714f3d0485b690f09b2410648a9cb