aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/egg-toolbars-model.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-08-09 00:21:19 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-08-09 00:21:19 +0800
commitddf8fccbe9c2afd3c432c06bf2240c398732c279 (patch)
tree2ae582aa50b0a99a7345e79ce56a5002711bab41 /lib/egg/egg-toolbars-model.c
parentfdba09646384da9c8526371507f75be15c9f2c17 (diff)
downloadgsoc2013-epiphany-ddf8fccbe9c2afd3c432c06bf2240c398732c279.tar
gsoc2013-epiphany-ddf8fccbe9c2afd3c432c06bf2240c398732c279.tar.gz
gsoc2013-epiphany-ddf8fccbe9c2afd3c432c06bf2240c398732c279.tar.bz2
gsoc2013-epiphany-ddf8fccbe9c2afd3c432c06bf2240c398732c279.tar.lz
gsoc2013-epiphany-ddf8fccbe9c2afd3c432c06bf2240c398732c279.tar.xz
gsoc2013-epiphany-ddf8fccbe9c2afd3c432c06bf2240c398732c279.tar.zst
gsoc2013-epiphany-ddf8fccbe9c2afd3c432c06bf2240c398732c279.zip
Update
2003-08-08 Marco Pesenti Gritti <marco@it.gnome.org> * lib/egg/egg-toolbars-model.c: * lib/egg/egg-toolbars-model.h: Update * src/ephy-toolbars-model.c: (get_toolbar_and_item_pos), (impl_add_item), (ephy_toolbars_model_class_init), (get_toolbar_pos): Do not add duped bookmarks to toolbars
Diffstat (limited to 'lib/egg/egg-toolbars-model.c')
-rwxr-xr-xlib/egg/egg-toolbars-model.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/lib/egg/egg-toolbars-model.c b/lib/egg/egg-toolbars-model.c
index 2166ede5f..436f018d7 100755
--- a/lib/egg/egg-toolbars-model.c
+++ b/lib/egg/egg-toolbars-model.c
@@ -313,12 +313,12 @@ egg_toolbars_model_add_separator (EggToolbarsModel *t,
toolbar_position, real_position);
}
-void
-egg_toolbars_model_add_item (EggToolbarsModel *t,
- int toolbar_position,
- int position,
- const char *id,
- const char *type)
+gboolean
+impl_add_item (EggToolbarsModel *t,
+ int toolbar_position,
+ int position,
+ const char *id,
+ const char *type)
{
GNode *parent_node;
GNode *node;
@@ -338,6 +338,8 @@ egg_toolbars_model_add_item (EggToolbarsModel *t,
g_signal_emit (G_OBJECT (t), egg_toolbars_model_signals[ITEM_ADDED], 0,
toolbar_position, real_position);
+
+ return TRUE;
}
static void
@@ -485,6 +487,7 @@ egg_toolbars_model_class_init (EggToolbarsModelClass *klass)
object_class->finalize = egg_toolbars_model_finalize;
+ klass->add_item = impl_add_item;
klass->get_item_id = impl_get_item_id;
klass->get_item_name = impl_get_item_name;
klass->get_item_type = impl_get_item_type;
@@ -664,6 +667,17 @@ egg_toolbars_model_toolbar_nth (EggToolbarsModel *t,
return tdata->name;
}
+gboolean
+egg_toolbars_model_add_item (EggToolbarsModel *t,
+ int toolbar_position,
+ int position,
+ const char *id,
+ const char *type)
+{
+ EggToolbarsModelClass *klass = EGG_TOOLBARS_MODEL_GET_CLASS (t);
+ return klass->add_item (t, toolbar_position, position, id, type);
+}
+
char *
egg_toolbars_model_get_item_id (EggToolbarsModel *t,
const char *type,