aboutsummaryrefslogtreecommitdiffstats
path: root/wombat/wombat.c
Commit message (Collapse)AuthorAgeFilesLines
* fixed a bunch of problems use libical instead of libversitSeth Alves2000-06-071-1/+3
| | | | | | | | | | | | | | | * cal-util/icalendar.c, icalendar-save.c: fixed a bunch of problems * cal-util/calobj.c (ical_object_find_in_string): use libical instead of libversit (ical_object_to_string): same (dump_icalobject): prints the contents of an icalobject for debugging * gui/Makefile.am (LINK_FLAGS): link libical.a instead of libical.la so we don't have to modify the build system of the released libical * cal-client/Makefile.am (client_test_LDADD): same * cal-util/Makefile.am (icalendar_test_LDADD): same svn path=/trunk/; revision=3446
* CalBackendClass now is just an interface for calendar backends; this is anFederico Mena Quintero2000-05-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-05-08 Federico Mena Quintero <federico@helixcode.com> * pcs/cal-backend.h (CalBackendClass): CalBackendClass now is just an interface for calendar backends; this is an abstract class. Put in the vtable for the backend methods. * pcs/cal-backend.c (cal_backend_new): Removed function, since CalBackend is not just an abstract class. Removed implementation-specific functions and made public functions call the virtual methods instead. * pcs/cal-backend-imc.[ch]: New files with the CalBackendIMC implementation; this implements a backend for iCalendar and vCalendar files. Moved the implementation-specific stuff from cal-backend.[ch] to here. * pcs/cal-backend-imc.c (CalendarFormat): Moved enumeration to here. Added a CAL_UNKNOWN value for when the backend is not loaded yet. (cal_backend_imc_init): Initialize priv->format as CAL_UNKNOWN. (save_to_vcal): Use the same VCProdIdProp value as in cal-util/calobj.c. Use "1.0" as the VCVersionProp as per the vCalendar spec. (ensure_uid): Return nothing, since the result value need not be used anymore. (add_object): Since we mark the calendar as dirty anyways, we do not need to check the result value of ensure_uid() anymore. (remove_object): Asssert that we know how to handle the object's type. We do this in add_object() anyways. * pcs/Makefile.am (libpcs_a_SOURCES): Added cal-backend-imc.[ch]. * gui/gnome-cal.c: Replaced debugging printf()s with g_message() so that we can see the line number where they occur. * gui/gnome-cal.c (gnome_calendar_load_cb): Sort of handle the LOAD_METHOD_NOT_SUPPORTED result code, and added a default for the switch. * cal-client/cal-listener.h (CalListenerLoadStatus): Removed enumeration; it is stupid to translate all values for the CalClient when it is going to translate them again. (CalListenerClass::cal_loaded): This signal now passes the LoadStatus directly from the CORBA side. * cal-client/cal-listener.c (Listener_cal_loaded): Do not translate the status value. * cal-client/cal-client.h (CalClientLoadStatus): Added the CAL_CLIENT_LOAD_METHOD_NOT_SUPPORTED error code. * cal-client/cal-client.c (cal_loaded_cb): Translate the CORBA version of the LoadStatus result code. * pcs/cal-factory.c (CalFactoryPrivate): New methods field for the hash table from method strings to the GtkTypes for backend class types. (cal_factory_init): Create the priv->methods hash table. (cal_factory_destroy): Free the priv->methods hash table. (cal_factory_register_method): New function to register a backend class for a particular URI method. (launch_backend_for_uri): New function to launch a backend for a particular URI's method. (load_backend): Use launch_backend_for_uri(). Move the error notification code from load_fn() to here. (create_backend): Use launch_backend_for_uri(). Move the error notification code form create_fn() to here; it is #ifdefed out since currently cal_backend_create() does not have any error reporting capabilities. * idl/evolution-calendar.idl (Listener::LoadStatus): Added a PROTOCOL_NOT_SUPPORTED error code. * pcs/cal-factory.c (cal_factory_load cal_factory_create): Removed functions, since they were supposed to be internal only. (CalFactory_load): Call queue_load_create_job() directly. (CalFactory_create): Likewise. svn path=/trunk/; revision=2921
* Doh, also unref the pas_book_factory when we are done.Federico Mena Quintero2000-05-011-0/+3
| | | | | | | | | 2000-05-01 Federico Mena Quintero <federico@helixcode.com> * wombat.c (main): Doh, also unref the pas_book_factory when we are done. svn path=/trunk/; revision=2710
* Removed stale comment - FedericoFederico Mena Quintero2000-05-011-2/+0
| | | | svn path=/trunk/; revision=2709
* Connect to the "last_book_gone" signal of the book factory.Federico Mena Quintero2000-05-011-1/+13
| | | | | | | | | | | | 2000-04-30 Federico Mena Quintero <federico@helixcode.com> * wombat.c (setup_pas): Connect to the "last_book_gone" signal of the book factory. (last_book_gone_cb): Handle the "last_book_gone" signal. (termination_handler): Check if the book factory has zero running backends. svn path=/trunk/; revision=2706
* Made Evolution OAF-compatible.Ettore Perazzoli2000-04-281-31/+96
| | | | svn path=/trunk/; revision=2673
* Eeek, remove "while(1);" debug code - FedericoFederico Mena Quintero2000-04-261-3/+0
| | | | svn path=/trunk/; revision=2622
* New module-wide variables for the PAS and PCS factories. (setup_pcs):Federico Mena Quintero2000-04-261-21/+82
| | | | | | | | | | | | | | | | | | | | 2000-04-25 Federico Mena Quintero <federico@helixcode.com> * wombat.c (cal_factory pas_book_factory): New module-wide variables for the PAS and PCS factories. (setup_pcs): Connect to the "last_calendar_gone" signal of the calendar factory. (last_calendar_gone_cb): Queue a termination job. (queue_termination): Function to queue a termination job. We have to use a timeout to reduce the probability of running into GOAD's race condition with factories. (termination_handler): Check that the PCS and the PAS have zero backends. If so, exit the main loop. (setup_vfs): Use EXIT_FAILURE instead of 1. (init_bonobo): Likewise. (main): Destroy the factories and exit Wombat. Wheee! svn path=/trunk/; revision=2620
* Use "e-minicard" as the log domain.Federico Mena Quintero2000-04-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-04-18 Federico Mena Quintero <federico@helixcode.com> * gui/minicard/Makefile.am (INCLUDES): Use "e-minicard" as the log domain. * gui/component/Makefile.am (INCLUDES): Use "evolution-addressbook" as the log domain. * backend/pas/Makefile.am: Build libpas.a, not a shared library. Do not install any header files. (INCLUDES): Remove spurious include paths. * backend/pas/*.[ch]: Fix includes. * backend/ebook/Makefile.am: Do not install the test programs. Fixed some include weirdness. * backend/ebook/*.[ch]: Fix includes. * contact-editor/Makefile.am (INCLUDES): Set the log domain to "contact-editor". (INCLUDES): Fix. * contact-editor/*.[ch]: Fix includes. * gui/minicard/*.[ch]: Fix includes. svn path=/trunk/; revision=2529
* set calendar's uri with a property bagSeth Alves2000-04-191-0/+2
| | | | | | | | | | | | | | | * e-shell-view.c (get_view): set calendar's uri with a property bag * gui/evolution-calendar-control.c (calendar_properties_init): create a property bag for this control (set_prop): callback for property sets (get_prop): callback for proprety gets * gui/calendar-commands.c (calendar_set_uri): new function, called when the "calendar_uri" property is set on the calendar- control's property bag. svn path=/trunk/; revision=2501
* Removed spurious calendar directories from the include path. AddedFederico Mena Quintero2000-04-171-9/+20
| | | | | | | | | | | | | | | | | | 2000-04-16 Federico Mena Quintero <federico@helixcode.com> * Makefile.am (INCLUDES): Removed spurious calendar directories from the include path. Added "wombat" log domain for glib. (wombat_LDADD): Link libpcs.a instead of the old shared library. * wombat.c: cal-factory.h is an internal include file. * wombat.c (setup_pcs): We should NOT share a CORBA_environment across all functions! Use our own CORBA_environment. (init_bonobo): Use our own CORBA_environment. Free the exception after initializing GOAD, and present some error messages if necessary. (Should g_message()s for exceptional situations be marked for translation?). svn path=/trunk/; revision=2462
* Must pass "object" for the kind to goad_server_register(); "server" isFederico Mena Quintero2000-04-141-15/+21
| | | | | | | | | | | | | | | | 2000-04-14 Federico Mena Quintero <federico@helixcode.com> * wombat.c (setup_pcs): Must pass "object" for the kind to goad_server_register(); "server" is meaningless. (setup_pcs): Do not free the CORBA environment more than once. Also, fix error messages. * wombat.gnorba: The GOAD ID is "evolution:calendar-factory", not "evolution:calendar-server". * ChangeLog: Started the ChangeLog for Wombat. svn path=/trunk/; revision=2423
* add LDAP_LIBS here.Chris Toshok2000-04-121-0/+8
| | | | | | | | | | | | | | | | | | * wombat/Makefile.am (wombat_LDADD): add LDAP_LIBS here. * configure.in: check for -lldap and -llber and if both are present include ldap support in the pas/wombat. * addressbook/backend/pas/Makefile.am (libpas_la_SOURCES): include pas-backend.ldap.c if ENABLE_LDAP. * addressbook/backend/pas/pas-backend-ldap.c: get searching working (converting between the sexp and ldap stuff.) * wombat/wombat.c (setup_pas): register the ldap pas backend if HAVE_LDAP is defined. svn path=/trunk/; revision=2401
* + * wombat/wombat.c: Changed headerfile path.Matthew Loper2000-03-291-2/+2
| | | | | | | | | + + * wombat/Makefile.am: Use relative paths to libraries in the build + tree, rather than requiring libraries (such as libpcs) to already + be installed. svn path=/trunk/; revision=2245
* + * wombat/Makefile.am: new file.Matthew Loper2000-03-291-9/+37
| | | | | | | | | | | + * wombat/wombat.gnorba: Cleaned up. + + * wombat/wombat.c (setup_pcs): filled in the rest. + + * e-table-text-model.c (e_table_text_model_destroy): made + assertion more accurate. svn path=/trunk/; revision=2244
* + * wombat/wombat.gnorba: new file.Matthew Loper2000-03-291-2/+15
| | | | | | | | | | | | | | + + * wombat/.cvsignore: new file. + + * wombat/wombat.c (setup_pcs): fill out this function some. + + * configure.in: added wombat. + + * pcs/Makefile.am: create a libpcs.la library, for use in the + wombat. svn path=/trunk/; revision=2241
* For matt.Nat Friedman2000-03-291-0/+76
svn path=/trunk/; revision=2219