finch/gntaccount.c

branch
soc.2013.gobjectification.plugins
changeset 36632
1f0650e7b1b5
parent 36626
18fc361b3704
child 36637
9b0109ae118d
--- a/finch/gntaccount.c	Sun Sep 01 03:17:23 2013 +0530
+++ b/finch/gntaccount.c	Sun Sep 01 03:53:25 2013 +0530
@@ -251,7 +251,7 @@
 		gnt_box_give_focus_to_child(GNT_BOX(accounts.window), accounts.tree);
 	}
 
-	if (protocol && protocol->register_user &&
+	if (protocol && PURPLE_PROTOCOL_IMPLEMENTS(protocol, register_user) &&
 			gnt_check_box_get_checked(GNT_CHECK_BOX(dialog->regserver))) {
 		purple_account_register(account);
 	} else if (dialog->account == NULL) {
@@ -484,7 +484,7 @@
 	/* Show the registration checkbox only in a new account dialog,
 	 * and when the selected prpl has the support for it. */
 	gnt_widget_set_visible(dialog->regserver, account == NULL &&
-			protocol->register_user != NULL);
+			PURPLE_PROTOCOL_IMPLEMENTS(protocol, register_user));
 }
 
 static void
@@ -572,7 +572,7 @@
 	for (iter = list; iter; iter = iter->next)
 	{
 		gnt_combo_box_add_data(GNT_COMBO_BOX(combo), iter->data,
-				((PurpleProtocol*)iter->data)->name);
+				purple_protocol_get_name(PURPLE_PROTOCOL(iter->data)));
 	}
 
 	protocol = purple_protocols_find(purple_account_get_protocol_id(account));

mercurial