[gtk+] ifdef X-specific stuff
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] ifdef X-specific stuff
- Date: Thu, 28 Oct 2010 18:28:19 +0000 (UTC)
commit 7da5cd5fe627d4693285a4a9f4886699fae8477b
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Oct 28 14:27:04 2010 -0400
ifdef X-specific stuff
gdk_x11_ APIs can only be used inside #ifdef GDK_WINDOWING_X11.
gtk/gtkapplication.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 70c9754..a4fe5f4 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -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
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]