[gnome-software/gnome-3-22] Only call the GsPage installed and removed vfuncs of the app changed state
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] Only call the GsPage installed and removed vfuncs of the app changed state
- Date: Thu, 1 Dec 2016 14:34:20 +0000 (UTC)
commit 7d4b265b059ab3d7c210022848f3150b0e68a3ca
Author: Richard Hughes <richard hughsie com>
Date: Wed Nov 23 14:13:39 2016 +0000
Only call the GsPage installed and removed vfuncs of the app changed state
src/gs-page.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-page.c b/src/gs-page.c
index cd23320..931c57e 100644
--- a/src/gs-page.c
+++ b/src/gs-page.c
@@ -196,8 +196,10 @@ gs_page_app_installed_cb (GObject *source,
!gs_shell_is_active (priv->shell))
gs_app_notify_installed (helper->app);
- if (GS_PAGE_GET_CLASS (page)->app_installed != NULL)
+ if (gs_app_is_installed (helper->app) &&
+ GS_PAGE_GET_CLASS (page)->app_installed != NULL) {
GS_PAGE_GET_CLASS (page)->app_installed (page, helper->app);
+ }
}
static void
@@ -265,8 +267,10 @@ gs_page_app_removed_cb (GObject *source,
return;
}
- if (GS_PAGE_GET_CLASS (page)->app_removed != NULL)
+ if (!gs_app_is_installed (helper->app) &&
+ GS_PAGE_GET_CLASS (page)->app_removed != NULL) {
GS_PAGE_GET_CLASS (page)->app_removed (page, helper->app);
+ }
}
GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]