aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--src/ephy-window.c13
2 files changed, 17 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 0ef04629b..e00a15c0c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2004-08-27 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/GlobalHistory.cpp:
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),