summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryetist <[email protected]>2015-06-18 23:35:22 +0800
committerinfirit <[email protected]>2015-08-26 14:44:57 +0200
commit251c46b14ff1cdc3c80c7c1aa04ea1e34ed6f945 (patch)
tree9088808586dfd3b9200bcf414e2b201f6150192d
parent613791d9eef6be44f820befd1a09da75c8fbc1b5 (diff)
downloadmate-panel-251c46b14ff1cdc3c80c7c1aa04ea1e34ed6f945.tar.bz2
mate-panel-251c46b14ff1cdc3c80c7c1aa04ea1e34ed6f945.tar.xz
Gtk3: Don't use deprecated gdk_app_launch_context_new
-rw-r--r--mate-panel/libpanel-util/panel-launch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-panel/libpanel-util/panel-launch.c b/mate-panel/libpanel-util/panel-launch.c
index ce5d97c7..66502b6d 100644
--- a/mate-panel/libpanel-util/panel-launch.c
+++ b/mate-panel/libpanel-util/panel-launch.c
@@ -109,7 +109,12 @@ panel_app_info_launch_uris (GAppInfo *appinfo,
g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+#if GTK_CHECK_VERSION(3, 0, 0)
+ GdkDisplay *display = gdk_display_get_default ();
+ context = gdk_display_get_app_launch_context (display);
+#else
context = gdk_app_launch_context_new ();
+#endif
gdk_app_launch_context_set_screen (context, screen);
gdk_app_launch_context_set_timestamp (context, timestamp);