comparison libpurple/protocols/jabber/jabber.c @ 21236:73c5f5bfeb39

disapproval of revision '4b2b98ecc70947f687d13c902b1b031247b49392'
author Richard Laager <rlaager@wiktel.com>
date Fri, 16 Nov 2007 23:27:01 +0000
parents fba1f6c3df0b
children 8ae227dca885
comparison
equal deleted inserted replaced
21235:fba1f6c3df0b 21236:73c5f5bfeb39
1005 purple_request_fields_with_hint(js->gc, _("Register New XMPP Account"), 1005 purple_request_fields_with_hint(js->gc, _("Register New XMPP Account"),
1006 _("Register New XMPP Account"), instructions, fields, 1006 _("Register New XMPP Account"), instructions, fields,
1007 _("Register"), G_CALLBACK(jabber_register_cb), 1007 _("Register"), G_CALLBACK(jabber_register_cb),
1008 _("Cancel"), G_CALLBACK(jabber_register_cancel_cb), 1008 _("Cancel"), G_CALLBACK(jabber_register_cancel_cb),
1009 purple_connection_get_account(js->gc), NULL, NULL, 1009 purple_connection_get_account(js->gc), NULL, NULL,
1010 PURPLE_REQUEST_HINT_REGISTER, cbdata); 1010 "register-account", cbdata);
1011 else { 1011 else {
1012 char *title = registered?g_strdup_printf(_("Change Account Registration at %s"), from) 1012 char *title = registered?g_strdup_printf(_("Change Account Registration at %s"), from)
1013 :g_strdup_printf(_("Register New Account at %s"), from); 1013 :g_strdup_printf(_("Register New Account at %s"), from);
1014 purple_request_fields_with_hint(js->gc, title, 1014 purple_request_fields_with_hint(js->gc, title,
1015 title, instructions, fields, 1015 title, instructions, fields,
1016 registered?_("Change Registration"):_("Register"), G_CALLBACK(jabber_register_cb), 1016 registered?_("Change Registration"):_("Register"), G_CALLBACK(jabber_register_cb),
1017 _("Cancel"), G_CALLBACK(jabber_register_cancel_cb), 1017 _("Cancel"), G_CALLBACK(jabber_register_cancel_cb),
1018 purple_connection_get_account(js->gc), NULL, NULL, 1018 purple_connection_get_account(js->gc), NULL, NULL,
1019 PURPLE_REQUEST_HINT_REGISTER, cbdata); 1019 "register-account", cbdata);
1020 g_free(title); 1020 g_free(title);
1021 } 1021 }
1022 1022
1023 g_free(instructions); 1023 g_free(instructions);
1024 } 1024 }
1710 purple_request_fields_with_hint(js->gc, _("Change XMPP Password"), 1710 purple_request_fields_with_hint(js->gc, _("Change XMPP Password"),
1711 _("Change XMPP Password"), _("Please enter your new password"), 1711 _("Change XMPP Password"), _("Please enter your new password"),
1712 fields, _("OK"), G_CALLBACK(jabber_password_change_cb), 1712 fields, _("OK"), G_CALLBACK(jabber_password_change_cb),
1713 _("Cancel"), NULL, 1713 _("Cancel"), NULL,
1714 purple_connection_get_account(gc), NULL, NULL, 1714 purple_connection_get_account(gc), NULL, NULL,
1715 PURPLE_REQUEST_HINT_ACCOUNT, js); 1715 "account", js);
1716 } 1716 }
1717 1717
1718 GList *jabber_actions(PurplePlugin *plugin, gpointer context) 1718 GList *jabber_actions(PurplePlugin *plugin, gpointer context)
1719 { 1719 {
1720 PurpleConnection *gc = (PurpleConnection *) context; 1720 PurpleConnection *gc = (PurpleConnection *) context;