From 359be5e24b58d211d30900b917336e6689c49221 Mon Sep 17 00:00:00 2001 From: Dale Whittaker Date: Mon, 17 Aug 2009 20:51:35 +0200 Subject: [PATCH] Revert usage of KatzeItem meta data in the feed panel for now --- extensions/feed-panel/main.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/extensions/feed-panel/main.c b/extensions/feed-panel/main.c index 7966a81d..f2ddeb62 100644 --- a/extensions/feed-panel/main.c +++ b/extensions/feed-panel/main.c @@ -19,10 +19,11 @@ #define UPDATE_FREQ 10 #define feed_get_flags(feed) \ - katze_item_get_meta_integer (KATZE_ITEM ((feed)), "feedpanel:flags") + GPOINTER_TO_INT (g_object_get_data (G_OBJECT ((feed)), "flags")) #define feed_set_flags(feed, flags) \ - katze_item_set_meta_integer (KATZE_ITEM ((feed)), "feedpanel:flags", (flags)) + g_object_set_data (G_OBJECT ((feed)), "flags", \ + GINT_TO_POINTER ((flags))) #define feed_has_flags(feed, flags) \ ((flags) & feed_get_flags ((feed))) @@ -57,7 +58,7 @@ typedef struct enum { - FEED_READ, + FEED_READ = 1, FEED_REMOVE }; @@ -252,7 +253,10 @@ feed_transfer_cb (KatzeNetRequest* request, feed_save_items (netpriv->extension, parent); } else - feed_set_flags (netpriv->feed, 0); + { + feed_remove_flags (netpriv->feed, FEED_REMOVE); + feed_remove_flags (netpriv->feed, FEED_READ); + } } netpriv->parsers = NULL; -- 2.39.5