aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/main.c')
-rw-r--r--calendar/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/main.c b/calendar/main.c
index 7fad966413..32454f004a 100644
--- a/calendar/main.c
+++ b/calendar/main.c
@@ -708,14 +708,15 @@ main(int argc, char *argv[])
bindtextdomain(PACKAGE, GNOMELOCALEDIR);
textdomain(PACKAGE);
- client = gnome_client_new_default ();
+ gnome_init ("calendar", &parser, argc, argv, 0, NULL);
+
+ client = gnome_master_client ();
if (client){
gtk_signal_connect (GTK_OBJECT (client), "save_yourself",
GTK_SIGNAL_FUNC (session_save_state), argv [0]);
gtk_signal_connect (GTK_OBJECT (client), "die",
GTK_SIGNAL_FUNC (session_die), NULL);
}
- gnome_init ("calendar", &parser, argc, argv, 0, NULL);
process_dates ();
alarm_init ();