diff options
author | JP Rosevear <jpr@src.gnome.org> | 1999-08-13 11:06:36 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 1999-08-13 11:06:36 +0800 |
commit | 18aeb0ec732ed54dcf556d62162fe0392807a675 (patch) | |
tree | fb568c10683d1562ba462687db44d4f0dfea04a7 /calendar/gui | |
parent | 1c721c4abb74d443b0a0bc0893e11716a348c846 (diff) | |
download | gsoc2013-evolution-18aeb0ec732ed54dcf556d62162fe0392807a675.tar gsoc2013-evolution-18aeb0ec732ed54dcf556d62162fe0392807a675.tar.gz gsoc2013-evolution-18aeb0ec732ed54dcf556d62162fe0392807a675.tar.bz2 gsoc2013-evolution-18aeb0ec732ed54dcf556d62162fe0392807a675.tar.lz gsoc2013-evolution-18aeb0ec732ed54dcf556d62162fe0392807a675.tar.xz gsoc2013-evolution-18aeb0ec732ed54dcf556d62162fe0392807a675.tar.zst gsoc2013-evolution-18aeb0ec732ed54dcf556d62162fe0392807a675.zip |
BUGFIX: 1515
Just check if the ical object is new or not and set the title
appropriately.
svn path=/trunk/; revision=1109
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/eventedit.c | 7 |
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 */ |