aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-05-10 02:38:03 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-05-10 02:38:03 +0800
commit50aa4d1e2806a9ccadcfa56d5cc2fc279bcb7d5e (patch)
tree352174f493666aeecdd1aebf3fa9ef04d8ef3dfb
parent4319ee72dc5e14e2367362c4dd2034d2872e545c (diff)
downloadgsoc2013-evolution-50aa4d1e2806a9ccadcfa56d5cc2fc279bcb7d5e.tar
gsoc2013-evolution-50aa4d1e2806a9ccadcfa56d5cc2fc279bcb7d5e.tar.gz
gsoc2013-evolution-50aa4d1e2806a9ccadcfa56d5cc2fc279bcb7d5e.tar.bz2
gsoc2013-evolution-50aa4d1e2806a9ccadcfa56d5cc2fc279bcb7d5e.tar.lz
gsoc2013-evolution-50aa4d1e2806a9ccadcfa56d5cc2fc279bcb7d5e.tar.xz
gsoc2013-evolution-50aa4d1e2806a9ccadcfa56d5cc2fc279bcb7d5e.tar.zst
gsoc2013-evolution-50aa4d1e2806a9ccadcfa56d5cc2fc279bcb7d5e.zip
New function; allows users to submit a bug. + (command_run_bugbuddy):
* e-shell-view-menu.c (command_run_bugbuddy): New function; allows users to submit a bug. + (command_run_bugbuddy): Implemented with jacob's patch. svn path=/trunk/; revision=2960
-rw-r--r--shell/ChangeLog1
-rw-r--r--shell/e-shell-view-menu.c26
2 files changed, 24 insertions, 3 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index ffe06a1e29..b4925467c7 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -2,6 +2,7 @@
* e-shell-view-menu.c (command_run_bugbuddy): New function; allows
users to submit a bug.
+ (command_run_bugbuddy): Implemented with jacob's patch.
2000-05-09 Ettore Perazzoli <ettore@helixcode.com>
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c
index f0d4bdc9c0..44657737d4 100644
--- a/shell/e-shell-view-menu.c
+++ b/shell/e-shell-view-menu.c
@@ -44,10 +44,29 @@ command_quit (GtkWidget *widget,
}
static void
-command_run_bugbuddy (GtkWidget *widget, gpointer data)
+command_run_bugbuddy (GtkWidget *menuitem, gpointer data)
{
-
-
+ int pid;
+ char *args[] = {
+ "bug-buddy",
+ "--sm-disable",
+ "--package=evolution",
+ "--package-ver="VERSION,
+ NULL
+ };
+ args[0] = gnome_is_program_in_path ("bug-buddy");
+ if (!args[0]) {
+ /* you might have to call gnome_dialog_run() on the
+ * dialog returned here, I don't remember...
+ */
+ gnome_error_dialog (_("Bug buddy was not found in your $PATH."));
+ }
+ pid = gnome_execute_async (NULL, 4, args);
+ g_free (args[0]);
+ if (pid == -1) {
+ /* same as above */
+ gnome_error_dialog (_("Bug buddy could not be run."));
+ }
}
@@ -205,6 +224,7 @@ GnomeUIInfo e_shell_view_menu [] = {
{ GNOME_APP_UI_SUBTREE, N_("_Tools"), NULL, menu_tools },
{ GNOME_APP_UI_SUBTREE, N_("_Actions"), NULL, menu_actions },
+ GNOMEUIINFO_MENU_HELP_TREE (menu_help),
#warning Should provide a help menu here; Bonobo needs it