Avoid a warning under Wayland

Just having an ifdef is not enough, we need to check the type
of the window at runtime.
This commit is contained in:
Matthias Clasen 2013-03-08 19:44:34 -05:00
parent 8822b07292
commit 1f8286004f

View File

@ -138,6 +138,7 @@ pk_search_mime_async (GtkAppChooserOnline *obj,
#ifdef GDK_WINDOWING_X11
window = gtk_widget_get_window (GTK_WIDGET (parent));
if (GDK_IS_X11_WINDOW (window))
xid = GDK_WINDOW_XID (window);
#endif