diff options
author | Monsta <[email protected]> | 2015-01-10 13:20:30 +0300 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2015-01-12 14:18:34 +0100 |
commit | 5706c595970bc76e11feb56ed56c190452c076d6 (patch) | |
tree | 7e1127c34c10ef3f865afac5ccc4e03a2882a7b1 /src/file-manager/fm-directory-view.c | |
parent | 54404f04a0e85c08a11f1a7557d1e0bddb34e036 (diff) | |
download | caja-5706c595970bc76e11feb56ed56c190452c076d6.tar.bz2 caja-5706c595970bc76e11feb56ed56c190452c076d6.tar.xz |
use mate_gdk_spawn_command_line_on_screen like other MATE apps do
Closes https://github.com/mate-desktop/caja/pull/370
Diffstat (limited to 'src/file-manager/fm-directory-view.c')
-rw-r--r-- | src/file-manager/fm-directory-view.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index 74fb6067..7efa3494 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -83,6 +83,9 @@ #include <libcaja-private/caja-icon-names.h> #include <libcaja-private/caja-undostack-manager.h> +#define MATE_DESKTOP_USE_UNSTABLE_API +#include <libmate-desktop/mate-desktop-utils.h> + #include <src/glibcompat.h> /* for g_list_free_full */ /* Minimum starting update inverval */ @@ -10195,23 +10198,8 @@ 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 + + mate_gdk_spawn_command_line_on_screen(screen, command, NULL); g_free (command); return; |