summaryrefslogtreecommitdiff
path: root/src/caja-connect-server-dialog-main.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-21 20:07:43 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-25 14:35:59 +0100
commit130906c9182c71a6049eca472f8d3b91804124cf (patch)
treeecbd366fda28083d4bc1101fae7ff0b4fb23484f /src/caja-connect-server-dialog-main.c
parentb058255bef4dab6ce19c6b056af2b32cd2e386a0 (diff)
downloadcaja-130906c9182c71a6049eca472f8d3b91804124cf.tar.bz2
caja-130906c9182c71a6049eca472f8d3b91804124cf.tar.xz
GTK3 general: don't use deprecated gdk_app_launch_context_new()
partially taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-2&id=bd151c8
Diffstat (limited to 'src/caja-connect-server-dialog-main.c')
-rw-r--r--src/caja-connect-server-dialog-main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/caja-connect-server-dialog-main.c b/src/caja-connect-server-dialog-main.c
index 4c80fc16..393cdc88 100644
--- a/src/caja-connect-server-dialog-main.c
+++ b/src/caja-connect-server-dialog-main.c
@@ -82,7 +82,11 @@ caja_connect_server_dialog_display_location_async (CajaConnectServerDialog *self
error = NULL;
uri = g_file_get_uri (location);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ launch_context = gdk_display_get_app_launch_context (gtk_widget_get_display (GTK_WIDGET (self)));
+#else
launch_context = gdk_app_launch_context_new ();
+#endif
gdk_app_launch_context_set_screen (launch_context,
gtk_widget_get_screen (GTK_WIDGET (self)));