aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmark-action.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-09-28 02:13:11 +0800
committerChristian Persch <chpe@src.gnome.org>2004-09-28 02:13:11 +0800
commita913abc0b33ea25f706d5ebf6e98626d31da39d5 (patch)
tree9d109345210074d0a83312191a74ff91c1ceca61 /src/bookmarks/ephy-bookmark-action.c
parent03b4c9bb41fcedda967007ee860d567ecbaed365 (diff)
downloadgsoc2013-epiphany-a913abc0b33ea25f706d5ebf6e98626d31da39d5.tar
gsoc2013-epiphany-a913abc0b33ea25f706d5ebf6e98626d31da39d5.tar.gz
gsoc2013-epiphany-a913abc0b33ea25f706d5ebf6e98626d31da39d5.tar.bz2
gsoc2013-epiphany-a913abc0b33ea25f706d5ebf6e98626d31da39d5.tar.lz
gsoc2013-epiphany-a913abc0b33ea25f706d5ebf6e98626d31da39d5.tar.xz
gsoc2013-epiphany-a913abc0b33ea25f706d5ebf6e98626d31da39d5.tar.zst
gsoc2013-epiphany-a913abc0b33ea25f706d5ebf6e98626d31da39d5.zip
Don't reference private objects from public headers. Fixes bug #153766.
2004-09-27 Christian Persch <chpe@cvs.gnome.org> * lib/egg/Makefile.am: * src/bookmarks/ephy-bookmark-action.c: (remove_from_model), (move_in_model): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_get_toolbars_model): * src/bookmarks/ephy-bookmarks.h: * src/bookmarks/ephy-bookmarksbar.c: (ephy_bookmarksbar_set_property): * src/bookmarks/ephy-topic-action.c: (remove_from_model), (move_in_model): * src/ephy-shell.c: (ephy_shell_get_toolbars_model): Don't reference private objects from public headers. Fixes bug #153766.
Diffstat (limited to 'src/bookmarks/ephy-bookmark-action.c')
-rw-r--r--src/bookmarks/ephy-bookmark-action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c
index 52dad678b..6a3f2dc02 100644
--- a/src/bookmarks/ephy-bookmark-action.c
+++ b/src/bookmarks/ephy-bookmark-action.c
@@ -433,7 +433,7 @@ remove_from_model (GtkWidget *widget)
pos = get_item_position (widget, NULL);
bookmarks = ephy_shell_get_bookmarks (ephy_shell);
- model = ephy_bookmarks_get_toolbars_model (bookmarks);
+ model = EGG_TOOLBARS_MODEL (ephy_bookmarks_get_toolbars_model (bookmarks));
egg_toolbars_model_remove_item (model, 0, pos);
}
@@ -446,7 +446,7 @@ move_in_model (GtkWidget *widget, int direction)
int pos, new_pos;
bookmarks = ephy_shell_get_bookmarks (ephy_shell);
- model = ephy_bookmarks_get_toolbars_model (bookmarks);
+ model = EGG_TOOLBARS_MODEL (ephy_bookmarks_get_toolbars_model (bookmarks));
pos = get_item_position (widget, NULL);
new_pos = MAX (0, pos + direction);