mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 17:00:19 +00:00
ifdef X-specific stuff
gdk_x11_ APIs can only be used inside #ifdef GDK_WINDOWING_X11.
This commit is contained in:
parent
22d01c45cc
commit
ac0b97aa23
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user