diff src/protocols/jabber/jabber.c @ 4333:cc2f780c0505

[gaim-migrate @ 4597] I needed to make gc->login_time set before do_proto_menu was called, so I moved that line into account_online instead of serv_finish_login. serv_finish_login is called directly after account_online, and gc->login_time isn't used for anything anyway, so it shouldn't matter. I use gc->login_time to determine if a gc's protocol actions menu is ready to be drawn or not (should not be draw for accounts that are in the process of signing online). I made the "Show Buddies Awaiting Authorization" thing show something reasonable for when you aren't waiting for authorization from anyone. I swapped the ok and cancel buttons for the search for buddy by information and clear log file so they follow the HIG. I gave the right side of the log viewer a shadowed border. I Robot. I applied a patch from Ryan McCabe that doesn't really do anything for gaim (yet, anyway), but it allows clients using libfaim to call cleansnacs cleanly, which stops a potential build up of SNACs in memory when you don't send an IM for a long period of time. I applied another patch from Mr. McCabe that fixes a potential crash in ssi.c when your buddy list is a few lions short of a pride, if you know what I mean. I re-prettified an authorization dialog or two. The bold stuff and the non-bold stuff got backwardcised somehow. I added support for those messages from the ICQ server. Like the one that tells you not to give your password to anyone when you first signon. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 18 Jan 2003 01:58:00 +0000
parents c5851f0e120e
children 0c68d402f59f
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Sat Jan 18 01:09:59 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Sat Jan 18 01:58:00 2003 +0000
@@ -4147,28 +4147,30 @@
 /* End Jabber "user registration" support */
 /*----------------------------------------*/
 
-static void jabber_do_action(struct gaim_connection *gc, char *act)
-{
-	if (!strcmp(act, _("Set User Info"))) {
-		jabber_setup_set_info(gc);
-	/*
-	} else if (!strcmp(act, _("Set Dir Info"))) {
-		show_set_dir(gc);
-	 */
-	} else if (!strcmp(act, _("Change Password"))) {
-		show_change_passwd(gc);
-	}
-}
-
-static GList *jabber_actions()
+static GList *jabber_actions(struct gaim_connection *gc)
 {
 	GList *m = NULL;
-
-	m = g_list_append(m, _("Set User Info"));
+	struct proto_actions_menu *pam;
+
+	pam = g_new0(struct proto_actions_menu, 1);
+	pam->label = _("Set User Info");
+	pam->callback = jabber_setup_set_info;
+	pam->gc = gc;
+	m = g_list_append(m, pam);
+
 	/*
-	m = g_list_append(m, _("Set Dir Info"));
+	pam = g_new0(struct proto_actions_menu, 1);
+	pam->label = _("Set Dir Info");
+	pam->callback = show_set_dir;
+	pam->gc = gc;
+	m = g_list_append(m, pam);
 	 */
-	m = g_list_append(m, _("Change Password"));
+
+	pam = g_new0(struct proto_actions_menu, 1);
+	pam->label = _("Change Password");
+	pam->callback = show_change_passwd;
+	pam->gc = gc;
+	m = g_list_append(m, pam);
 
 	return m;
 }
@@ -4183,7 +4185,6 @@
 	ret->list_icon = jabber_list_icon;
 	ret->away_states = jabber_away_states;
 	ret->actions = jabber_actions;
-	ret->do_action = jabber_do_action;
 	ret->buddy_menu = jabber_buddy_menu;
 	ret->edit_buddy_menu = jabber_edit_buddy_menu;
 	ret->login = jabber_login;