diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2002-11-02 08:26:06 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2002-11-02 08:26:06 +0800 |
commit | b87002d69794ef55c90b21b9ee7ca58e40a64960 (patch) | |
tree | 7fa81487308b1372301d8c4531065d41fd7ddf45 | |
parent | 793f838a7be8618034e8544ca364c0f09457f316 (diff) | |
download | gsoc2013-evolution-b87002d69794ef55c90b21b9ee7ca58e40a64960.tar.gz gsoc2013-evolution-b87002d69794ef55c90b21b9ee7ca58e40a64960.tar.zst gsoc2013-evolution-b87002d69794ef55c90b21b9ee7ca58e40a64960.zip |
cal-client/cal-listener.h
2002-10-31 Rodrigo Moya <rodrigo@ximian.com>
* cal-util/cal-component.[ch]:
* cal-util/cal-recur.h:
* cal-util/cal-util.[ch]:
* cal-client/cal-client.h:
* cal-client/cal-client-multi.h:
* cal-client/cal-client-types.[ch]:
* cal-client/cal-listener.h
* cal-client/cal-query.[ch]:
* cal-client/query-listener.h:
* pcs/cal.h:
* pcs/cal-backend.[ch]:
* pcs/cal-backend-file.h:
* pcs/cal-backend-util.h:
* pcs/cal-common.h:
* pcs/cal-factory.h:
* pcs/query.[ch]:
* pcs/query-backend.[ch]: started GNOME 2 porting.
cal-util, cal-client and pcs compiled ok.
* cal-client/cal-client.c (cal_client_construct):
* pcs/cal-factory.c: use b-a instead of OAF and bonobo-config
instead of bonobo-conf.
svn path=/trunk/; revision=18496
28 files changed, 110 insertions, 97 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index ec1887bd3b..2c7650833d 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,28 @@ +2002-10-31 Rodrigo Moya <rodrigo@ximian.com> + + * cal-util/cal-component.[ch]: + * cal-util/cal-recur.h: + * cal-util/cal-util.[ch]: + * cal-client/cal-client.h: + * cal-client/cal-client-multi.h: + * cal-client/cal-client-types.[ch]: + * cal-client/cal-listener.h + * cal-client/cal-query.[ch]: + * cal-client/query-listener.h: + * pcs/cal.h: + * pcs/cal-backend.[ch]: + * pcs/cal-backend-file.h: + * pcs/cal-backend-util.h: + * pcs/cal-common.h: + * pcs/cal-factory.h: + * pcs/query.[ch]: + * pcs/query-backend.[ch]: started GNOME 2 porting. + cal-util, cal-client and pcs compiled ok. + + * cal-client/cal-client.c (cal_client_construct): + * pcs/cal-factory.c: use b-a instead of OAF and bonobo-config + instead of bonobo-conf. + 2002-10-29 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (backend_died_cb): cleaned up the status bar diff --git a/calendar/cal-client/cal-client-multi.c b/calendar/cal-client/cal-client-multi.c index aeebc72fda..7ccaae8472 100644 --- a/calendar/cal-client/cal-client-multi.c +++ b/calendar/cal-client/cal-client-multi.c @@ -93,7 +93,7 @@ cal_client_multi_class_init (CalClientMultiClass *klass) cal_multi_signals[CAL_OPENED] = gtk_signal_new ("cal_opened", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientMultiClass, cal_opened), gtk_marshal_NONE__POINTER_INT, GTK_TYPE_NONE, 2, @@ -101,7 +101,7 @@ cal_client_multi_class_init (CalClientMultiClass *klass) cal_multi_signals[OBJ_UPDATED] = gtk_signal_new ("obj_updated", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientMultiClass, obj_updated), gtk_marshal_NONE__POINTER_POINTER, GTK_TYPE_NONE, 2, @@ -109,7 +109,7 @@ cal_client_multi_class_init (CalClientMultiClass *klass) cal_multi_signals[OBJ_REMOVED] = gtk_signal_new ("obj_removed", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientMultiClass, obj_removed), gtk_marshal_NONE__POINTER_POINTER, GTK_TYPE_NONE, 2, @@ -117,7 +117,7 @@ cal_client_multi_class_init (CalClientMultiClass *klass) cal_multi_signals[CATEGORIES_CHANGED] = gtk_signal_new ("categories_changed", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientMultiClass, categories_changed), gtk_marshal_NONE__POINTER_POINTER, GTK_TYPE_NONE, 2, @@ -125,7 +125,7 @@ cal_client_multi_class_init (CalClientMultiClass *klass) cal_multi_signals[FORGET_PASSWORD] = gtk_signal_new ("forget_password", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientMultiClass, forget_password), gtk_marshal_NONE__POINTER_POINTER, GTK_TYPE_NONE, 2, diff --git a/calendar/cal-client/cal-client-multi.h b/calendar/cal-client/cal-client-multi.h index cded02e194..f16b2d60f4 100644 --- a/calendar/cal-client/cal-client-multi.h +++ b/calendar/cal-client/cal-client-multi.h @@ -23,7 +23,7 @@ #include <cal-client/cal-client.h> -BEGIN_GNOME_DECLS +G_BEGIN_DECLS #define CAL_CLIENT_MULTI_TYPE (cal_client_multi_get_type ()) #define CAL_CLIENT_MULTI(obj) (GTK_CHECK_CAST ((obj), CAL_CLIENT_MULTI_TYPE, CalClientMulti)) @@ -99,6 +99,6 @@ void cal_client_multi_generate_instances (CalClientMulti *multi, GSList *cal_client_multi_get_alarms_in_range (CalClientMulti *multi, time_t start, time_t end); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/cal-client/cal-client-types.h b/calendar/cal-client/cal-client-types.h index 9727fc9b3d..c160a1fa94 100644 --- a/calendar/cal-client/cal-client-types.h +++ b/calendar/cal-client/cal-client-types.h @@ -23,10 +23,9 @@ #ifndef CAL_CLIENT_TYPES_H #define CAL_CLIENT_TYPES_H -#include <libgnome/gnome-defs.h> #include <cal-util/cal-component.h> -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -44,7 +43,7 @@ typedef struct void cal_client_change_list_free (GList *list); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c index ec5401fb0f..9881a7c032 100644 --- a/calendar/cal-client/cal-client.c +++ b/calendar/cal-client/cal-client.c @@ -23,10 +23,10 @@ #endif #include <gtk/gtksignal.h> -#include <liboaf/liboaf.h> +#include <bonobo-activation/bonobo-activation.h> #include <bonobo/bonobo-exception.h> #include <bonobo/bonobo-moniker-util.h> -#include <bonobo-conf/bonobo-config-database.h> +#include <bonobo-config/bonobo-config-database.h> #include <libgnome/gnome-util.h> #include "e-util/e-component-listener.h" @@ -159,7 +159,7 @@ cal_client_class_init (CalClientClass *class) cal_client_signals[CAL_OPENED] = gtk_signal_new ("cal_opened", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientClass, cal_opened), gtk_marshal_NONE__ENUM, GTK_TYPE_NONE, 1, @@ -167,7 +167,7 @@ cal_client_class_init (CalClientClass *class) cal_client_signals[CAL_SET_MODE] = gtk_signal_new ("cal_set_mode", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientClass, cal_set_mode), marshal_NONE__ENUM_ENUM, GTK_TYPE_NONE, 2, @@ -176,7 +176,7 @@ cal_client_class_init (CalClientClass *class) cal_client_signals[OBJ_UPDATED] = gtk_signal_new ("obj_updated", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientClass, obj_updated), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, @@ -184,7 +184,7 @@ cal_client_class_init (CalClientClass *class) cal_client_signals[OBJ_REMOVED] = gtk_signal_new ("obj_removed", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientClass, obj_removed), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, @@ -192,7 +192,7 @@ cal_client_class_init (CalClientClass *class) cal_client_signals[BACKEND_ERROR] = gtk_signal_new ("backend_error", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientClass, backend_error), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, @@ -200,7 +200,7 @@ cal_client_class_init (CalClientClass *class) cal_client_signals[CATEGORIES_CHANGED] = gtk_signal_new ("categories_changed", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientClass, categories_changed), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, @@ -208,7 +208,7 @@ cal_client_class_init (CalClientClass *class) cal_client_signals[FORGET_PASSWORD] = gtk_signal_new ("forget_password", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientClass, forget_password), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, @@ -216,7 +216,7 @@ cal_client_class_init (CalClientClass *class) cal_client_signals[BACKEND_DIED] = gtk_signal_new ("backend_died", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalClientClass, backend_died), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); @@ -654,7 +654,7 @@ cal_client_construct (CalClient *client) { CalClientPrivate *priv; GNOME_Evolution_Calendar_CalFactory factory; - OAF_ServerInfoList *servers; + Bonobo_ServerInfoList *servers; CORBA_Environment ev; int i; @@ -666,7 +666,7 @@ cal_client_construct (CalClient *client) CORBA_exception_init (&ev); - servers = oaf_query ("repo_ids.has ('IDL:GNOME/Evolution/Calendar/CalFactory:1.0')", NULL, &ev); + servers = bonobo_activation_query ("repo_ids.has ('IDL:GNOME/Evolution/Calendar/CalFactory:1.0')", NULL, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_message ("Cannot perform OAF query for Calendar servers."); CORBA_exception_free (&ev); @@ -677,12 +677,12 @@ cal_client_construct (CalClient *client) g_warning ("No Calendar servers installed."); for (i = 0; i < servers->_length; i++) { - const OAF_ServerInfo *info; + const Bonobo_ServerInfo *info; info = servers->_buffer + i; factory = (GNOME_Evolution_Calendar_CalFactory) - oaf_activate_from_id (info->iid, 0, NULL, &ev); + bonobo_activation_activate_from_id (info->iid, 0, NULL, &ev); if (BONOBO_EX (&ev)) { g_warning ("cal_client_construct: Could not activate calendar server %s", info->iid); CORBA_free (servers); @@ -1054,8 +1054,8 @@ cal_client_is_read_only (CalClient *client) CORBA_Environment ev; CORBA_boolean read_only; - g_return_val_if_fail (client != NULL, NULL); - g_return_val_if_fail (IS_CAL_CLIENT (client), NULL); + g_return_val_if_fail (client != NULL, FALSE); + g_return_val_if_fail (IS_CAL_CLIENT (client), FALSE); priv = client->priv; diff --git a/calendar/cal-client/cal-client.h b/calendar/cal-client/cal-client.h index bb1a02e8e6..9c40722888 100644 --- a/calendar/cal-client/cal-client.h +++ b/calendar/cal-client/cal-client.h @@ -21,13 +21,13 @@ #ifndef CAL_CLIENT_H #define CAL_CLIENT_H -#include <libgnome/gnome-defs.h> +#include <glib/gmacros.h> #include <gtk/gtkobject.h> #include <cal-util/cal-recur.h> #include <cal-util/cal-util.h> #include <cal-client/cal-query.h> -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -208,6 +208,6 @@ char* cal_client_get_component_as_string (CalClient *client, -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/cal-client/cal-listener.h b/calendar/cal-client/cal-listener.h index 4d557a1fbc..536ea035c6 100644 --- a/calendar/cal-client/cal-listener.h +++ b/calendar/cal-client/cal-listener.h @@ -21,11 +21,11 @@ #ifndef CAL_LISTENER_H #define CAL_LISTENER_H -#include <libgnome/gnome-defs.h> +#include <gtk/gtkobject.h> #include <bonobo/bonobo-xobject.h> #include "evolution-calendar.h" -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -101,6 +101,6 @@ void cal_listener_stop_notification (CalListener *listener); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/cal-client/cal-query.c b/calendar/cal-client/cal-query.c index 80ffe5c845..8d87bb30a9 100644 --- a/calendar/cal-client/cal-query.c +++ b/calendar/cal-client/cal-query.c @@ -110,7 +110,7 @@ cal_query_class_init (CalQueryClass *class) query_signals[OBJ_UPDATED] = gtk_signal_new ("obj_updated", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalQueryClass, obj_updated), marshal_obj_updated, GTK_TYPE_NONE, 4, @@ -121,7 +121,7 @@ cal_query_class_init (CalQueryClass *class) query_signals[OBJ_REMOVED] = gtk_signal_new ("obj_removed", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalQueryClass, obj_removed), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, @@ -129,7 +129,7 @@ cal_query_class_init (CalQueryClass *class) query_signals[QUERY_DONE] = gtk_signal_new ("query_done", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalQueryClass, query_done), marshal_query_done, GTK_TYPE_NONE, 2, @@ -138,7 +138,7 @@ cal_query_class_init (CalQueryClass *class) query_signals[EVAL_ERROR] = gtk_signal_new ("eval_error", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalQueryClass, eval_error), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, diff --git a/calendar/cal-client/cal-query.h b/calendar/cal-client/cal-query.h index 5af5f3864d..a8d7d2a514 100644 --- a/calendar/cal-client/cal-query.h +++ b/calendar/cal-client/cal-query.h @@ -21,12 +21,11 @@ #ifndef CAL_QUERY_H #define CAL_QUERY_H -#include <libgnome/gnome-defs.h> #include <gtk/gtkobject.h> #include "evolution-calendar.h" -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -76,6 +75,6 @@ CalQuery *cal_query_new (GNOME_Evolution_Calendar_Cal cal, -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/cal-client/client-test.c b/calendar/cal-client/client-test.c index 56651566eb..cbd6335acc 100644 --- a/calendar/cal-client/client-test.c +++ b/calendar/cal-client/client-test.c @@ -23,10 +23,9 @@ #include <stdlib.h> #include <gtk/gtkmain.h> #include <gtk/gtksignal.h> -#include <libgnome/gnome-defs.h> #include <libgnome/gnome-i18n.h> -#include <libgnomeui/gnome-init.h> -#include <liboaf/liboaf.h> +#include <libgnome/gnome-init.h> +#include <bonobo-activation/bonobo-activation.h> #include <bonobo/bonobo-main.h> #include "cal-client.h" #include "cal-util/cal-component.h" @@ -221,10 +220,10 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, GNOMELOCALEDIR); textdomain (PACKAGE); - gnome_init ("tl-test", VERSION, argc, argv); + gnome_program_init ("tl-test", VERSION, LIBGNOME_MODULE, argc, argv, NULL); oaf_init (argc, argv); - if (!bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL)) { + if (!bonobo_init (&argc, argv)) { g_message ("main(): could not initialize Bonobo"); exit (1); } diff --git a/calendar/cal-client/query-listener.h b/calendar/cal-client/query-listener.h index 65cc9fbad4..fe509643dd 100644 --- a/calendar/cal-client/query-listener.h +++ b/calendar/cal-client/query-listener.h @@ -21,10 +21,11 @@ #ifndef QUERY_LISTENER_H #define QUERY_LISTENER_H +#include <gtk/gtkobject.h> #include <bonobo/bonobo-xobject.h> #include "evolution-calendar.h" -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -92,6 +93,6 @@ void query_listener_stop_notification (QueryListener *ql); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c index 197ba81a21..b16a5d2f45 100644 --- a/calendar/cal-util/cal-component.c +++ b/calendar/cal-util/cal-component.c @@ -24,7 +24,6 @@ #include <stdlib.h> #include <unistd.h> #include <glib.h> -#include <libgnome/gnome-defs.h> #include <libgnome/gnome-i18n.h> #include "cal-component.h" #include "timeutil.h" diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index 0c0579c48e..7a52414ce3 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -22,12 +22,12 @@ #ifndef CAL_COMPONENT_H #define CAL_COMPONENT_H -#include <libgnome/gnome-defs.h> +#include <glib/gmacros.h> #include <time.h> #include <gtk/gtkobject.h> #include <ical.h> -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -438,6 +438,6 @@ icalcomponent *cal_component_alarm_get_icalcomponent (CalComponentAlarm *alarm); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/cal-util/cal-recur.h b/calendar/cal-util/cal-recur.h index 6ffeb2cb8a..5e1e21f1f4 100644 --- a/calendar/cal-util/cal-recur.h +++ b/calendar/cal-util/cal-recur.h @@ -23,11 +23,10 @@ #ifndef CAL_RECUR_H #define CAL_RECUR_H -#include <libgnome/gnome-defs.h> #include <glib.h> #include <cal-util/cal-component.h> -BEGIN_GNOME_DECLS +G_BEGIN_DECLS typedef gboolean (* CalRecurInstanceFn) (CalComponent *comp, time_t instance_start, @@ -64,6 +63,6 @@ void cal_recur_generate_instances (CalComponent *comp, gpointer tz_cb_data, icaltimezone *default_timezone); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/cal-util/cal-util.c b/calendar/cal-util/cal-util.c index d4a86e1a8f..cf7d12be98 100644 --- a/calendar/cal-util/cal-util.c +++ b/calendar/cal-util/cal-util.c @@ -23,7 +23,6 @@ #include <stdlib.h> #include <string.h> #include <glib.h> -#include <libgnome/gnome-defs.h> #include <libgnome/gnome-i18n.h> #include <libgnome/gnome-util.h> #include "cal-util.h" diff --git a/calendar/cal-util/cal-util.h b/calendar/cal-util/cal-util.h index e1afc1c3a0..a4d95a3e8c 100644 --- a/calendar/cal-util/cal-util.h +++ b/calendar/cal-util/cal-util.h @@ -22,14 +22,13 @@ #ifndef CAL_UTIL_H #define CAL_UTIL_H -#include <libgnome/gnome-defs.h> #include <ical.h> #include <time.h> #include <glib.h> #include <cal-util/cal-component.h> #include <cal-util/cal-recur.h> -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -88,7 +87,7 @@ char *cal_util_expand_uri (char *uri, gboolean tasks); void cal_util_add_timezones_from_component (icalcomponent *vcal_comp, CalComponent *comp); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/pcs/cal-backend-file.h b/calendar/pcs/cal-backend-file.h index 30fc210dd8..0dd2c1fde1 100644 --- a/calendar/pcs/cal-backend-file.h +++ b/calendar/pcs/cal-backend-file.h @@ -22,10 +22,9 @@ #ifndef CAL_BACKEND_FILE_H #define CAL_BACKEND_FILE_H -#include <libgnome/gnome-defs.h> #include "pcs/cal-backend.h" -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -57,6 +56,6 @@ GtkType cal_backend_file_get_type (void); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/pcs/cal-backend-util.h b/calendar/pcs/cal-backend-util.h index aed52f4bb7..6e9f48a8c6 100644 --- a/calendar/pcs/cal-backend-util.h +++ b/calendar/pcs/cal-backend-util.h @@ -23,10 +23,10 @@ #ifndef CAL_BACKEND_UTIL_H #define CAL_BACKEND_UTIL_H -#include <bonobo-conf/bonobo-config-database.h> +#include <bonobo-config/bonobo-config-database.h> #include <pcs/cal-backend.h> -BEGIN_GNOME_DECLS +G_BEGIN_DECLS /* * CORBA utility functions @@ -46,6 +46,6 @@ gboolean cal_backend_mail_account_get_default (Bonobo_ConfigDatabase db, gboolean cal_backend_mail_account_is_valid (Bonobo_ConfigDatabase db, char *user, char **name); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c index 95bc26b093..cf6b173f7d 100644 --- a/calendar/pcs/cal-backend.c +++ b/calendar/pcs/cal-backend.c @@ -48,7 +48,7 @@ static void cal_backend_class_init (CalBackendClass *class); static guint cal_backend_signals[LAST_SIGNAL]; -#define CLASS(backend) (CAL_BACKEND_CLASS (GTK_OBJECT (backend)->klass)) +#define CLASS(backend) (CAL_BACKEND_CLASS (G_OBJECT_GET_CLASS (backend))) @@ -96,14 +96,14 @@ cal_backend_class_init (CalBackendClass *class) cal_backend_signals[LAST_CLIENT_GONE] = gtk_signal_new ("last_client_gone", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalBackendClass, last_client_gone), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); cal_backend_signals[CAL_ADDED] = gtk_signal_new ("cal_added", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalBackendClass, cal_added), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, @@ -111,7 +111,7 @@ cal_backend_class_init (CalBackendClass *class) cal_backend_signals[OPENED] = gtk_signal_new ("opened", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalBackendClass, opened), gtk_marshal_NONE__ENUM, GTK_TYPE_NONE, 1, @@ -119,7 +119,7 @@ cal_backend_class_init (CalBackendClass *class) cal_backend_signals[OBJ_UPDATED] = gtk_signal_new ("obj_updated", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalBackendClass, obj_updated), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, @@ -127,7 +127,7 @@ cal_backend_class_init (CalBackendClass *class) cal_backend_signals[OBJ_REMOVED] = gtk_signal_new ("obj_removed", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalBackendClass, obj_removed), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, diff --git a/calendar/pcs/cal-backend.h b/calendar/pcs/cal-backend.h index 8bc71ac91e..c0e969165a 100644 --- a/calendar/pcs/cal-backend.h +++ b/calendar/pcs/cal-backend.h @@ -24,7 +24,6 @@ #ifndef CAL_BACKEND_H #define CAL_BACKEND_H -#include <libgnome/gnome-defs.h> #include <cal-util/cal-util.h> #include <cal-util/cal-component.h> #include "pcs/evolution-calendar.h" @@ -32,7 +31,7 @@ #include "pcs/cal.h" #include "pcs/query.h" -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -216,6 +215,6 @@ void cal_backend_obj_removed (CalBackend *backend, const char *uid); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/pcs/cal-common.h b/calendar/pcs/cal-common.h index 228a67fcfe..3bf229ee8f 100644 --- a/calendar/pcs/cal-common.h +++ b/calendar/pcs/cal-common.h @@ -22,9 +22,9 @@ #ifndef CAL_COMMON_H #define CAL_COMMON_H -#include <libgnome/gnome-defs.h> +#include <glib/gmacros.h> -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -36,6 +36,6 @@ typedef struct _CalClass CalClass; -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/pcs/cal-factory.c b/calendar/pcs/cal-factory.c index 4c5ea41db1..1a12a77e03 100644 --- a/calendar/pcs/cal-factory.c +++ b/calendar/pcs/cal-factory.c @@ -23,7 +23,7 @@ #include <ctype.h> #include <stdio.h> #include <gtk/gtksignal.h> -#include <liboaf/liboaf.h> +#include <bonobo-activation/bonobo-activation.h> #include "e-util/e-url.h" #include "evolution-calendar.h" #include "cal.h" @@ -618,7 +618,7 @@ cal_factory_destroy (GtkObject *object) priv->backends = NULL; if (priv->registered) { - oaf_active_server_unregister (priv->iid, BONOBO_OBJREF (factory)); + bonobo_activation_active_server_unregister (priv->iid, BONOBO_OBJREF (factory)); priv->registered = FALSE; } g_free (priv->iid); @@ -642,7 +642,7 @@ cal_factory_class_init (CalFactoryClass *klass) signals[LAST_CALENDAR_GONE] = gtk_signal_new ("last_calendar_gone", GTK_RUN_FIRST, - object_class->type, + G_TYPE_FROM_CLASS (object_class), GTK_SIGNAL_OFFSET (CalFactoryClass, last_calendar_gone), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); @@ -705,7 +705,7 @@ gboolean cal_factory_oaf_register (CalFactory *factory, const char *iid) { CalFactoryPrivate *priv; - OAF_RegistrationResult result; + Bonobo_RegistrationResult result; char *tmp_iid; g_return_val_if_fail (factory != NULL, FALSE); @@ -721,25 +721,25 @@ cal_factory_oaf_register (CalFactory *factory, const char *iid) else tmp_iid = g_strdup (DEFAULT_CAL_FACTORY_OAF_ID); - result = oaf_active_server_register (tmp_iid, BONOBO_OBJREF (factory)); + result = bonobo_activation_active_server_register (tmp_iid, BONOBO_OBJREF (factory)); switch (result) { - case OAF_REG_SUCCESS: + case Bonobo_ACTIVATION_REG_SUCCESS: priv->registered = TRUE; priv->iid = tmp_iid; return TRUE; - case OAF_REG_NOT_LISTED: + case Bonobo_ACTIVATION_REG_NOT_LISTED: g_message ("cal_factory_oaf_register(): Cannot register the calendar factory: " "not listed"); break; - case OAF_REG_ALREADY_ACTIVE: + case Bonobo_ACTIVATION_REG_ALREADY_ACTIVE: g_message ("cal_factory_oaf_register(): Cannot register the calendar factory: " "already active"); break; - case OAF_REG_ERROR: + case Bonobo_ACTIVATION_REG_ERROR: default: g_message ("cal_factory_oaf_register(): Cannot register the calendar factory: " "generic error"); diff --git a/calendar/pcs/cal-factory.h b/calendar/pcs/cal-factory.h index 7e83cfd2b7..e246056169 100644 --- a/calendar/pcs/cal-factory.h +++ b/calendar/pcs/cal-factory.h @@ -21,12 +21,11 @@ #ifndef CAL_FACTORY_H #define CAL_FACTORY_H -#include <libgnome/gnome-defs.h> #include <bonobo/bonobo-xobject.h> #include "pcs/evolution-calendar.h" -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -68,6 +67,6 @@ void cal_factory_register_method (CalFactory *factory, int cal_factory_get_n_backends (CalFactory *factory); void cal_factory_dump_active_backends (CalFactory *factory); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/pcs/cal.h b/calendar/pcs/cal.h index 52889b4f9a..f8ef057c44 100644 --- a/calendar/pcs/cal.h +++ b/calendar/pcs/cal.h @@ -23,12 +23,12 @@ #ifndef CAL_H #define CAL_H -#include <libgnome/gnome-defs.h> +#include <gtk/gtkobject.h> #include <bonobo/bonobo-xobject.h> #include "pcs/evolution-calendar.h" #include "pcs/cal-common.h" -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -75,6 +75,6 @@ void cal_forget_password (Cal *cal, const char *key); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/pcs/query-backend.c b/calendar/pcs/query-backend.c index 3757a14076..31308e7fcc 100644 --- a/calendar/pcs/query-backend.c +++ b/calendar/pcs/query-backend.c @@ -23,7 +23,6 @@ #endif #include <glib.h> -#include <libgnome/gnome-defs.h> #include <libgnome/gnome-i18n.h> #include <gtk/gtksignal.h> #include <cal-util/cal-component.h> diff --git a/calendar/pcs/query-backend.h b/calendar/pcs/query-backend.h index 9a581757a7..1e05ae597a 100644 --- a/calendar/pcs/query-backend.h +++ b/calendar/pcs/query-backend.h @@ -24,7 +24,7 @@ #include "cal-backend.h" #include "query.h" -BEGIN_GNOME_DECLS +G_BEGIN_DECLS #define QUERY_BACKEND_TYPE (query_backend_get_type ()) #define QUERY_BACKEND(obj) (GTK_CHECK_CAST ((obj), QUERY_BACKEND_TYPE, QueryBackend)) @@ -50,6 +50,6 @@ QueryBackend *query_backend_new (Query *query, CalBackend *backend); GList *query_backend_get_uids (QueryBackend *qb, CalObjType type); CalComponent *query_backend_get_object_component (QueryBackend *qb, const char *uid); -END_GNOME_DECLS +G_END_DECLS #endif diff --git a/calendar/pcs/query.c b/calendar/pcs/query.c index ca22ab38dd..1c8785eec4 100644 --- a/calendar/pcs/query.c +++ b/calendar/pcs/query.c @@ -25,7 +25,6 @@ #include <string.h> #include <glib.h> #include <gtk/gtkmain.h> -#include <libgnome/gnome-defs.h> #include <libgnome/gnome-i18n.h> #include <gtk/gtksignal.h> #include <bonobo/bonobo-exception.h> diff --git a/calendar/pcs/query.h b/calendar/pcs/query.h index 4e732aefd4..31388a5494 100644 --- a/calendar/pcs/query.h +++ b/calendar/pcs/query.h @@ -21,12 +21,11 @@ #ifndef QUERY_H #define QUERY_H -#include <libgnome/gnome-defs.h> #include <bonobo/bonobo-xobject.h> #include "pcs/cal-common.h" #include "pcs/evolution-calendar.h" -BEGIN_GNOME_DECLS +G_BEGIN_DECLS @@ -64,6 +63,6 @@ Query *query_new (CalBackend *backend, -END_GNOME_DECLS +G_END_DECLS #endif |