[gnome-software] Animate the removal of live updates
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Animate the removal of live updates
- Date: Mon, 20 Feb 2017 16:54:20 +0000 (UTC)
commit 99bc90b6bcdf8811d3837c2bf28179c7c5b44506
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 d79c6ec..aa78c4b 100644
--- a/src/gs-update-list.c
+++ b/src/gs-update-list.c
@@ -88,6 +88,15 @@ gs_update_list_remove_all (GsUpdateList *update_list)
gs_container_remove_all (GTK_CONTAINER (update_list));
}
+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)
{
@@ -110,6 +119,9 @@ gs_update_list_add_app (GsUpdateList *update_list, GsApp *app)
priv->sizegroup_image,
priv->sizegroup_name,
priv->sizegroup_button);
+ 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]