]> Pileus Git - ~andy/gtk/commitdiff
ifdef X-specific stuff
authorMatthias Clasen <mclasen@redhat.com>
Thu, 28 Oct 2010 18:27:04 +0000 (14:27 -0400)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sat, 30 Oct 2010 08:37:01 +0000 (17:37 +0900)
gdk_x11_ APIs can only be used inside #ifdef GDK_WINDOWING_X11.

gtk/gtkapplication.c

index 70c9754177971fb2e8b1335c77f10c39bf91d5cf..a4fe5f4fef5ef0af27e701f573c7c1f8e5a11b4a 100644 (file)
@@ -108,6 +108,7 @@ gtk_application_before_emit (GApplication *application,
   g_variant_iter_init (&iter, platform_data);
   while (g_variant_iter_loop (&iter, "{&sv}", &key, &value))
     {
+#ifdef GDK_WINDOWING_X11
       if (strcmp (key, "desktop-startup-id") == 0)
         {
           GdkDisplay *display;
@@ -117,6 +118,7 @@ gtk_application_before_emit (GApplication *application,
           id = g_variant_get_string (value, NULL);
           gdk_x11_display_set_startup_notification_id (display, id);
        }
+#endif
     }
 }