libpurple/protocols/myspace/user.c

branch
soc.2013.gobjectification.plugins
changeset 36701
5acd461707ae
parent 36637
9b0109ae118d
parent 34940
c0aef3b64c56
equal deleted inserted replaced
36700:6e948576476e 36701:5acd461707ae
817 purple_request_yes_no(session->gc, 817 purple_request_yes_no(session->gc,
818 _("MySpaceIM - Username Available"), 818 _("MySpaceIM - Username Available"),
819 _("This username is available. Would you like to set it?"), 819 _("This username is available. Would you like to set it?"),
820 _("ONCE SET, THIS CANNOT BE CHANGED!"), 820 _("ONCE SET, THIS CANNOT BE CHANGED!"),
821 0, 821 0,
822 session->account, 822 purple_request_cpar_from_account(session->account),
823 NULL,
824 NULL,
825 session->gc, 823 session->gc,
826 G_CALLBACK(msim_set_username_confirmed_cb), 824 G_CALLBACK(msim_set_username_confirmed_cb),
827 G_CALLBACK(msim_do_not_set_username_cb)); 825 G_CALLBACK(msim_do_not_set_username_cb));
828 } else { 826 } else {
829 /* Looks like its in use or we have an invalid response */ 827 /* Looks like its in use or we have an invalid response */
832 _("This username is unavailable."), 830 _("This username is unavailable."),
833 _("Please try another username:"), 831 _("Please try another username:"),
834 "", FALSE, FALSE, NULL, 832 "", FALSE, FALSE, NULL,
835 _("OK"), G_CALLBACK(msim_check_username_availability_cb), 833 _("OK"), G_CALLBACK(msim_check_username_availability_cb),
836 _("Cancel"), G_CALLBACK(msim_do_not_set_username_cb), 834 _("Cancel"), G_CALLBACK(msim_do_not_set_username_cb),
837 session->account, 835 purple_request_cpar_from_connection(session->gc),
838 NULL,
839 NULL,
840 session->gc); 836 session->gc);
841 } 837 }
842 } 838 }
843 839
844 /** 840 /**
893 _("Please enter a username to check its availability:"), 889 _("Please enter a username to check its availability:"),
894 NULL, 890 NULL,
895 "", FALSE, FALSE, NULL, 891 "", FALSE, FALSE, NULL,
896 _("OK"), G_CALLBACK(msim_check_username_availability_cb), 892 _("OK"), G_CALLBACK(msim_check_username_availability_cb),
897 _("Cancel"), G_CALLBACK(msim_do_not_set_username_cb), 893 _("Cancel"), G_CALLBACK(msim_do_not_set_username_cb),
898 purple_connection_get_account(gc), 894 purple_request_cpar_from_connection(gc),
899 NULL,
900 NULL,
901 gc); 895 gc);
902 } 896 }

mercurial