aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-08-28 18:19:44 +0800
committerChristian Persch <chpe@src.gnome.org>2004-08-28 18:19:44 +0800
commit6908bbda3b2cb195d43f79e656273150380c0235 (patch)
tree3f433c71ff2caebe4593c35d4eb38606ec94254c /src
parentfc86ddf59abd40064eeb80748e67339a07f4f5e8 (diff)
downloadgsoc2013-epiphany-6908bbda3b2cb195d43f79e656273150380c0235.tar
gsoc2013-epiphany-6908bbda3b2cb195d43f79e656273150380c0235.tar.gz
gsoc2013-epiphany-6908bbda3b2cb195d43f79e656273150380c0235.tar.bz2
gsoc2013-epiphany-6908bbda3b2cb195d43f79e656273150380c0235.tar.lz
gsoc2013-epiphany-6908bbda3b2cb195d43f79e656273150380c0235.tar.xz
gsoc2013-epiphany-6908bbda3b2cb195d43f79e656273150380c0235.tar.zst
gsoc2013-epiphany-6908bbda3b2cb195d43f79e656273150380c0235.zip
Make sure to instantiate the toolbars model before instantiating the
2004-08-28 Christian Persch <chpe@cvs.gnome.org> * src/ephy-window.c: (ephy_window_init): Make sure to instantiate the toolbars model before instantiating the bookmarksbar model; otherwise forwarding doesn't work. Fixes bug #151267.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 7feff9d63..9f5d1c2bb 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -590,7 +590,6 @@ ephy_window_fullscreen (EphyWindow *window)
gtk_widget_show (popup);
-
egg_editable_toolbar_set_model
(EGG_EDITABLE_TOOLBAR (window->priv->toolbar),
EGG_TOOLBARS_MODEL (
@@ -2145,6 +2144,7 @@ ephy_window_init (EphyWindow *window)
{
EphyExtension *manager;
EphyEmbedSingle *single;
+ EggToolbarsModel *model;
LOG ("EphyWindow initialising %p", window)
@@ -2188,6 +2188,13 @@ ephy_window_init (EphyWindow *window)
window->priv->enc_menu = ephy_encoding_menu_new (window);
window->priv->bmk_menu = ephy_bookmarks_menu_new (window);
+ /* get the toolbars model *before* getting the bookmarksbar model
+ * (via ephy_bookmarsbar_new()), so that the toolbars model is
+ * instantiated *before* the bookmarksbarmodel, to make forwarding
+ * works. See bug #151267.
+ */
+ model= EGG_TOOLBARS_MODEL (ephy_shell_get_toolbars_model (ephy_shell, FALSE));
+
/* create the toolbars */
window->priv->toolbar = toolbar_new (window);
window->priv->bookmarksbar = ephy_bookmarksbar_new (window);
@@ -2218,9 +2225,7 @@ ephy_window_init (EphyWindow *window)
* the toolbar
*/
egg_editable_toolbar_set_model
- (EGG_EDITABLE_TOOLBAR (window->priv->toolbar),
- EGG_TOOLBARS_MODEL
- (ephy_shell_get_toolbars_model (ephy_shell, FALSE)));
+ (EGG_EDITABLE_TOOLBAR (window->priv->toolbar), model);
g_signal_connect (window, "window-state-event",
G_CALLBACK (ephy_window_state_event_cb),