Mercurial > pidgin
diff libpurple/protocols/bonjour/bonjour.c @ 25947:4b8c4870b13a
propagate from branch 'im.pidgin.pidgin.next.minor' (head 7305b29db7bd00d3261f348c71674c93aa31b327)
to branch 'im.pidgin.pidgin' (head d8c03c68d591d9392607d954942ee58b8618d946)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 02 Mar 2009 04:18:40 +0000 |
parents | 367b3ddcf5c3 f38799160cfa |
children | ff4212a5268f |
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/bonjour.c Wed Feb 25 20:03:08 2009 +0000 +++ b/libpurple/protocols/bonjour/bonjour.c Mon Mar 02 04:18:40 2009 +0000 @@ -102,7 +102,7 @@ /* Start waiting for jabber connections (iChat style) */ bd->jabber_data = g_new0(BonjourJabber, 1); - bd->jabber_data->port = BONJOUR_DEFAULT_PORT_INT; + bd->jabber_data->port = purple_account_get_int(account, "port", BONJOUR_DEFAULT_PORT); bd->jabber_data->account = account; if (bonjour_jabber_start(bd->jabber_data) == -1) { @@ -705,6 +705,9 @@ prpl_info.user_splits = g_list_append(prpl_info.user_splits, split); /* Creating the options for the protocol */ + option = purple_account_option_int_new(_("Local Port"), "port", BONJOUR_DEFAULT_PORT); + prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); + option = purple_account_option_string_new(_("First name"), "first", default_firstname); prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);