aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/uidefs.h11
-rw-r--r--shell/shell.c2
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 " <separator/>" \
-" <menuitem name=\"SyncManager\" action=\"SyncManagerAction\" />"
+#define SYNC_MANAGER_MENU_ITEMS " <separator/>" \
+" <menuitem name=\"SyncManager\" action=\"SyncManagerAction\" always-show-image=\"true\"/>"
+#define SYNC_MANAGER_TOOL_ITEMS " <toolitem name=\"SyncManager\" action=\"SyncManagerAction\" />"
#else /* !HAS_LIBSOUP */
-#define SYNC_MANAGER_ITEMS
+#define SYNC_MANAGER_MENU_ITEMS
+#define SYNC_MANAGER_TOOL_ITEMS
#endif /* !HAS_LIBSOUP */
char *uidefs_str = "<ui>" \
@@ -23,7 +25,7 @@ char *uidefs_str = "<ui>" \
" <menu name=\"InformationMenu\" action=\"InformationMenuAction\">" \
" <menuitem name=\"Report\" action=\"ReportAction\" />" \
" <menuitem name=\"Copy\" action=\"CopyAction\" />" \
-SYNC_MANAGER_ITEMS
+SYNC_MANAGER_MENU_ITEMS
" <separator/>" \
" <menuitem name=\"Quit\" action=\"QuitAction\" />" \
" </menu>" \
@@ -47,6 +49,7 @@ SYNC_MANAGER_ITEMS
" <toolbar action=\"MainMenuBar\" action=\"MainMenuBarAction\">" \
" <placeholder name=\"ToolItems\">" \
" <toolitem name=\"Refresh\" action=\"RefreshAction\"/>" \
+SYNC_MANAGER_TOOL_ITEMS \
" <separator/>" \
" <toolitem name=\"Report\" action=\"ReportAction\"/>" \
" <toolitem name=\"Copy\" action=\"CopyAction\"/>" \
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();