aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/main.c b/calendar/gui/main.c
index 7fad966413..32454f004a 100644
--- a/calendar/gui/main.c
+++ b/calendar/gui/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 ();