diff src/server.c @ 1898:73d73939f698

[gaim-migrate @ 1908] this is part one of three. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 28 May 2001 03:36:04 +0000
parents 0695f52c06da
children fe79493094e7
line wrap: on
line diff
--- a/src/server.c	Fri May 25 23:07:22 2001 +0000
+++ b/src/server.c	Mon May 28 03:36:04 2001 +0000
@@ -405,11 +405,8 @@
 
 	/* we should update the conversation window buttons and menu, if it exists. */
 	cnv = find_conversation(name);
-	if (cnv) {
-		cnv->gc = gc;
-		gtk_option_menu_set_history(GTK_OPTION_MENU(cnv->menu), g_slist_index(connections, gc));
-		update_buttons_by_protocol(cnv);
-	}
+	if (cnv)
+		set_convo_gc(cnv, gc);
 
 	/* if you can't figure this out, stop reading right now.
 	 * "we're not worthy! we're not worthy!" */
@@ -484,10 +481,7 @@
 			if (cnv == NULL) {
 				new_conv = 1;
 				cnv = new_conversation(name);
-				cnv->gc = gc;
-				gtk_option_menu_set_history(GTK_OPTION_MENU(cnv->menu),
-							    g_slist_index(connections, gc));
-				update_buttons_by_protocol(cnv);
+				set_convo_gc(cnv, gc);
 			}
 			if (new_conv && (sound_options & OPT_SOUND_FIRST_RCV))
 				play_sound(FIRST_RECEIVE);
@@ -540,10 +534,7 @@
 		if (cnv == NULL) {
 			new_conv = 1;
 			cnv = new_conversation(name);
-			cnv->gc = gc;
-			gtk_option_menu_set_history(GTK_OPTION_MENU(cnv->menu),
-						    g_slist_index(connections, gc));
-			update_buttons_by_protocol(cnv);
+			set_convo_gc(cnv, gc);
 		}
 		if (new_conv && (sound_options & OPT_SOUND_FIRST_RCV))
 			play_sound(FIRST_RECEIVE);