aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 4fb09c5961..c01230cbf2 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -41,6 +41,9 @@
#include <gtk/gtkmain.h>
#include <libgnome/gnome-defs.h>
#include <libgnome/gnome-i18n.h>
+#include <libgnome/gnome-i18n.h>
+#include <libgnome/gnome-exec.h>
+#include <libgnome/gnome-util.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk-pixbuf/gnome-canvas-pixbuf.h>
#include <gal/e-text/e-text.h>
@@ -200,6 +203,8 @@ static void e_week_view_on_publish (GtkWidget *widget,
gpointer data);
static void e_week_view_on_settings (GtkWidget *widget,
gpointer data);
+static void e_week_view_on_pilot_settings (GtkWidget *widget,
+ gpointer data);
static void e_week_view_on_delete_occurrence (GtkWidget *widget,
gpointer data);
static void e_week_view_on_delete_appointment (GtkWidget *widget,
@@ -3457,6 +3462,7 @@ static EPopupMenu main_items [] = {
E_POPUP_SEPARATOR,
E_POPUP_ITEM (N_("_Configure..."), e_week_view_on_settings, 0),
+ E_POPUP_ITEM (N_("_Configure Pilot..."), e_week_view_on_pilot_settings, 0),
E_POPUP_TERMINATOR
};
@@ -3817,6 +3823,29 @@ e_week_view_on_settings (GtkWidget *widget, gpointer data)
}
static void
+e_week_view_on_pilot_settings (GtkWidget *widget, gpointer data)
+{
+ char *args[] = {
+ "gpilotd-control-applet",
+ NULL
+ };
+ int pid;
+
+ args[0] = gnome_is_program_in_path ("gpilotd-control-applet");
+ if (!args[0]) {
+ e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ _("The GNOME Pilot tools do not appear to be installed on this system."));
+ return;
+ }
+
+ pid = gnome_execute_async (NULL, 4, args);
+ if (pid == -1)
+ e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("Error executing %s."), args[0]);
+
+ g_free (args[0]);
+}
+
+static void
e_week_view_on_delete_occurrence (GtkWidget *widget, gpointer data)
{
EWeekView *week_view;