From ae7307e9702f6cd1ce5a419e648ebbb9bde0b310 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 27 Dec 2009 22:03:35 -0500 Subject: Hide "Submit Bug Report" if bug-buddy is not present. --- shell/e-shell-window-actions.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'shell/e-shell-window-actions.c') diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c index 5cdf2a932f..2266b005b7 100644 --- a/shell/e-shell-window-actions.c +++ b/shell/e-shell-window-actions.c @@ -1867,6 +1867,7 @@ e_shell_window_actions_init (EShellWindow *shell_window) GtkActionGroup *action_group; EFocusTracker *focus_tracker; GtkUIManager *ui_manager; + gchar *path; g_return_if_fail (E_IS_SHELL_WINDOW (shell_window)); @@ -1972,6 +1973,12 @@ e_shell_window_actions_init (EShellWindow *shell_window) e_binding_new ( ACTION (SHOW_SIDEBAR), "active", ACTION (SWITCHER_MENU), "sensitive"); + + /* Submitting bug reports requires bug-buddy. */ + path = g_find_program_in_path ("bug-buddy"); + if (path == NULL) + gtk_action_set_visible (ACTION (SUBMIT_BUG), FALSE); + g_free (path); } GtkWidget * -- cgit v1.2.3