aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/eventedit.c7
-rw-r--r--calendar/gui/eventedit.c7
2 files changed, 12 insertions, 2 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 */
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 */