summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2016-03-28 18:23:30 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2016-06-20 12:36:28 -0300
commit3b66351f9274696fd8eb5e27976d6bd9f3063ec4 (patch)
treea3a14925611fb7ceacf133407f9e3773d7190edb
parent1b31223df74e0097e8a398e1d001900e18a88c6f (diff)
downloadnautilus-3b66351f9274696fd8eb5e27976d6bd9f3063ec4.tar.gz
files-view: add ::stop-loading action
This action will be consumed by the actionbar, to simplify the development of the stop button. https://bugzilla.gnome.org/show_bug.cgi?id=767874
-rw-r--r--src/nautilus-files-view.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 1e2c93441..a9168dd55 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -6007,6 +6007,14 @@ action_detect_media (GSimpleAction *action,
nautilus_file_list_free (selection);
}
+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 */
{ "zoom-in", action_zoom_in },
@@ -6064,7 +6072,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