]> git.0d.be Git - empathy.git/commitdiff
empathy.c: instantiate a EmpathyNotificationsApprover
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 22 Nov 2010 11:53:17 +0000 (12:53 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 23 Nov 2010 10:33:20 +0000 (11:33 +0100)
src/empathy.c

index 7a66d2d674226b8194e6f7b30039751f12f26bfc..357b47e8e8398e6df9dc628131978a9c4da1e37f 100644 (file)
@@ -65,6 +65,7 @@
 #include "empathy-accounts-dialog.h"
 #include "empathy-status-icon.h"
 #include "empathy-ft-manager.h"
+#include "empathy-notifications-approver.h"
 
 #include "extensions/extensions.h"
 
@@ -116,6 +117,7 @@ struct _EmpathyApp
   EmpathyIdle *idle;
   EmpathyConnectivity *connectivity;
   GSettings *gsettings;
+  EmpathyNotificationsApprover *notifications_approver;
 #ifdef HAVE_GEOCLUE
   EmpathyLocationManager *location_manager;
 #endif
@@ -155,6 +157,7 @@ empathy_app_dispose (GObject *object)
 #endif
   tp_clear_object (&self->ft_factory);
   tp_clear_object (&self->gsettings);
+  tp_clear_object (&self->notifications_approver);
 
   if (dispose != NULL)
     dispose (object);
@@ -258,6 +261,9 @@ empathy_app_command_line (GApplication *app,
       gtk_widget_show (self->window);
       self->icon = empathy_status_icon_new (GTK_WINDOW (self->window),
           self->start_hidden);
+
+      self->notifications_approver =
+        empathy_notifications_approver_dup_singleton ();
     }
   else
     {