aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/main.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-03 12:53:51 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-03 12:53:51 +0800
commitdc90ad6b4302059c79a95d535c8363829faed7df (patch)
tree16d6a6f39048e3e01a8b63de62659230e3924a77 /calendar/gui/main.c
parent01b4ff7532756f9202336e59d2f1e401e758fcf9 (diff)
downloadgsoc2013-evolution-dc90ad6b4302059c79a95d535c8363829faed7df.tar
gsoc2013-evolution-dc90ad6b4302059c79a95d535c8363829faed7df.tar.gz
gsoc2013-evolution-dc90ad6b4302059c79a95d535c8363829faed7df.tar.bz2
gsoc2013-evolution-dc90ad6b4302059c79a95d535c8363829faed7df.tar.lz
gsoc2013-evolution-dc90ad6b4302059c79a95d535c8363829faed7df.tar.xz
gsoc2013-evolution-dc90ad6b4302059c79a95d535c8363829faed7df.tar.zst
gsoc2013-evolution-dc90ad6b4302059c79a95d535c8363829faed7df.zip
More calendar work -mig
svn path=/trunk/; revision=98
Diffstat (limited to 'calendar/gui/main.c')
-rw-r--r--calendar/gui/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/calendar/gui/main.c b/calendar/gui/main.c
index 628626dcb8..0c41fb77a5 100644
--- a/calendar/gui/main.c
+++ b/calendar/gui/main.c
@@ -11,6 +11,7 @@
#include <sys/types.h>
#include "calendar.h"
#include "gnome-cal.h"
+#include "main.h"
/* The username, used to set the `owner' field of the event */
char *user_name;
@@ -119,6 +120,15 @@ about_calendar_cmd (GtkWidget *widget, void *data)
}
void
+display_objedit (GtkWidget *widget, GnomeCalendar *gcal)
+{
+ if (!gcal->event_editor){
+ gcal->event_editor = event_editor_new ();
+ gtk_widget_show (gcal->event_editor);
+ }
+}
+
+void
quit_cmd (GtkWidget *widget, GnomeCalendar *gcal)
{
/* FIXME: check all of the calendars for their state (modified) */
@@ -167,8 +177,14 @@ GnomeUIInfo gnome_cal_about_menu [] = {
GNOMEUIINFO_END
};
+GnomeUIInfo gnome_cal_edit_menu [] = {
+ { GNOME_APP_UI_ITEM, N_("Appointment"), NULL, display_objedit },
+ GNOMEUIINFO_END
+};
+
GnomeUIInfo gnome_cal_menu [] = {
{ GNOME_APP_UI_SUBTREE, N_("File"), NULL, &gnome_cal_file_menu },
+ { GNOME_APP_UI_SUBTREE, N_("Edit"), NULL, &gnome_cal_edit_menu },
{ GNOME_APP_UI_SUBTREE, N_("Help"), NULL, &gnome_cal_about_menu },
GNOMEUIINFO_END
};