Mercurial > pidgin
changeset 1150:aa3dda7fc352
[gaim-migrate @ 1160]
when you double-click on a buddy or select IM from the right-click menu, default to using the first connection that has them registered.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 28 Nov 2000 00:32:16 +0000 |
parents | 22bf2c3ec2e3 |
children | 428372cc1e39 |
files | src/buddy.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy.c Mon Nov 27 23:06:50 2000 +0000 +++ b/src/buddy.c Tue Nov 28 00:32:16 2000 +0000 @@ -356,6 +356,10 @@ gdk_window_show(c->window->window); } else { c = new_conversation(b->name); + + c->gc = b->connlist->data; + gtk_option_menu_set_history(GTK_OPTION_MENU(c->menu), + g_slist_index(connections, b->connlist->data)); } } @@ -389,6 +393,10 @@ gdk_window_show(c->window->window); } else { c = new_conversation(b->name); + + c->gc = b->connlist->data; + gtk_option_menu_set_history(GTK_OPTION_MENU(c->menu), + g_slist_index(connections, b->connlist->data)); } } else if (event->type == GDK_BUTTON_PRESS && event->button == 3) { GtkWidget *menu; @@ -629,6 +637,8 @@ struct group *g; struct buddy *b; + if (!blist) return; + while (s) { gs = (struct group_show *)s->data; s = g_slist_remove(s, gs);