diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-21 20:07:43 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-25 14:35:59 +0100 |
commit | 130906c9182c71a6049eca472f8d3b91804124cf (patch) | |
tree | ecbd366fda28083d4bc1101fae7ff0b4fb23484f /src | |
parent | b058255bef4dab6ce19c6b056af2b32cd2e386a0 (diff) | |
download | caja-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')
-rw-r--r-- | src/caja-connect-server-dialog-main.c | 4 |
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))); |