[evince] shell: set toolbar to Normal Mode in set_document
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] shell: set toolbar to Normal Mode in set_document
- Date: Thu, 28 Aug 2014 13:59:34 +0000 (UTC)
commit cbcd1d10c1c068bf66206ec522eb1f9cb7ac0f57
Author: José Aliste <jaliste src gnome org>
Date: Tue Aug 26 17:15:33 2014 -0400
shell: set toolbar to Normal Mode in set_document
setting the toolbar to normal mode will correctly
show widgets inside the toolbar
https://bugzilla.gnome.org/show_bug.cgi?id=735446
shell/ev-window.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index e4ebd74..3b4aa4a 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1596,6 +1596,11 @@ ev_window_set_document (EvWindow *ev_window, EvDocument *document)
ev_window_destroy_recent_view (ev_window);
+ ev_toolbar_set_mode (EV_TOOLBAR (ev_window->priv->toolbar),
+ EV_TOOLBAR_MODE_NORMAL);
+ ev_window_title_set_type (ev_window->priv->title, EV_WINDOW_TITLE_DOCUMENT);
+ ev_window_update_actions_sensitivity (ev_window);
+
if (EV_WINDOW_IS_PRESENTATION (ev_window)) {
gint current_page;
@@ -2329,10 +2334,6 @@ ev_window_destroy_recent_view (EvWindow *ev_window)
gtk_widget_destroy (GTK_WIDGET (ev_window->priv->recent_view));
ev_window->priv->recent_view = NULL;
gtk_widget_show (ev_window->priv->hpaned);
- ev_toolbar_set_mode (EV_TOOLBAR (ev_window->priv->toolbar),
- EV_TOOLBAR_MODE_NORMAL);
- ev_window_title_set_type (ev_window->priv->title, EV_WINDOW_TITLE_DOCUMENT);
- ev_window_update_actions_sensitivity (ev_window);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]