diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-09-24 10:01:47 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-09-24 10:01:47 (GMT) |
commit | eb5323824d3ea421f1bdfa803a9ce968894d8d81 (patch) | |
tree | cb4e792dee8013026fd01854a34125f71cc02e24 /shell/ev-window.c | |
parent | 0e91ce30faeda4f67eebd723caea4764e70f9334 (diff) |
Refactor window title building while fixing it for password documents.
2005-09-24 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-window-title.c: (get_filename_from_uri),
(ev_window_title_sanitize_extension), (ev_window_title_update),
(ev_window_title_set_document), (ev_window_title_set_uri),
(ev_window_title_free):
* shell/ev-window-title.h:
* shell/ev-window.c: (ev_window_setup_document),
(ev_window_popup_password_dialog):
Refactor window title building while fixing it for
password documents.
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r-- | shell/ev-window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 19b78f3..9acf505 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -689,7 +689,8 @@ ev_window_setup_document (EvWindow *ev_window) ev_view_set_document (view, document); } - ev_window_title_set_document (ev_window->priv->title, document, ev_window->priv->uri); + ev_window_title_set_uri (ev_window->priv->title, ev_window->priv->uri); + ev_window_title_set_document (ev_window->priv->title, document); action = gtk_action_group_get_action (ev_window->priv->action_group, PAGE_SELECTOR_ACTION); ev_page_action_set_document (EV_PAGE_ACTION (action), document); update_action_sensitivity (ev_window); @@ -762,6 +763,7 @@ ev_window_popup_password_dialog (EvWindow *ev_window) gtk_widget_set_sensitive (ev_window->priv->password_view, FALSE); + ev_window_title_set_uri (ev_window->priv->title, ev_window->priv->password_uri); ev_window_title_set_type (ev_window->priv->title, EV_WINDOW_TITLE_PASSWORD); if (ev_window->priv->password_dialog == NULL) { |