aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-02-21 01:42:01 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-21 01:42:01 +0800
commit4c20b03469556b005030cdb741f3fea4b1175251 (patch)
tree726be873743f8fb8d8009c4649bc7a7babc805ac /lib/widgets
parent147faa7b5aa35e676d97dfce0952695022b7a3a0 (diff)
downloadgsoc2013-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
Diffstat (limited to 'lib/widgets')
-rwxr-xr-xlib/widgets/ephy-editable-toolbar.c17
1 files changed, 12 insertions, 5 deletions
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