[gnome-software/gnome-3-24] trivial: Update more tile widgets if the app name or summary changes
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-24] trivial: Update more tile widgets if the app name or summary changes
- Date: Mon, 8 May 2017 12:31:00 +0000 (UTC)
commit 00d51cea730970f8dfd7fd33e5928342b6a60796
Author: Richard Hughes <richard hughsie com>
Date: Mon May 8 11:05:01 2017 +0100
trivial: Update more tile widgets if the app name or summary changes
src/gs-popular-tile.c | 4 ++++
src/gs-summary-tile.c | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-popular-tile.c b/src/gs-popular-tile.c
index a14e565..eddc456 100644
--- a/src/gs-popular-tile.c
+++ b/src/gs-popular-tile.c
@@ -118,6 +118,10 @@ gs_popular_tile_set_app (GsAppTile *app_tile, GsApp *app)
g_signal_connect (tile->app, "notify::state",
G_CALLBACK (app_state_changed), tile);
+ g_signal_connect (tile->app, "notify::name",
+ G_CALLBACK (app_state_changed), tile);
+ g_signal_connect (tile->app, "notify::summary",
+ G_CALLBACK (app_state_changed), tile);
app_state_changed (tile->app, NULL, tile);
/* perhaps set custom css */
diff --git a/src/gs-summary-tile.c b/src/gs-summary-tile.c
index 7782697..6011aeb 100644
--- a/src/gs-summary-tile.c
+++ b/src/gs-summary-tile.c
@@ -129,6 +129,10 @@ gs_summary_tile_set_app (GsAppTile *app_tile, GsApp *app)
g_signal_connect (tile->app, "notify::state",
G_CALLBACK (app_state_changed), tile);
+ g_signal_connect (tile->app, "notify::name",
+ G_CALLBACK (app_state_changed), tile);
+ g_signal_connect (tile->app, "notify::summary",
+ G_CALLBACK (app_state_changed), tile);
app_state_changed (tile->app, NULL, tile);
pixbuf = gs_app_get_pixbuf (app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]