[epiphany] Condition calling gdk_x11 API with build and runtime checks



commit 3b5c00ab4f4ee6eecca866cd35a5d05916d2bbfb
Author: Gustavo Noronha Silva <gustavo noronha collabora com>
Date:   Thu Aug 15 18:03:04 2013 -0300

    Condition calling gdk_x11 API with build and runtime checks

 lib/ephy-gui.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c
index 2f5f812..d67bc02 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
        }
 
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]