diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2015-01-25 12:34:29 +0000 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2015-01-25 12:34:29 +0000 |
commit | 81f618714c50a727db1baa6e84806b885397a5b2 (patch) | |
tree | eac35b9bba41a3f54cbb786fc9d287184c361654 /src/nautilus-window.c | |
parent | d9b274ef0287892923438ea10aac3be2bcdaff03 (diff) | |
download | nautilus-81f618714c50a727db1baa6e84806b885397a5b2.tar.gz |
toolbar: don't explicitly show/hide stop/reload buttons
Just connect to the action enabled notification from the window's
GActionGroup.
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r-- | src/nautilus-window.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c index b56ce6f93..3b5dd8132 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -742,13 +742,6 @@ nautilus_window_sync_allow_stop (NautilusWindow *window, if (slot_is_active) { g_simple_action_set_enabled (G_SIMPLE_ACTION (stop_action), slot_allow_stop); g_simple_action_set_enabled (G_SIMPLE_ACTION (reload_action), !slot_allow_stop); - if (slot_allow_stop) { - nautilus_toolbar_hide_reload (NAUTILUS_TOOLBAR (window->details->toolbar)); - nautilus_toolbar_show_stop (NAUTILUS_TOOLBAR (window->details->toolbar)); - } else { - nautilus_toolbar_hide_stop (NAUTILUS_TOOLBAR (window->details->toolbar)); - nautilus_toolbar_show_reload (NAUTILUS_TOOLBAR (window->details->toolbar)); - } } if (gtk_widget_get_realized (GTK_WIDGET (window))) { update_cursor (window); |