]> git.0d.be Git - empathy.git/commitdiff
More style fixes
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Fri, 9 Jan 2009 16:14:33 +0000 (16:14 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 9 Jan 2009 16:14:33 +0000 (16:14 +0000)
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
svn path=/trunk/; revision=2172

libempathy/empathy-chatroom-manager.c

index 4bda3813683d02045f7be0674e21caaaf477553a..585319604b795b799b6d8367c3e83acf0412250d 100644 (file)
@@ -655,7 +655,7 @@ chatroom_manager_file_save (EmpathyChatroomManager *manager)
 }
 
 static void
-empathy_chatroom_manager_chat_destroyed_cb (EmpathyTpChat *chat,
+chatroom_manager_chat_destroyed_cb (EmpathyTpChat *chat,
   gpointer user_data)
 {
   EmpathyChatroomManager *manager = EMPATHY_CHATROOM_MANAGER (user_data);
@@ -675,13 +675,14 @@ empathy_chatroom_manager_chat_destroyed_cb (EmpathyTpChat *chat,
   if (!favorite)
     {
       /* Remove the chatroom from the list, unless it's in the list of
-       * favourites.. (seems strange to handle this at such a low level.. */
+       * favourites..
+       * FIXME this policy should probably not be in libempathy */
       empathy_chatroom_manager_remove (manager, chatroom);
     }
 }
 
 static void
-empathy_chatroom_manager_observe_channel_cb (EmpathyDispatcher *dispatcher,
+chatroom_manager_observe_channel_cb (EmpathyDispatcher *dispatcher,
   EmpathyDispatchOperation *operation, gpointer user_data)
 {
   EmpathyChatroomManager *manager = EMPATHY_CHATROOM_MANAGER (user_data);
@@ -724,10 +725,9 @@ empathy_chatroom_manager_observe_channel_cb (EmpathyDispatcher *dispatcher,
   /* A TpChat is always destroyed as it only gets unreffed after the channel
    * has been invalidated in the dispatcher..  */
   g_signal_connect (chat, "destroy",
-    G_CALLBACK (empathy_chatroom_manager_chat_destroyed_cb),
+    G_CALLBACK (chatroom_manager_chat_destroyed_cb),
     manager);
 
-  g_object_unref (account);
   g_object_unref (chat);
 out:
   g_object_unref (channel);
@@ -738,5 +738,5 @@ empathy_chatroom_manager_observe (EmpathyChatroomManager *manager,
   EmpathyDispatcher *dispatcher)
 {
   g_signal_connect (dispatcher, "observe",
-    G_CALLBACK (empathy_chatroom_manager_observe_channel_cb), manager);
+    G_CALLBACK (chatroom_manager_observe_channel_cb), manager);
 }