aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/egg-toolbars-model.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-04-26 02:46:54 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-26 02:46:54 +0800
commit95c5dbcfc4214c63c93318344f5b6de091677d5e (patch)
tree56ef3ecaf51b0dc473fd880c6debac7f1b752098 /lib/egg/egg-toolbars-model.c
parente22d66b927f60c384f96c47aa5d4519ceb4f9c47 (diff)
downloadgsoc2013-epiphany-95c5dbcfc4214c63c93318344f5b6de091677d5e.tar
gsoc2013-epiphany-95c5dbcfc4214c63c93318344f5b6de091677d5e.tar.gz
gsoc2013-epiphany-95c5dbcfc4214c63c93318344f5b6de091677d5e.tar.bz2
gsoc2013-epiphany-95c5dbcfc4214c63c93318344f5b6de091677d5e.tar.lz
gsoc2013-epiphany-95c5dbcfc4214c63c93318344f5b6de091677d5e.tar.xz
gsoc2013-epiphany-95c5dbcfc4214c63c93318344f5b6de091677d5e.tar.zst
gsoc2013-epiphany-95c5dbcfc4214c63c93318344f5b6de091677d5e.zip
Update.
2003-04-25 Marco Pesenti Gritti <marco@it.gnome.org> * lib/egg/egg-toolbars-model.c: * lib/egg/eggtoolbar.c: Update. * src/bookmarks/ephy-bookmark-properties.c: (toolbar_checkbox_changed_cb), (build_ui), (ephy_bookmark_properties_init): * src/bookmarks/ephy-bookmarks-editor.c: (cmd_show_in_the_toolbar), (cmd_delete), (ephy_bookmarks_editor_update_menu), (ephy_bookmarks_editor_init): * src/bookmarks/ephy-bookmarks.h: * src/ephy-toolbars-model.c: (ephy_toolbars_model_new), (get_item_pos), (get_action_name), (get_toolbar_pos), (ephy_toolbars_model_remove_bookmark), (ephy_toolbars_model_add_bookmark), (ephy_toolbars_model_has_bookmark): * src/ephy-toolbars-model.h: Implement the checkbox to add bookmarks to the toolbar.
Diffstat (limited to 'lib/egg/egg-toolbars-model.c')
-rwxr-xr-xlib/egg/egg-toolbars-model.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/egg/egg-toolbars-model.c b/lib/egg/egg-toolbars-model.c
index cc54e6fb1..8d92da83a 100755
--- a/lib/egg/egg-toolbars-model.c
+++ b/lib/egg/egg-toolbars-model.c
@@ -223,6 +223,7 @@ impl_add_item (EggToolbarsModel *t,
GNode *parent_node;
GNode *node;
EggToolbarsItem *item;
+ int real_position;
g_return_val_if_fail (IS_EGG_TOOLBARS_MODEL (t), NULL);
g_return_val_if_fail (name != NULL, NULL);
@@ -232,8 +233,10 @@ impl_add_item (EggToolbarsModel *t,
node = g_node_new (item);
g_node_insert (parent_node, position, node);
+ real_position = g_node_child_position (parent_node, node);
+
g_signal_emit (G_OBJECT (t), egg_toolbars_model_signals[ITEM_ADDED], 0,
- toolbar_position, position);
+ toolbar_position, real_position);
return item->action_name;
}