aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/eventedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/eventedit.c')
-rw-r--r--calendar/gui/eventedit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/gui/eventedit.c b/calendar/gui/eventedit.c
index 027c59839d..ca7a251792 100644
--- a/calendar/gui/eventedit.c
+++ b/calendar/gui/eventedit.c
@@ -1469,7 +1469,6 @@ static void
event_editor_init (EventEditor *ee)
{
ee->ical = 0;
- gtk_window_set_title (GTK_WINDOW (ee), _("Create new appointment"));
gnome_dialog_set_close (GNOME_DIALOG(ee), TRUE);
}
@@ -1502,6 +1501,12 @@ event_editor_new (GnomeCalendar *gcal, iCalObject *ical)
if (ical == 0){
ical = ical_new ("", user_name, "");
ical->new = 1;
+ }
+
+ if (ical->new){
+ gtk_window_set_title (GTK_WINDOW (ee), _("Create new appointment"));
+ } else {
+ gtk_window_set_title (GTK_WINDOW (ee), _("Edit appointment"));
}
ical->user_data = ee; /* so that the world can know we are editing it */