aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/eventedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/eventedit.c')
-rw-r--r--calendar/eventedit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/eventedit.c b/calendar/eventedit.c
index 027c59839d..ca7a251792 100644
--- a/calendar/eventedit.c
+++ b/calendar/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 */