diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-01-06 14:27:05 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-01-09 17:22:46 -0500 |
commit | 93923f66225434e42ef6bb8588e7d3fbdb3409a4 (patch) | |
tree | e8d58d82c984a671261e162255fa29d205e7de79 /src/nautilus-window-manage-views.c | |
parent | f5db1b3062a42a649fbc11e4272399cfa70dc772 (diff) | |
download | nautilus-93923f66225434e42ef6bb8588e7d3fbdb3409a4.tar.gz |
window: fold nautilus_window_allow_up() into its only caller
Diffstat (limited to 'src/nautilus-window-manage-views.c')
-rw-r--r-- | src/nautilus-window-manage-views.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c index 41791614e..b2d78ac21 100644 --- a/src/nautilus-window-manage-views.c +++ b/src/nautilus-window-manage-views.c @@ -261,6 +261,8 @@ handle_go_elsewhere (NautilusWindowSlot *slot, void nautilus_window_update_up_button (NautilusWindow *window) { + GtkAction *action; + GtkActionGroup *action_group; NautilusWindowSlot *slot; gboolean allowed; GFile *parent; @@ -276,7 +278,14 @@ nautilus_window_update_up_button (NautilusWindow *window) } } - nautilus_window_allow_up (window, allowed); + action_group = nautilus_window_get_main_action_group (window); + + action = gtk_action_group_get_action (action_group, + NAUTILUS_ACTION_UP); + gtk_action_set_sensitive (action, allowed); + action = gtk_action_group_get_action (action_group, + NAUTILUS_ACTION_UP_ACCEL); + gtk_action_set_sensitive (action, allowed); } static void |