Skip to content

Commit

Permalink
ev-window: Create the window title after the toolbar
Browse files Browse the repository at this point in the history
Since window title now uses the toolbar to set the title.
  • Loading branch information
Carlos Garcia Campos committed Jul 26, 2014
1 parent 16ba8b8 commit 58ae10c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shell/ev-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -6818,7 +6818,6 @@ ev_window_init (EvWindow *ev_window)
ev_window->priv->page_mode = PAGE_MODE_DOCUMENT;
ev_window->priv->chrome = EV_CHROME_NORMAL;
ev_window->priv->presentation_mode_inhibit_id = 0;
ev_window->priv->title = ev_window_title_new (ev_window);

ev_window->priv->history = ev_history_new (ev_window->priv->model);
g_signal_connect (ev_window->priv->history, "activate-link",
Expand Down Expand Up @@ -6860,6 +6859,9 @@ ev_window_init (EvWindow *ev_window)
gtk_window_set_titlebar (GTK_WINDOW (ev_window), ev_window->priv->toolbar);
gtk_widget_show (ev_window->priv->toolbar);

/* Window title */
ev_window->priv->title = ev_window_title_new (ev_window);

g_signal_connect (ev_toolbar_get_page_selector (EV_TOOLBAR (ev_window->priv->toolbar)),
"activate-link",
G_CALLBACK (activate_link_cb),
Expand Down

0 comments on commit 58ae10c

Please sign in to comment.