summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-07-25 15:13:25 +0200
committerStefano Karapetsas <[email protected]>2013-07-25 15:13:25 +0200
commita823c728f14e2600fbbcd6ad14e6305331e80bf2 (patch)
tree429b9f7992d41b518470e148e5f41d55cbf9b405 /src/file-manager
parenta4f91079a8a8dda83614148ac50e7ef7e162c9b1 (diff)
downloadcaja-a823c728f14e2600fbbcd6ad14e6305331e80bf2.tar.bz2
caja-a823c728f14e2600fbbcd6ad14e6305331e80bf2.tar.xz
src: Add GTK3/GDK3 support
Diffstat (limited to 'src/file-manager')
-rw-r--r--src/file-manager/fm-directory-view.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 8b1afaaf..0309f86b 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -10098,7 +10098,23 @@ fm_directory_view_move_copy_items (const GList *item_uris,
if (screen == NULL) {
screen = gdk_screen_get_default ();
}
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GdkAppLaunchContext *launch_context;
+ GAppInfo *app_info = NULL;
+ app_info = g_app_info_create_from_commandline (command,
+ NULL,
+ G_APP_INFO_CREATE_NONE,
+ NULL);
+ if (app_info != NULL) {
+ launch_context = gdk_app_launch_context_new ();
+ gdk_app_launch_context_set_screen (launch_context, screen);
+ g_app_info_launch (app_info, NULL, G_APP_LAUNCH_CONTEXT (launch_context), NULL);
+ g_object_unref (launch_context);
+ g_object_unref (app_info);
+ }
+#else
gdk_spawn_command_line_on_screen (screen, command, NULL);
+#endif
g_free (command);
return;