/* properties */
enum
{
- PROP_FILE =1,
+ PROP_FILE = 1,
LAST_PROPERTY
};
}
EmpathyChatroomManager *
-empathy_chatroom_manager_new (void)
+empathy_chatroom_manager_new (const gchar *file)
{
static EmpathyChatroomManager *manager = NULL;
if (!manager) {
- manager = g_object_new (EMPATHY_TYPE_CHATROOM_MANAGER, NULL);
+ manager = g_object_new (EMPATHY_TYPE_CHATROOM_MANAGER,
+ "file", file,
+ NULL);
g_object_add_weak_pointer (G_OBJECT (manager), (gpointer) &manager);
} else {
};
GType empathy_chatroom_manager_get_type (void) G_GNUC_CONST;
-EmpathyChatroomManager *empathy_chatroom_manager_new (void);
+EmpathyChatroomManager *empathy_chatroom_manager_new (const gchar *file);
gboolean empathy_chatroom_manager_add (EmpathyChatroomManager *manager,
EmpathyChatroom *chatroom);
void empathy_chatroom_manager_remove (EmpathyChatroomManager *manager,
}
g_list_free (accounts);
- priv->chatroom_mgr = empathy_chatroom_manager_new ();
+ priv->chatroom_mgr = empathy_chatroom_manager_new (NULL);
}
EmpathyDispatcher *
g_object_add_weak_pointer (G_OBJECT (window->window), (gpointer) &window);
/* Get the session and chat room manager */
- window->manager = empathy_chatroom_manager_new ();
+ window->manager = empathy_chatroom_manager_new (NULL);
g_signal_connect (window->manager, "chatroom-added",
G_CALLBACK (chatrooms_window_chatroom_added_cb),
{
GList *chatrooms, *l;
- window->chatroom_manager = empathy_chatroom_manager_new ();
+ window->chatroom_manager = empathy_chatroom_manager_new (NULL);
chatrooms = empathy_chatroom_manager_get_chatrooms (window->chatroom_manager, NULL);
window->room_menu = gtk_menu_item_get_submenu (GTK_MENU_ITEM (window->room));