diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-03-25 23:30:16 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-03-25 23:30:16 +0800 |
commit | e29d5a8a7adbc9363d4a054b6ab70ada182ae15d (patch) | |
tree | 1d24c0a19929aceb4019abac6d051974851d52ec /calendar/gui/control-factory.c | |
parent | e831dbdd6743d61c84966f9f84aa07adac48c320 (diff) | |
download | gsoc2013-evolution-e29d5a8a7adbc9363d4a054b6ab70ada182ae15d.tar gsoc2013-evolution-e29d5a8a7adbc9363d4a054b6ab70ada182ae15d.tar.gz gsoc2013-evolution-e29d5a8a7adbc9363d4a054b6ab70ada182ae15d.tar.bz2 gsoc2013-evolution-e29d5a8a7adbc9363d4a054b6ab70ada182ae15d.tar.lz gsoc2013-evolution-e29d5a8a7adbc9363d4a054b6ab70ada182ae15d.tar.xz gsoc2013-evolution-e29d5a8a7adbc9363d4a054b6ab70ada182ae15d.tar.zst gsoc2013-evolution-e29d5a8a7adbc9363d4a054b6ab70ada182ae15d.zip |
The model_rows_{inserted,deleted} signals changed names; deal with it.
2001-03-25 Federico Mena Quintero <federico@ximian.com>
* gui/e-calendar-table.c (e_calendar_table_init): The
model_rows_{inserted,deleted} signals changed names; deal with it.
(e_calendar_table_on_rows_inserted): Updated for new ETable API.
(e_calendar_table_on_rows_deleted): Likewise.
* gui/gnome-cal.h (GnomeCalendarOpenMode): Removed unused enum.
* gui/gnome-cal.c (gnome_calendar_open): Constify.
* gui/calendar-commands.c (calendar_set_uri): Removed function,
since it was just calling gnome_calendar_open().
* gui/control-factory.c (set_prop): Replace usage of
calendar_set_uri() with gnome_calendar_open().
(load_calendar): Likewise.
(calendar_persist_init): Made static.
* gui/e-tasks.c: #include "calendar-config.h"
(e_tasks_update_all_config_settings): We are configuring a table,
not a calendar! Use the appropriate function.
svn path=/trunk/; revision=8928
Diffstat (limited to 'calendar/gui/control-factory.c')
-rw-r--r-- | calendar/gui/control-factory.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/calendar/gui/control-factory.c b/calendar/gui/control-factory.c index c00e10d35a..1f834e5ad6 100644 --- a/calendar/gui/control-factory.c +++ b/calendar/gui/control-factory.c @@ -96,11 +96,10 @@ set_prop (BonoboPropertyBag *bag, char *filename; switch (arg_id) { - case PROPERTY_CALENDAR_URI_IDX: filename = g_strdup_printf ("%s/calendar.ics", BONOBO_ARG_GET_STRING (arg)); - calendar_set_uri (gcal, filename); + gnome_calendar_open (gcal, filename); /* FIXME: result value -> exception? */ g_free (filename); break; @@ -163,27 +162,25 @@ load_calendar (BonoboPersistFile *pf, const CORBA_char *filename, CORBA_Environm { GnomeCalendar *gcal = closure; - calendar_set_uri (gcal, filename); - - return 0; + return gnome_calendar_open (gcal, filename); } static int -save_calendar (BonoboPersistFile *pf, const CORBA_char *filename, CORBA_Environment *ev, void *closure) +save_calendar (BonoboPersistFile *pf, const CORBA_char *filename, + CORBA_Environment *ev, + void *closure) { /* Do not know how to save stuff yet */ return -1; } -void +static void calendar_persist_init (GnomeCalendar *gcal, BonoboControl *control) { BonoboPersistFile *f; - + f = bonobo_persist_file_new (load_calendar, save_calendar, gcal); - bonobo_object_add_interface ( - BONOBO_OBJECT (control), - BONOBO_OBJECT (f)); + bonobo_object_add_interface (BONOBO_OBJECT (control), BONOBO_OBJECT (f)); } BonoboControl * |