# HG changeset patch # User Eric Warmenhoven # Date 975371536 0 # Node ID aa3dda7fc352255d2da3fabf9ee44209d73b12e1 # Parent 22bf2c3ec2e3f34537a5edc104b6ee232b274b49 [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 diff -r 22bf2c3ec2e3 -r aa3dda7fc352 src/buddy.c --- 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);