[libslab] Remove useless image_is_broken fields



commit a6a6b7303286b650dbb80505fc642bb931ee8f19
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Jun 28 14:54:28 2010 +0200

    Remove useless image_is_broken fields

 libslab/application-tile.c |    2 --
 libslab/directory-tile.c   |    6 +-----
 libslab/document-tile.c    |    5 +----
 libslab/system-tile.c      |    4 +---
 4 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/libslab/application-tile.c b/libslab/application-tile.c
index e23c864..eee281e 100644
--- a/libslab/application-tile.c
+++ b/libslab/application-tile.c
@@ -77,7 +77,6 @@ typedef struct {
 	GnomeDesktopItem *desktop_item;
 
 	gchar       *image_id;
-	gboolean     image_is_broken;
 	GtkIconSize  image_size;
 
 	gboolean show_generic_name;
@@ -183,7 +182,6 @@ application_tile_init (ApplicationTile *tile)
 
 	priv->desktop_item    = NULL;
 	priv->image_id        = NULL;
-	priv->image_is_broken = TRUE;
 
 	priv->agent            = NULL;
 	priv->agent_status     = BOOKMARK_STORE_ABSENT;
diff --git a/libslab/directory-tile.c b/libslab/directory-tile.c
index c9d0cf1..f5a7ef1 100644
--- a/libslab/directory-tile.c
+++ b/libslab/directory-tile.c
@@ -69,8 +69,6 @@ typedef struct
 	GtkBin *header_bin;
 	GAppInfo *default_app;
 	
-	gboolean image_is_broken;
-	
 	gboolean delete_enabled;
 	guint gconf_conn_id;
 } DirectoryTilePrivate;
@@ -288,7 +286,6 @@ directory_tile_init (DirectoryTile *tile)
 	priv->header_bin = NULL;
 	priv->icon_name = NULL;
 	priv->mime_type = NULL;
-	priv->image_is_broken = TRUE;
 	priv->delete_enabled = FALSE;
 	priv->gconf_conn_id = 0;
 }
@@ -334,8 +331,7 @@ load_image (DirectoryTile *tile)
 	else
 		icon_name = "folder";
 
-	priv->image_is_broken = slab_load_image (
-		GTK_IMAGE (NAMEPLATE_TILE (tile)->image), GTK_ICON_SIZE_DND, icon_name);
+	slab_load_image (GTK_IMAGE (NAMEPLATE_TILE (tile)->image), GTK_ICON_SIZE_DND, icon_name);
 }
 
 static GtkWidget *
diff --git a/libslab/document-tile.c b/libslab/document-tile.c
index 84a7484..eacd131 100644
--- a/libslab/document-tile.c
+++ b/libslab/document-tile.c
@@ -78,7 +78,6 @@ typedef struct
 
 	GtkBin *header_bin;
 
-	gboolean image_is_broken;
 	gchar * force_icon_name;  //show an icon instead of a thumbnail
 
 	gboolean delete_enabled;
@@ -379,7 +378,6 @@ document_tile_init (DocumentTile *tile)
 
 	priv->header_bin       = NULL;
 
-	priv->image_is_broken  = TRUE;
 	priv->force_icon_name  = NULL;
 
 	priv->delete_enabled   = FALSE;
@@ -461,8 +459,7 @@ load_image (DocumentTile *tile)
 
 exit:
 
-	priv->image_is_broken = slab_load_image (
-		GTK_IMAGE (NAMEPLATE_TILE (tile)->image), GTK_ICON_SIZE_DND, icon_id);
+	slab_load_image (GTK_IMAGE (NAMEPLATE_TILE (tile)->image), GTK_ICON_SIZE_DND, icon_id);
 
 	if (free_icon_id && icon_id)
 		g_free (icon_id);
diff --git a/libslab/system-tile.c b/libslab/system-tile.c
index f5915a0..55c7a8d 100644
--- a/libslab/system-tile.c
+++ b/libslab/system-tile.c
@@ -51,7 +51,6 @@ typedef struct {
 	gulong               notify_signal_id;
 	
 	gchar    *image_id;
-	gboolean  image_is_broken;
 } SystemTilePrivate;
 
 #define PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SYSTEM_TILE_TYPE, SystemTilePrivate))
@@ -190,7 +189,6 @@ system_tile_init (SystemTile *this)
 
 	priv->desktop_item    = NULL;
 	priv->image_id        = NULL;
-	priv->image_is_broken = TRUE;
 
 	priv->agent            = NULL;
 	priv->agent_status     = BOOKMARK_STORE_ABSENT;
@@ -227,7 +225,7 @@ load_image (SystemTile *this)
 
 	g_object_set (G_OBJECT (image), "icon-size", GTK_ICON_SIZE_MENU, NULL);
 
-	priv->image_is_broken = libslab_gtk_image_set_by_id (image, priv->image_id);
+	libslab_gtk_image_set_by_id (image, priv->image_id);
 }
 
 static GtkWidget *



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