From c0df53a16999b518df4718db6b080cf58f4a83c0 Mon Sep 17 00:00:00 2001 From: Dale Whittaker Date: Thu, 30 Apr 2009 19:00:27 +0200 Subject: [PATCH] Fix item movement callback in feed panel --- extensions/feed-panel/feed-panel.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/extensions/feed-panel/feed-panel.c b/extensions/feed-panel/feed-panel.c index d8212a8a..0c818bc7 100644 --- a/extensions/feed-panel/feed-panel.c +++ b/extensions/feed-panel/feed-panel.c @@ -141,6 +141,7 @@ feed_panel_add_item_cb (KatzeArray* parent, KatzeItem* item; gint i; + g_return_if_fail (FEED_IS_PANEL (panel)); g_return_if_fail (KATZE_IS_ARRAY (parent)); g_return_if_fail (KATZE_IS_ITEM (child)); @@ -209,8 +210,9 @@ feed_panel_remove_item_cb (KatzeArray* item, GtkTreeModel* model; KatzeItem* pitem; - g_assert (KATZE_IS_ARRAY (item)); - g_assert (KATZE_IS_ITEM (child)); + g_return_if_fail (FEED_IS_PANEL (panel)); + g_return_if_fail (KATZE_IS_ARRAY (item)); + g_return_if_fail (KATZE_IS_ITEM (child)); if (KATZE_IS_ARRAY (child)) feed_panel_disconnect_feed (panel, KATZE_ARRAY (child)); @@ -234,14 +236,16 @@ feed_panel_remove_item_cb (KatzeArray* item, static void feed_panel_move_item_cb (KatzeArray* feed, KatzeItem* child, + gint position, FeedPanel* panel) { GtkTreeModel* model; GtkTreeIter iter; guint i; - g_assert (KATZE_IS_ARRAY (feed)); - g_assert (KATZE_IS_ITEM (child)); + g_return_if_fail (FEED_IS_PANEL (panel)); + g_return_if_fail (KATZE_IS_ARRAY (feed)); + g_return_if_fail (KATZE_IS_ITEM (child)); model = gtk_tree_view_get_model (GTK_TREE_VIEW (panel->treeview)); -- 2.39.5