From 4c20b03469556b005030cdb741f3fea4b1175251 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 20 Feb 2003 17:42:01 +0000 Subject: Update actions also on other windows 2003-02-20 Marco Pesenti Gritti * lib/widgets/ephy-editable-toolbar.c: (do_merge), (ensure_action), (group_changed_cb): Update actions also on other windows --- ChangeLog | 7 +++++++ lib/widgets/ephy-editable-toolbar.c | 17 ++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 31959026b..d6f2bb906 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-02-20 Marco Pesenti Gritti + + * lib/widgets/ephy-editable-toolbar.c: (do_merge), (ensure_action), + (group_changed_cb): + + Update actions also on other windows + 2003-02-20 Xan Lopez * data/glade/epiphany.glade: diff --git a/lib/widgets/ephy-editable-toolbar.c b/lib/widgets/ephy-editable-toolbar.c index 98b9afd47..c8b2d9f9e 100755 --- a/lib/widgets/ephy-editable-toolbar.c +++ b/lib/widgets/ephy-editable-toolbar.c @@ -395,6 +395,8 @@ do_merge (EphyEditableToolbar *t) char *str; guint ui_id; + g_return_if_fail (t != NULL); + str = ephy_toolbars_group_to_string (t->priv->group); LOG ("Merge UI\n%s", str) @@ -436,16 +438,21 @@ do_merge (EphyEditableToolbar *t) } static void -group_changed_cb (EphyToolbarsGroup *group, EphyEditableToolbar *t) +ensure_action (EphyToolbarsItem *item, EphyEditableToolbar *t) { - t->priv->toolbars_dirty = TRUE; - queue_ui_update (t); + ephy_editable_toolbar_get_action (t, NULL, item->action); } static void -ensure_action (EphyToolbarsItem *item, EphyEditableToolbar *t) +group_changed_cb (EphyToolbarsGroup *group, EphyEditableToolbar *t) { - ephy_editable_toolbar_get_action (t, NULL, item->action); + t->priv->toolbars_dirty = TRUE; + + ephy_toolbars_group_foreach_item (t->priv->group, + (EphyToolbarsGroupForeachItemFunc) + ensure_action, t); + + queue_ui_update (t); } static void -- cgit v1.2.3