[gnome-software/gnome-3-22] Animate the removal of live updates
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] Animate the removal of live updates
- Date: Tue, 7 Mar 2017 16:32:44 +0000 (UTC)
commit 9697fed843579df77b849b38c1871f9094daf3ac
Author: Richard Hughes <richard hughsie com>
Date: Mon Feb 20 16:44:51 2017 +0000
Animate the removal of live updates
Fixes some of https://bugzilla.gnome.org/show_bug.cgi?id=772040#c10
src/gs-update-list.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-update-list.c b/src/gs-update-list.c
index 43a084a..aede6f6 100644
--- a/src/gs-update-list.c
+++ b/src/gs-update-list.c
@@ -53,6 +53,15 @@ gs_update_list_button_clicked_cb (GsAppRow *app_row,
g_signal_emit (update_list, signals[SIGNAL_BUTTON_CLICKED], 0, app);
}
+static void
+gs_update_list_app_state_notify_cb (GsApp *app, GParamSpec *pspec, gpointer user_data)
+{
+ if (gs_app_get_state (app) == AS_APP_STATE_INSTALLED) {
+ GsAppRow *app_row = GS_APP_ROW (user_data);
+ gs_app_row_unreveal (app_row);
+ }
+}
+
void
gs_update_list_add_app (GsUpdateList *update_list,
GsApp *app)
@@ -70,6 +79,9 @@ gs_update_list_add_app (GsUpdateList *update_list,
gs_app_row_set_size_groups (GS_APP_ROW (app_row),
priv->sizegroup_image,
priv->sizegroup_name);
+ g_signal_connect (app, "notify::state",
+ G_CALLBACK (gs_update_list_app_state_notify_cb),
+ app_row);
gtk_widget_show (app_row);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]