diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-12-28 11:03:35 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-12-28 11:03:35 +0800 |
commit | ae7307e9702f6cd1ce5a419e648ebbb9bde0b310 (patch) | |
tree | 3140804fc692cfc7e2d4d39730c80bcff92f43cb /shell | |
parent | 4bd4e95a27dcecb2ec299ef5a2163831d47ea825 (diff) | |
download | gsoc2013-evolution-ae7307e9702f6cd1ce5a419e648ebbb9bde0b310.tar.gz gsoc2013-evolution-ae7307e9702f6cd1ce5a419e648ebbb9bde0b310.tar.zst gsoc2013-evolution-ae7307e9702f6cd1ce5a419e648ebbb9bde0b310.zip |
Hide "Submit Bug Report" if bug-buddy is not present.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/e-shell-window-actions.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 * |