comparison 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
comparison
equal deleted inserted replaced
4332:c8f374cadbd9 4333:cc2f780c0505
4145 4145
4146 /*----------------------------------------*/ 4146 /*----------------------------------------*/
4147 /* End Jabber "user registration" support */ 4147 /* End Jabber "user registration" support */
4148 /*----------------------------------------*/ 4148 /*----------------------------------------*/
4149 4149
4150 static void jabber_do_action(struct gaim_connection *gc, char *act) 4150 static GList *jabber_actions(struct gaim_connection *gc)
4151 { 4151 {
4152 if (!strcmp(act, _("Set User Info"))) { 4152 GList *m = NULL;
4153 jabber_setup_set_info(gc); 4153 struct proto_actions_menu *pam;
4154
4155 pam = g_new0(struct proto_actions_menu, 1);
4156 pam->label = _("Set User Info");
4157 pam->callback = jabber_setup_set_info;
4158 pam->gc = gc;
4159 m = g_list_append(m, pam);
4160
4154 /* 4161 /*
4155 } else if (!strcmp(act, _("Set Dir Info"))) { 4162 pam = g_new0(struct proto_actions_menu, 1);
4156 show_set_dir(gc); 4163 pam->label = _("Set Dir Info");
4164 pam->callback = show_set_dir;
4165 pam->gc = gc;
4166 m = g_list_append(m, pam);
4157 */ 4167 */
4158 } else if (!strcmp(act, _("Change Password"))) { 4168
4159 show_change_passwd(gc); 4169 pam = g_new0(struct proto_actions_menu, 1);
4160 } 4170 pam->label = _("Change Password");
4161 } 4171 pam->callback = show_change_passwd;
4162 4172 pam->gc = gc;
4163 static GList *jabber_actions() 4173 m = g_list_append(m, pam);
4164 {
4165 GList *m = NULL;
4166
4167 m = g_list_append(m, _("Set User Info"));
4168 /*
4169 m = g_list_append(m, _("Set Dir Info"));
4170 */
4171 m = g_list_append(m, _("Change Password"));
4172 4174
4173 return m; 4175 return m;
4174 } 4176 }
4175 4177
4176 G_MODULE_EXPORT void jabber_init(struct prpl *ret) 4178 G_MODULE_EXPORT void jabber_init(struct prpl *ret)
4181 ret->options = OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_CHAT_TOPIC; 4183 ret->options = OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_CHAT_TOPIC;
4182 ret->name = g_strdup("Jabber"); 4184 ret->name = g_strdup("Jabber");
4183 ret->list_icon = jabber_list_icon; 4185 ret->list_icon = jabber_list_icon;
4184 ret->away_states = jabber_away_states; 4186 ret->away_states = jabber_away_states;
4185 ret->actions = jabber_actions; 4187 ret->actions = jabber_actions;
4186 ret->do_action = jabber_do_action;
4187 ret->buddy_menu = jabber_buddy_menu; 4188 ret->buddy_menu = jabber_buddy_menu;
4188 ret->edit_buddy_menu = jabber_edit_buddy_menu; 4189 ret->edit_buddy_menu = jabber_edit_buddy_menu;
4189 ret->login = jabber_login; 4190 ret->login = jabber_login;
4190 ret->close = jabber_close; 4191 ret->close = jabber_close;
4191 ret->send_im = jabber_send_im; 4192 ret->send_im = jabber_send_im;