[gnome-software] Emit a changed signal when the application kind changes



commit b1a06df819e7b5c0adc85e6dffd4dd603e489aa9
Author: Richard Hughes <richard hughsie com>
Date:   Thu Sep 19 11:30:37 2013 +0100

    Emit a changed signal when the application kind changes

 src/gs-app.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 8ded0c3..e004658 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -385,6 +385,8 @@ gs_app_set_kind (GsApp *app, GsAppKind kind)
        }
 
        priv->kind = kind;
+       g_object_notify (G_OBJECT (app), "kind");
+       g_signal_emit (app, signals[SIGNAL_STATE_CHANGED], 0);
 }
 
 /**



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