diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-02-21 01:42:01 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-02-21 01:42:01 +0800 |
commit | 4c20b03469556b005030cdb741f3fea4b1175251 (patch) | |
tree | 726be873743f8fb8d8009c4649bc7a7babc805ac | |
parent | 147faa7b5aa35e676d97dfce0952695022b7a3a0 (diff) | |
download | gsoc2013-epiphany-4c20b03469556b005030cdb741f3fea4b1175251.tar gsoc2013-epiphany-4c20b03469556b005030cdb741f3fea4b1175251.tar.gz gsoc2013-epiphany-4c20b03469556b005030cdb741f3fea4b1175251.tar.bz2 gsoc2013-epiphany-4c20b03469556b005030cdb741f3fea4b1175251.tar.lz gsoc2013-epiphany-4c20b03469556b005030cdb741f3fea4b1175251.tar.xz gsoc2013-epiphany-4c20b03469556b005030cdb741f3fea4b1175251.tar.zst gsoc2013-epiphany-4c20b03469556b005030cdb741f3fea4b1175251.zip |
Update actions also on other windows
2003-02-20 Marco Pesenti Gritti <marco@it.gnome.org>
* lib/widgets/ephy-editable-toolbar.c: (do_merge), (ensure_action),
(group_changed_cb):
Update actions also on other windows
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | lib/widgets/ephy-editable-toolbar.c | 17 |
2 files changed, 19 insertions, 5 deletions
@@ -1,3 +1,10 @@ +2003-02-20 Marco Pesenti Gritti <marco@it.gnome.org> + + * lib/widgets/ephy-editable-toolbar.c: (do_merge), (ensure_action), + (group_changed_cb): + + Update actions also on other windows + 2003-02-20 Xan Lopez <xan@masilla.org> * 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 |