pidgin: cd775ef3: Fix adding a chat to the buddy list.
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Sun Jun 7 23:40:30 EDT 2009
-----------------------------------------------------------------
Revision: cd775ef3764162a2493ef7060750cd8c8ef544d4
Ancestor: f314c3c5d3e6fb3eef6685b423a4db6fccb4b014
Author: darkrain42 at pidgin.im
Date: 2009-06-08T03:35:14
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/cd775ef3764162a2493ef7060750cd8c8ef544d4
Modified files:
pidgin/plugins/disco/gtkdisco.c
ChangeLog:
Fix adding a chat to the buddy list.
-------------- next part --------------
============================================================
--- pidgin/plugins/disco/gtkdisco.c 7a77f8bb9c432044e87f9fe5171f14e602de2835
+++ pidgin/plugins/disco/gtkdisco.c c09a8c7efbd16aaa8ec22f557fa1b860c1fbf637
@@ -206,7 +206,7 @@ static void browse_button_cb(GtkButton *
g_free(server);
}
-static void add_room_to_blist_cb(GtkButton *button, PidginDiscoDialog *dialog)
+static void add_to_blist_cb(GtkButton *button, PidginDiscoDialog *dialog)
{
XmppDiscoService *service = g_object_get_data(G_OBJECT(button), "service");
PurpleAccount *account;
@@ -216,7 +216,7 @@ static void add_room_to_blist_cb(GtkButt
account = purple_connection_get_account(service->list->pc);
if (service->type == XMPP_DISCO_SERVICE_TYPE_CHAT)
- purple_blist_request_add_chat(account, NULL, NULL, service->name);
+ purple_blist_request_add_chat(account, NULL, NULL, service->jid);
else
purple_blist_request_add_buddy(account, service->name, NULL, NULL);
}
@@ -473,7 +473,7 @@ PidginDiscoDialog *pidgin_disco_dialog_n
PIDGIN_BUTTON_HORIZONTAL);
gtk_box_pack_start(GTK_BOX(bbox), dialog->add_button, FALSE, FALSE, 0);
g_signal_connect(G_OBJECT(dialog->add_button), "clicked",
- G_CALLBACK(add_room_to_blist_cb), dialog);
+ G_CALLBACK(add_to_blist_cb), dialog);
gtk_widget_set_sensitive(dialog->add_button, FALSE);
gtk_widget_show(dialog->add_button);
More information about the Commits
mailing list