GNOME Bugzilla – Bug 739353
Unable to build when GDK_WINDOWING_X11 not defined
Last modified: 2015-04-21 09:01:56 UTC
When trying to build zenity against gtk3 (3.14.4) built against quartz, rather than X11, src/util.h won't compile due to the following: void zenity_util_show_dialog (GtkWidget *widget, Window parent); "Window" is not defined unless GDK_WINDOWING_X11 is defined. I tried changing: #ifdef GDK_WINDOWING_X11 #include <gdk/gdkx.h> #endif to: #ifdef GDK_WINDOWING_X11 #include <gdk/gdkx.h> #else typedef gint Window; #endif This builds and is working for me, but there is probably a more correct solution.
I'm not a GDK expert, I think it's okay, do you want to test more extensively, and then submit a patch?
Created attachment 289638 [details] [review] utils.h patch Here's the patch. Everything seems to be working with my gtk-quartz build with this, although it does generate the following output: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Fixed on master. Thanks for the patch