aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-toolbars-group.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-02-27 21:11:49 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-27 21:11:49 +0800
commitea7657cbc7b0a294305716fa0ed3660ccdb15f43 (patch)
treef88811aac82316df176a041576ecf93db6f08a0e /lib/widgets/ephy-toolbars-group.c
parentfca771346f8dc0d8707bc5352e6432e32d9439ea (diff)
downloadgsoc2013-epiphany-ea7657cbc7b0a294305716fa0ed3660ccdb15f43.tar
gsoc2013-epiphany-ea7657cbc7b0a294305716fa0ed3660ccdb15f43.tar.gz
gsoc2013-epiphany-ea7657cbc7b0a294305716fa0ed3660ccdb15f43.tar.bz2
gsoc2013-epiphany-ea7657cbc7b0a294305716fa0ed3660ccdb15f43.tar.lz
gsoc2013-epiphany-ea7657cbc7b0a294305716fa0ed3660ccdb15f43.tar.xz
gsoc2013-epiphany-ea7657cbc7b0a294305716fa0ed3660ccdb15f43.tar.zst
gsoc2013-epiphany-ea7657cbc7b0a294305716fa0ed3660ccdb15f43.zip
Fix toolbar removal.
2003-02-27 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-editable-toolbar.c: (editor_close), (editor_add_toolbar), (dialog_response_cb), (setup_editor): Fix toolbar removal. * lib/widgets/ephy-toolbars-group.c: (ephy_toolbars_group_to_string), (ephy_toolbars_group_remove_item): Use a real GtkDialog for the editor, nicer code and good window placement. Just hope we dont have to change this again :/
Diffstat (limited to 'lib/widgets/ephy-toolbars-group.c')
-rwxr-xr-xlib/widgets/ephy-toolbars-group.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/widgets/ephy-toolbars-group.c b/lib/widgets/ephy-toolbars-group.c
index da8ef8f38..0a11b6285 100755
--- a/lib/widgets/ephy-toolbars-group.c
+++ b/lib/widgets/ephy-toolbars-group.c
@@ -378,9 +378,10 @@ ephy_toolbars_group_to_string (EphyToolbarsGroup *t)
for (l1 = tl->children; l1 != NULL; l1 = l1->next)
{
int i = 0;
+ EphyToolbarsToolbar *toolbar = l1->data;
g_string_append_printf
- (s, "<dockitem name=\"Toolbar%d\">\n", k);
+ (s, "<dockitem name=\"%s\">\n", toolbar->id);
for (l2 = l1->children; l2 != NULL; l2 = l2->next)
{
@@ -519,7 +520,7 @@ ephy_toolbars_group_remove_item (EphyToolbarsGroup *t,
node = g_node_find (t->priv->toolbars, G_IN_ORDER, G_TRAVERSE_ALL, item);
g_return_if_fail (node != NULL);
toolbar = node->parent;
- free_toolbar_node (node->data);
+ free_item_node (node->data);
g_node_destroy (node);
if (g_node_n_children (toolbar) == 0)