diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2016-03-28 18:23:30 -0300 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2018-03-22 20:20:26 +0100 |
commit | bb58bef5045adaccaa73850190aa123849eda3ff (patch) | |
tree | 048f8319f49f477fffe7528548ecbf63b1298ecb | |
parent | 1abf0a1895a93b365dfd3870545825e4ee6e989a (diff) | |
download | nautilus-bb58bef5045adaccaa73850190aa123849eda3ff.tar.gz |
files-view: add ::stop-loading action
This action will be consumed by the actionbar, to simplify
the development of the stop button.
-rw-r--r-- | src/nautilus-files-view.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index 4472930d1..25fc421ad 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -6823,6 +6823,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 */ @@ -6886,7 +6894,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 |