[nautilus/antoniof/context-menu-simplification: 5/5] Revert "files-view: close menu when new folder prompt appears"
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/antoniof/context-menu-simplification: 5/5] Revert "files-view: close menu when new folder prompt appears"
- Date: Fri, 27 Jul 2018 15:03:37 +0000 (UTC)
commit 4214f84c2b2e7204b99636fb5ad9339874e550f7
Author: António Fernandes <antoniof gnome org>
Date: Fri Jul 27 11:13:34 2018 +0100
Revert "files-view: close menu when new folder prompt appears"
This reverts commit 0453216b8a6731d92cfcd6405c323d76c0c1182c.
Nowadays, the view menu doesn't have a new folder action so this
is not needed anymore.
src/nautilus-files-view.c | 5 -----
src/nautilus-window.c | 9 ---------
src/nautilus-window.h | 1 -
3 files changed, 15 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index cd905628f..c68e85e79 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -2450,13 +2450,8 @@ action_new_folder (GSimpleAction *action,
GVariant *state,
gpointer user_data)
{
- NautilusWindow *window;
-
g_assert (NAUTILUS_IS_FILES_VIEW (user_data));
- window = nautilus_files_view_get_window (NAUTILUS_FILES_VIEW (user_data));
- nautilus_window_hide_view_menu (window);
-
nautilus_files_view_new_folder (NAUTILUS_FILES_VIEW (user_data), FALSE);
}
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 45999afb6..824bdf0b1 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -793,15 +793,6 @@ update_cursor (NautilusWindow *window)
}
}
-void
-nautilus_window_hide_view_menu (NautilusWindow *window)
-{
- GAction *menu_action;
-
- menu_action = g_action_map_lookup_action (G_ACTION_MAP (window), "view-menu");
- g_action_change_state (menu_action, g_variant_new_boolean (FALSE));
-}
-
void
nautilus_window_reset_menus (NautilusWindow *window)
{
diff --git a/src/nautilus-window.h b/src/nautilus-window.h
index 15dc62993..d5a5ecd91 100644
--- a/src/nautilus-window.h
+++ b/src/nautilus-window.h
@@ -76,7 +76,6 @@ void nautilus_window_back_or_forward (NautilusWindow *window,
gboolean back,
guint distance,
NautilusWindowOpenFlags flags);
-void nautilus_window_hide_view_menu (NautilusWindow *window);
void nautilus_window_reset_menus (NautilusWindow *window);
GtkWidget * nautilus_window_get_notebook (NautilusWindow *window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]