diff options
author | Denis Gorodnichev <[email protected]> | 2014-02-27 17:16:51 +0400 |
---|---|---|
committer | Denis Gorodnichev <[email protected]> | 2014-02-27 17:16:51 +0400 |
commit | e95d24559060365eb4fee8154ad82434bf3c8a0a (patch) | |
tree | 1c62646abdff4ae1c191fc4f4f86cfb3933c1ad5 /libmate-desktop/mate-desktop-utils.c | |
parent | 0e7cc64581b44f4f80fa392ee9bff0a139f06785 (diff) | |
download | mate-desktop-e95d24559060365eb4fee8154ad82434bf3c8a0a.tar.bz2 mate-desktop-e95d24559060365eb4fee8154ad82434bf3c8a0a.tar.xz |
gtk3: GdkRGBA support
Diffstat (limited to 'libmate-desktop/mate-desktop-utils.c')
-rw-r--r-- | libmate-desktop/mate-desktop-utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmate-desktop/mate-desktop-utils.c b/libmate-desktop/mate-desktop-utils.c index 985278f..cac00ee 100644 --- a/libmate-desktop/mate-desktop-utils.c +++ b/libmate-desktop/mate-desktop-utils.c @@ -195,7 +195,12 @@ mate_gdk_spawn_command_line_on_screen (GdkScreen *screen, const gchar *command, appinfo = g_app_info_create_from_commandline (command, NULL, G_APP_INFO_CREATE_NONE, error); if (appinfo) { +#if GTK_CHECK_VERSION(3, 0, 0) + GdkDisplay *display = gdk_screen_get_display(screen); + context = gdk_display_get_app_launch_context(display); +#else context = gdk_app_launch_context_new (); +#endif gdk_app_launch_context_set_screen (context, screen); res = g_app_info_launch (appinfo, NULL, G_APP_LAUNCH_CONTEXT (context), error); g_object_unref (context); |