diff options
author | António Fernandes <antoniof@gnome.org> | 2021-01-15 00:46:49 +0000 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2021-01-15 17:01:09 +0000 |
commit | f3843e71132fce52be0bf0f36979229bbd4392e5 (patch) | |
tree | fc224844b49757a5ecd829cdc2c9f8d8097013c3 /src/nautilus-window-slot.c | |
parent | 0002f2b9f5af4c3406b06821664556f6cb0c29cd (diff) | |
download | nautilus-wip/antoniof/make-window-slot-final.tar.gz |
files-view: Make override method privatewip/antoniof/make-window-slot-final
Always call the parent polimorphic method instead.
Diffstat (limited to 'src/nautilus-window-slot.c')
-rw-r--r-- | src/nautilus-window-slot.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index 23fa4ac94..a8a2865ca 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -262,7 +262,7 @@ nautilus_window_slot_get_view_for_location (NautilusWindowSlot *self, /* Save the current view, so we can go back after places view */ if (NAUTILUS_IS_FILES_VIEW (self->content_view)) { - self->view_mode_before_places = nautilus_files_view_get_view_id (self->content_view); + self->view_mode_before_places = nautilus_view_get_view_id (self->content_view); } return view; @@ -277,7 +277,7 @@ nautilus_window_slot_get_view_for_location (NautilusWindowSlot *self, if (self->view_mode_before_search == NAUTILUS_VIEW_INVALID_ID && NAUTILUS_IS_FILES_VIEW (self->content_view)) { - self->view_mode_before_search = nautilus_files_view_get_view_id (self->content_view); + self->view_mode_before_search = nautilus_view_get_view_id (self->content_view); } view_id = g_settings_get_enum (nautilus_preferences, NAUTILUS_PREFERENCES_SEARCH_VIEW); } @@ -298,7 +298,7 @@ nautilus_window_slot_get_view_for_location (NautilusWindowSlot *self, } else { - view_id = nautilus_files_view_get_view_id (self->content_view); + view_id = nautilus_view_get_view_id (self->content_view); } } @@ -404,7 +404,7 @@ nautilus_window_slot_sync_actions (NautilusWindowSlot *self) g_simple_action_set_enabled (G_SIMPLE_ACTION (action), NAUTILUS_IS_FILES_VIEW (view)); if (g_action_get_enabled (action)) { - variant = g_variant_new_uint32 (nautilus_files_view_get_view_id (view)); + variant = g_variant_new_uint32 (nautilus_view_get_view_id (view)); g_action_change_state (action, variant); } action = g_action_map_lookup_action (G_ACTION_MAP (self->slot_action_group), "files-view-mode-toggle"); @@ -1005,7 +1005,7 @@ action_files_view_mode_toggle (GSimpleAction *action, return; } - current_view_id = nautilus_files_view_get_view_id (self->content_view); + current_view_id = nautilus_view_get_view_id (self->content_view); if (current_view_id == NAUTILUS_VIEW_LIST_ID) { change_files_view_mode (self, NAUTILUS_VIEW_GRID_ID); |