[gnome-software] trivial: Fix showing the updates panel
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix showing the updates panel
- Date: Wed, 23 Oct 2013 14:48:43 +0000 (UTC)
commit 47d82ee57d1bfdce60b3926f738f40f06144cceb
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 23 10:14:24 2013 +0100
trivial: Fix showing the updates panel
We were getting in a muddle with bitfields, so simplify things a bit.
src/gs-shell-updates.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 8b360ff..25296a2 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -155,6 +155,7 @@ gs_shell_updates_refresh (GsShellUpdates *shell_updates,
GtkWindow *window;
GtkSpinner *spinner;
GList *list;
+ guint64 refine_flags;
if (gs_shell_get_mode (priv->shell) == GS_SHELL_MODE_UPDATES ||
gs_shell_get_mode (priv->shell) == GS_SHELL_MODE_UPDATED) {
@@ -193,10 +194,12 @@ gs_shell_updates_refresh (GsShellUpdates *shell_updates,
gs_container_remove_all (GTK_CONTAINER (priv->list_box_updates));
+ refine_flags = GS_PLUGIN_REFINE_FLAGS_DEFAULT |
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_VERSION;
+ if (show_historical)
+ refine_flags &= GS_PLUGIN_REFINE_FLAGS_USE_HISTORY;
gs_plugin_loader_get_updates_async (priv->plugin_loader,
- GS_PLUGIN_REFINE_FLAGS_REQUIRE_VERSION |
- show_historical ?
- GS_PLUGIN_REFINE_FLAGS_USE_HISTORY :
GS_PLUGIN_REFINE_FLAGS_DEFAULT,
+ refine_flags,
priv->cancellable,
(GAsyncReadyCallback) gs_shell_updates_get_updates_cb,
shell_updates);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]