From 32bc83c91d575d7258252a9c532309e8e9015d84 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 27 Dec 2009 22:15:23 -0500 Subject: Clarify "Synchronization Options" menu item. Rename it "GNOME Pilot Synchronization" and only display the item if gnome-pilot is installed. --- shell/e-shell-window-actions.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'shell') diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c index 2266b005b7..79bc8b78b7 100644 --- a/shell/e-shell-window-actions.c +++ b/shell/e-shell-window-actions.c @@ -1306,7 +1306,7 @@ action_switcher_style_cb (GtkRadioAction *action, * * Activation of this action opens the Gnome Pilot settings. * - * Main menu item: Edit -> Synchronization Options... + * Main menu item: Edit -> GNOME Pilot Synchronization... **/ static void action_sync_options_cb (GtkAction *action, @@ -1579,9 +1579,9 @@ static GtkActionEntry shell_entries[] = { { "sync-options", NULL, - N_("_Synchronization Options..."), + N_("GNOME Pilot _Synchronization..."), NULL, - N_("Set up Pilot configuration"), + N_("Set up GNOME Pilot configuration"), G_CALLBACK (action_sync_options_cb) }, { "work-offline", @@ -1979,6 +1979,12 @@ e_shell_window_actions_init (EShellWindow *shell_window) if (path == NULL) gtk_action_set_visible (ACTION (SUBMIT_BUG), FALSE); g_free (path); + + /* Sychronizing your Palm PDA requires gnome-pilot. */ + path = g_find_program_in_path ("gpilotd-control-applet"); + if (path == NULL) + gtk_action_set_visible (ACTION (SYNC_OPTIONS), FALSE); + g_free (path); } GtkWidget * -- cgit