aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gustavo.noronha@collabora.com>2013-08-16 05:03:04 +0800
committerGustavo Noronha Silva <gns@gnome.org>2013-08-16 05:04:27 +0800
commit3b5c00ab4f4ee6eecca866cd35a5d05916d2bbfb (patch)
treeb795e61f7e4e8aeb4294cdcb16ef29e2f7e90c6b
parentc1390040cedd28446f8fbe46bb6f373950a491ce (diff)
downloadgsoc2013-epiphany-3b5c00ab4f4ee6eecca866cd35a5d05916d2bbfb.tar
gsoc2013-epiphany-3b5c00ab4f4ee6eecca866cd35a5d05916d2bbfb.tar.gz
gsoc2013-epiphany-3b5c00ab4f4ee6eecca866cd35a5d05916d2bbfb.tar.bz2
gsoc2013-epiphany-3b5c00ab4f4ee6eecca866cd35a5d05916d2bbfb.tar.lz
gsoc2013-epiphany-3b5c00ab4f4ee6eecca866cd35a5d05916d2bbfb.tar.xz
gsoc2013-epiphany-3b5c00ab4f4ee6eecca866cd35a5d05916d2bbfb.tar.zst
gsoc2013-epiphany-3b5c00ab4f4ee6eecca866cd35a5d05916d2bbfb.zip
Condition calling gdk_x11 API with build and runtime checks
-rw-r--r--lib/ephy-gui.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c
index 2f5f81252..d67bc02ce 100644
--- a/lib/ephy-gui.c
+++ b/lib/ephy-gui.c
@@ -392,8 +392,14 @@ ephy_gui_window_update_user_time (GtkWidget *window,
if (user_time != 0)
{
gtk_widget_realize (window);
- gdk_x11_window_set_user_time (gtk_widget_get_window (window),
- user_time);
+
+#ifdef GDK_WINDOWING_X11
+ if (GDK_IS_X11_DISPLAY (gdk_display_get_default ()))
+ {
+ gdk_x11_window_set_user_time (gtk_widget_get_window (window),
+ user_time);
+ }
+#endif
}
}