[Goodies-commits] r3962 - xfce4-places-plugin/trunk/panel-plugin

Diego Ongaro ongardie at xfce.org
Sun Feb 17 05:04:54 CET 2008


Author: ongardie
Date: 2008-02-17 04:04:54 +0000 (Sun, 17 Feb 2008)
New Revision: 3962

Modified:
   xfce4-places-plugin/trunk/panel-plugin/model_user.c
Log:
Fixed build on amd64


Modified: xfce4-places-plugin/trunk/panel-plugin/model_user.c
===================================================================
--- xfce4-places-plugin/trunk/panel-plugin/model_user.c	2008-02-16 23:13:50 UTC (rev 3961)
+++ xfce4-places-plugin/trunk/panel-plugin/model_user.c	2008-02-17 04:04:54 UTC (rev 3962)
@@ -48,7 +48,7 @@
 #include <glib/gstdio.h>
 
 #define pbg_priv(pbg) ((PBUserData*) pbg->priv)
-#define show_bookmark(b) ((gboolean) b->priv)
+#define show_bookmark(b) (GPOINTER_TO_INT(b->priv))
 
 typedef struct
 {
@@ -169,7 +169,7 @@
         bookmark        = places_bookmark_create(name);           /* label needs to be freed */
         bookmark->uri   = path;                                   /* uri   needs to be freed */
         bookmark->icon  = "gnome-fs-directory";
-        bookmark->priv  = (gpointer) pbuser_dir_exists(path);
+        bookmark->priv  = GINT_TO_POINTER(pbuser_dir_exists(path));
         bookmark->finalize = pbuser_finalize_bookmark;
 
         bookmarks = g_list_prepend(bookmarks, bookmark);
@@ -251,7 +251,7 @@
     while(bookmarks != NULL){
         bookmark = bookmarks->data;
         if(show_bookmark(bookmark) != pbuser_dir_exists(bookmark->uri)){
-            bookmark->priv = (gpointer) !show_bookmark(bookmark);
+            bookmark->priv = GINT_TO_POINTER(!show_bookmark(bookmark));
             ret = TRUE;
         }
         bookmarks = bookmarks->next;




More information about the Goodies-commits mailing list