ifdef X-specific stuff

gdk_x11_ APIs can only be used inside #ifdef GDK_WINDOWING_X11.
This commit is contained in:
Matthias Clasen 2010-10-28 14:27:04 -04:00 committed by Tristan Van Berkom
parent 22d01c45cc
commit ac0b97aa23

View 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
}
}