From 2cbb2607760488ffd609880203c22fdf60c38cf6 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 28 Mar 2016 18:23:30 -0300 Subject: files-view: add ::stop-loading action This action will be consumed by the actionbar, to simplify the development of the stop button. --- src/nautilus-files-view.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index 8eed98e89..35369757f 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -6811,6 +6811,14 @@ action_detect_media (GSimpleAction *action, } } +static void +action_stop_loading (GSimpleAction *action, + GVariant *state, + gpointer user_data) +{ + nautilus_files_view_stop_loading (user_data); +} + const GActionEntry view_entries[] = { /* Toolbar menu */ @@ -6874,7 +6882,9 @@ const GActionEntry view_entries[] = { "invert-selection", action_invert_selection }, { "open-file-and-close-window", action_open_file_and_close_window }, /* Warning dialog for the change of the shorcut to move to trash */ - { "show-move-to-trash-shortcut-changed-dialog", action_show_move_to_trash_shortcut_changed_dialog } + { "show-move-to-trash-shortcut-changed-dialog", action_show_move_to_trash_shortcut_changed_dialog }, + /* Helper */ + { "stop-loading", action_stop_loading } }; static gboolean -- cgit v1.2.1