[gnome-software] Don't show a missing-image if the image is missing



commit 71d468b2a3881178f411eceaa914486ca9b234fe
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 26 21:49:50 2013 -0400

    Don't show a missing-image if the image is missing
    
    If an app truly doesn't have an icon, don't show a missing
    image. The list is now equipped with size groups, so we don't
    have to fill the place just to keep the alignment.

 src/gs-app-widget.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-app-widget.c b/src/gs-app-widget.c
index 80199ce..5e1e956 100644
--- a/src/gs-app-widget.c
+++ b/src/gs-app-widget.c
@@ -275,8 +275,7 @@ gs_app_widget_init (GsAppWidget *app_widget)
        g_object_set (app_widget, "margin", 9, NULL);
 
        /* pixbuf */
-       priv->widget_image = gtk_image_new_from_icon_name ("missing-image",
-                                                          GTK_ICON_SIZE_DIALOG);
+       priv->widget_image = gtk_image_new ();
        gtk_image_set_pixel_size (GTK_IMAGE (priv->widget_image), 64);
 
        gtk_widget_set_margin_right (priv->widget_image, 9);


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