]> git.0d.be Git - empathy.git/commitdiff
initialize libnotify earlier in main()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 2 Oct 2009 11:50:48 +0000 (12:50 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 2 Oct 2009 14:41:48 +0000 (15:41 +0100)
The status icon will have to query the notify daemon during its
construction so libnotify has to be already initialized.

src/empathy.c

index 1d478c35731c415e7f16481acdafe309b3ae2814..1226b55ddf5e00c6a2af0939d68f624ce2458290 100644 (file)
@@ -845,6 +845,8 @@ main (int argc, char *argv[])
       return 0;
     }
 
+  notify_init (_(PACKAGE_NAME));
+
   /* Setting up Idle */
   idle = empathy_idle_dup_singleton ();
   empathy_idle_set_auto_away (idle, TRUE);
@@ -901,7 +903,6 @@ main (int argc, char *argv[])
       chatroom_manager_ready_cb (chatroom_manager, NULL, account_manager);
     }
 
-  notify_init (_(PACKAGE_NAME));
   /* Create the call factory */
   call_factory = empathy_call_factory_initialise ();
   g_signal_connect (G_OBJECT (call_factory), "new-call-handler",