diff options
author | Seth Alves <alves@src.gnome.org> | 2000-04-10 02:46:25 +0800 |
---|---|---|
committer | Seth Alves <alves@src.gnome.org> | 2000-04-10 02:46:25 +0800 |
commit | 9496367085a9e45cf4d918987aab2244e3c7ece1 (patch) | |
tree | cec62e9ba647d28172ef834c6f59150589d557d1 /calendar/gui/calendar-commands.c | |
parent | 99612fe24cfc0dcb5bc8f020fe759ccb3cfc1416 (diff) | |
download | gsoc2013-evolution-9496367085a9e45cf4d918987aab2244e3c7ece1.tar.gz gsoc2013-evolution-9496367085a9e45cf4d918987aab2244e3c7ece1.tar.zst gsoc2013-evolution-9496367085a9e45cf4d918987aab2244e3c7ece1.zip |
catch cal_loaded signal on the cal client. (gnome_calendar_load_cb):
* gui/gnome-cal.c (gnome_calendar_load): catch cal_loaded signal
on the cal client.
(gnome_calendar_load_cb): callback for cal_loaded signal. moved
gnome_calendar_update_all from gnome_calendar_load to here.
* gui/calendar-commands.c: minor cleanups
* pcs/cal-backend.c (save_to_vcal): copied code from gnome-pim
to write vcal to a file
(save): filled it with more gnome-pim code
(add_object): call save () after changing
(remove_object): same
(cal_backend_create): same
(cal_backend_remove_object): same
svn path=/trunk/; revision=2352
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index 9b3fa91525..12b3c92774 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -566,6 +566,7 @@ calendar_close_event (GtkWidget *widget, GdkEvent *event, GnomeCalendar *gcal) return TRUE; } + GnomeCalendar * new_calendar (char *full_name, char *calendar_file, char *geometry, char *page, gboolean hidden) { @@ -584,16 +585,7 @@ new_calendar (char *full_name, char *calendar_file, char *geometry, char *page, if (gnome_parse_geometry (geometry, &xpos, &ypos, &width, &height)){ if (xpos != -1) gtk_widget_set_uposition (toplevel, xpos, ypos); - /*if (width != -1) - gtk_widget_set_usize (toplevel, width, 600);*/ } - /*gtk_widget_set_usize (toplevel, width, 600); */ - - /* - setup_appbar (toplevel); - setup_menu (toplevel); - */ - if (page) gnome_calendar_set_view (GNOME_CALENDAR (toplevel), page); @@ -601,12 +593,13 @@ new_calendar (char *full_name, char *calendar_file, char *geometry, char *page, printf ("calendar_file is '%s'\n", calendar_file?calendar_file:"NULL"); if (calendar_file && g_file_exists (calendar_file)) { printf ("loading calendar\n"); - success = gnome_calendar_load (GNOME_CALENDAR (toplevel), calendar_file); + success = gnome_calendar_load (GNOME_CALENDAR (toplevel), + calendar_file); } else { printf ("creating calendar\n"); - success = gnome_calendar_create (GNOME_CALENDAR (toplevel), calendar_file); - /*GNOME_CALENDAR (toplevel)->client->filename = g_strdup (calendar_file);*/ + success = gnome_calendar_create (GNOME_CALENDAR (toplevel), + calendar_file); } printf ("load or create returned %d\n", success); |