[gnome-software] Allow plugins to update an application icon



commit fa43364e747ef8cef6bf0c20c5f1ab87923bf857
Author: Richard Hughes <richard hughsie com>
Date:   Sun Sep 1 16:20:37 2013 +0100

    Allow plugins to update an application icon

 src/gs-app.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index a8a4197..9e6c476 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -186,7 +186,8 @@ void
 gs_app_set_pixbuf (GsApp *app, GdkPixbuf *pixbuf)
 {
        g_return_if_fail (GS_IS_APP (app));
-       g_return_if_fail (app->priv->pixbuf == NULL);
+       if (app->priv->pixbuf != NULL)
+               g_object_unref (app->priv->pixbuf);
        app->priv->pixbuf = g_object_ref (pixbuf);
 }
 


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