r7441 - mugshot-client/trunk/common/stacker



Author: otaylor
Date: 2008-04-18 16:06:13 -0500 (Fri, 18 Apr 2008)
New Revision: 7441

Modified:
   mugshot-client/trunk/common/stacker/hippo-block.c
Log:
Use 'ownerContent' property on blocks to properly determine whether it
  should be affected by "Hide my items" (this breaks "Hide my items" with
  the production server until we repush: nothing will be hidden)


Modified: mugshot-client/trunk/common/stacker/hippo-block.c
===================================================================
--- mugshot-client/trunk/common/stacker/hippo-block.c	2008-04-18 21:00:48 UTC (rev 7440)
+++ mugshot-client/trunk/common/stacker/hippo-block.c	2008-04-18 21:06:13 UTC (rev 7441)
@@ -414,6 +414,7 @@
 hippo_block_real_update (HippoBlock     *block)
 {
     gboolean public;
+    gboolean owner_content;
     gint64 timestamp;
     gint64 clicked_timestamp;
     gint64 ignored_timestamp;
@@ -435,6 +436,7 @@
 
     ddm_data_resource_get(block->resource,
                           "public", DDM_DATA_BOOLEAN, &public,
+                          "ownerContent", DDM_DATA_BOOLEAN, &owner_content,
                           "timestamp", DDM_DATA_LONG, &timestamp,
                           "clickedTimestamp", DDM_DATA_LONG, &clicked_timestamp,
                           "ignoredTimestamp", DDM_DATA_LONG, &ignored_timestamp,
@@ -457,7 +459,7 @@
     hippo_block_set_clicked(block, clicked_timestamp >= 0);
     hippo_block_set_ignored(block, ignored_timestamp >= 0);
     
-    hippo_block_set_is_mine(block, owner == self);
+    hippo_block_set_is_mine(block, owner == self && owner_content);
 
     hippo_block_set_icon_url(block, icon);
     hippo_block_set_title(block, title);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]