]> spindle.queued.net Git - midori/commitdiff
Revert usage of KatzeItem meta data in the feed panel for now
authorDale Whittaker <dayul@users.sf.net>
Mon, 17 Aug 2009 18:51:35 +0000 (20:51 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 17 Aug 2009 18:51:35 +0000 (20:51 +0200)
extensions/feed-panel/main.c

index 7966a81dbcf5b9f48cb47b0cc68a1163943f6986..f2ddeb62437fc4a3639abbae5837cc557c5a5bf1 100644 (file)
 #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;