diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1998-04-19 05:37:45 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-19 05:37:45 +0800 |
commit | 24f0de634028297d3647779cffa082f8ff6a230a (patch) | |
tree | 197addeb391befbf624534683e567c4d6173cd52 /calendar/main.c | |
parent | 6329a627a9e719838427d02e9d4480bf3c6cd76a (diff) | |
download | gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.gz gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.bz2 gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.lz gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.xz gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.zst gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.zip |
Add Quoted printable property to items containing new lines. (duration):
1998-04-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (ical_object_to_vobject): Add Quoted printable property
to items containing new lines.
(duration): Use unsigned integers, to work around buggy calendar
files generated by korganizer.
* main.c (save_calendar_cmd): Do not ask for file name if we are
saving.
(save_as_calendar_cmd): New command.
svn path=/trunk/; revision=158
Diffstat (limited to 'calendar/main.c')
-rw-r--r-- | calendar/main.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/calendar/main.c b/calendar/main.c index a3b9ce2bcc..cc7a0ecd85 100644 --- a/calendar/main.c +++ b/calendar/main.c @@ -229,7 +229,7 @@ close_save (GtkWidget *w) } void -save_calendar_cmd (GtkWidget *widget, void *data) +save_as_calendar_cmd (GtkWidget *widget, void *data) { GtkFileSelection *fs; @@ -251,6 +251,17 @@ save_calendar_cmd (GtkWidget *widget, void *data) gtk_widget_destroy (GTK_WIDGET (fs)); } +void +save_calendar_cmd (GtkWidget *widget, void *data) +{ + GnomeCalendar *gcal = data; + + if (gcal->cal->filename) + calendar_save (gcal->cal, gcal->cal->filename); + else + save_as_calendar_cmd (widget, data); +} + GnomeUIInfo gnome_cal_file_menu [] = { { GNOME_APP_UI_ITEM, N_("New calendar"), NULL, new_calendar_cmd }, @@ -260,6 +271,9 @@ GnomeUIInfo gnome_cal_file_menu [] = { { GNOME_APP_UI_ITEM, N_("Save calendar..."), NULL, save_calendar_cmd, NULL, NULL, GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_SAVE }, + { GNOME_APP_UI_ITEM, N_("Save calendar as..."), NULL, save_as_calendar_cmd, NULL, NULL, + GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_SAVE }, + { GNOME_APP_UI_SEPARATOR }, { GNOME_APP_UI_ITEM, N_("Close this calendar"), NULL, close_cmd, NULL, NULL, GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_EXIT }, @@ -284,7 +298,7 @@ GnomeUIInfo gnome_cal_edit_menu [] = { 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_("Calendar"), NULL, &gnome_cal_edit_menu }, { GNOME_APP_UI_SUBTREE, N_("Help"), NULL, &gnome_cal_about_menu }, GNOMEUIINFO_END }; |