diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2002-11-05 21:49:19 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2002-11-05 21:49:19 +0800 |
commit | 415efc9901808bf6013daaa1d821b1ff013c6b46 (patch) | |
tree | 46ceab6f48b8f265e9270cbcbd6ecec2b6493000 /calendar/gui/alarm-notify/notify-main.c | |
parent | 218755e2c70ac02c958772525917252b95cfc289 (diff) | |
download | gsoc2013-evolution-415efc9901808bf6013daaa1d821b1ff013c6b46.tar gsoc2013-evolution-415efc9901808bf6013daaa1d821b1ff013c6b46.tar.gz gsoc2013-evolution-415efc9901808bf6013daaa1d821b1ff013c6b46.tar.bz2 gsoc2013-evolution-415efc9901808bf6013daaa1d821b1ff013c6b46.tar.lz gsoc2013-evolution-415efc9901808bf6013daaa1d821b1ff013c6b46.tar.xz gsoc2013-evolution-415efc9901808bf6013daaa1d821b1ff013c6b46.tar.zst gsoc2013-evolution-415efc9901808bf6013daaa1d821b1ff013c6b46.zip |
use libxml2 headers.
2002-11-05 Rodrigo Moya <rodrigo@ximian.com>
* pcs/cal-backend.c: use libxml2 headers.
* gui/alarm-notify/Makefile.am:
* gui/dialogs/Makefile.am:
* gui/Makefile.am: s/XML_I18N/INTLTOOL. Fixed execution of
$(ORBIT_IDL).
* gui/alarm-notify/alarm-notify.[ch]: converted to BonoboObject.
* gui/alarm-notify/alarm-notify-dialog.c: compilation fixes.
(alarm_notify_dialog): adapted to new glade_xml_new signature.
* gui/alarm-notify/alarm-queue.c: ported to BonoboActivation and
GtkStock and GtkDialog.
* gui/alarm-notify/notify-main.c: ported to BonoboActivation and
use GObject functions instead of GtkObject ones.
* gui/alarm-notify/save.h: removed BonoboConfig related functions.
* gui/alarm-notify/config-data.c: use GObject functions instead of
GtkObject ones.
* TODO.port: added file for keeping track of disabled things while we
port.
svn path=/trunk/; revision=18550
Diffstat (limited to 'calendar/gui/alarm-notify/notify-main.c')
-rw-r--r-- | calendar/gui/alarm-notify/notify-main.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/calendar/gui/alarm-notify/notify-main.c b/calendar/gui/alarm-notify/notify-main.c index c0af3ea51a..b4eb59ce1c 100644 --- a/calendar/gui/alarm-notify/notify-main.c +++ b/calendar/gui/alarm-notify/notify-main.c @@ -24,14 +24,14 @@ #endif #include <glib.h> -#include <libgnome/gnome-defs.h> #include <libgnome/gnome-i18n.h> -#include <libgnomeui/gnome-init.h> +#include <libgnome/gnome-init.h> +#include <libgnomeui/gnome-client.h> #include <libgnomevfs/gnome-vfs-init.h> #include <glade/glade.h> #include <bonobo/bonobo-main.h> #include <bonobo/bonobo-generic-factory.h> -#include <liboaf/liboaf.h> +#include <bonobo-activation/bonobo-activation.h> #include "alarm.h" #include "alarm-queue.h" #include "alarm-notify.h" @@ -82,15 +82,15 @@ set_session_parameters (char **argv) gnome_client_set_restart_command (master_client, 1, args); - gtk_signal_connect (GTK_OBJECT (master_client), "die", - GTK_SIGNAL_FUNC (client_die_cb), NULL); + g_signal_connect (G_OBJECT (master_client), "die", + G_CALLBACK (client_die_cb), NULL); } /* Factory function for the alarm notify service; just creates and references a * singleton service object. */ static BonoboObject * -alarm_notify_factory_fn (BonoboGenericFactory *factory, void *data) +alarm_notify_factory_fn (BonoboGenericFactory *factory, const char *component_id, void *data) { if (!alarm_notify_service) { alarm_notify_service = alarm_notify_new (); @@ -164,13 +164,10 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR); textdomain (PACKAGE); - if (gnome_init_with_popt_table ("evolution-alarm-notify", VERSION, argc, argv, - oaf_popt_options, 0, NULL) != 0) - g_error (_("Could not initialize GNOME")); + gnome_program_init ("evolution-alarm-notify", VERSION, LIBGNOME_MODULE, argc, argv, NULL); + bonobo_activation_init (argc, argv); - oaf_init (argc, argv); - - if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) + if (bonobo_init (&argc, argv) == FALSE) g_error (_("Could not initialize Bonobo")); if (!gnome_vfs_init ()) @@ -179,7 +176,7 @@ main (int argc, char **argv) glade_gnome_init (); factory = bonobo_generic_factory_new ("OAFIID:GNOME_Evolution_Calendar_AlarmNotify_Factory", - alarm_notify_factory_fn, NULL); + (BonoboFactoryCallback) alarm_notify_factory_fn, NULL); if (!factory) g_error (_("Could not create the alarm notify service factory")); |