[evolution] Hide "Submit Bug Report" if bug-buddy is not present.
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Hide "Submit Bug Report" if bug-buddy is not present.
- Date: Mon, 28 Dec 2009 03:05:07 +0000 (UTC)
commit ae7307e9702f6cd1ce5a419e648ebbb9bde0b310
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Dec 27 22:03:35 2009 -0500
Hide "Submit Bug Report" if bug-buddy is not present.
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 5cdf2a9..2266b00 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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]