From f4160cb34a636ceda799ca9a00a611960536802d Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 15 May 2020 15:22:59 -0700 Subject: Show Network Updater button in the toolbar if available --- includes/uidefs.h | 11 +++++++---- shell/shell.c | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/includes/uidefs.h b/includes/uidefs.h index 70d2de17..a1bf6a3e 100644 --- a/includes/uidefs.h +++ b/includes/uidefs.h @@ -11,11 +11,13 @@ #endif /* !RELEASE */ #ifdef HAS_LIBSOUP -#define SYNC_MANAGER_ITEMS " " \ -" " +#define SYNC_MANAGER_MENU_ITEMS " " \ +" " +#define SYNC_MANAGER_TOOL_ITEMS " " #else /* !HAS_LIBSOUP */ -#define SYNC_MANAGER_ITEMS +#define SYNC_MANAGER_MENU_ITEMS +#define SYNC_MANAGER_TOOL_ITEMS #endif /* !HAS_LIBSOUP */ char *uidefs_str = "" \ @@ -23,7 +25,7 @@ char *uidefs_str = "" \ " " \ " " \ " " \ -SYNC_MANAGER_ITEMS +SYNC_MANAGER_MENU_ITEMS " " \ " " \ " " \ @@ -47,6 +49,7 @@ SYNC_MANAGER_ITEMS " " \ " " \ " " \ +SYNC_MANAGER_TOOL_ITEMS \ " " \ " " \ " " \ diff --git a/shell/shell.c b/shell/shell.c index c1113dab..872bf593 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -293,7 +293,6 @@ void shell_view_set_enabled(gboolean setting) shell_action_set_enabled("CopyAction", setting); shell_action_set_enabled("ReportAction", setting); shell_action_set_enabled("SyncManagerAction", setting && sync_manager_count_entries() > 0); - } void shell_status_set_enabled(gboolean setting) @@ -761,6 +760,7 @@ void shell_init(GSList * modules) shell_action_set_property("RefreshAction", "is-important", TRUE); shell_action_set_property("ReportAction", "is-important", TRUE); shell_action_set_property("ReportBugAction", "is-important", TRUE); + shell_action_set_property("SyncManagerAction", "is-important", TRUE); shell->tree = tree_new(); shell->info_tree = info_tree_new(); -- cgit v1.2.3