diff src/gaimrc.c @ 5858:96e5b32e75ad

[gaim-migrate @ 6289] conversation placement functions now have an ID string, rather than the pref being dependent on the order the functions are in the list. also, the pref is converted to the new system. and it's cool, and stuff. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 13 Jun 2003 23:49:26 +0000
parents 2fa4aa9c1885
children 417b1001d2b1
line wrap: on
line diff
--- a/src/gaimrc.c	Fri Jun 13 23:04:26 2003 +0000
+++ b/src/gaimrc.c	Fri Jun 13 23:49:26 2003 +0000
@@ -177,7 +177,6 @@
 static guint blist_options;
 static guint convo_options;
 static guint im_options;
-static guint conv_placement_option;
 static guint chat_options;
 static guint font_options;
 static guint sound_options;
@@ -967,9 +966,25 @@
 								(im_options & OPT_IM_POPDOWN));
 
 		} else if (!strcmp(p->option, "conv_placement")) {
-			conv_placement_option = atoi(p->value[0]);
-			/* XXX: this still needs converting */
-			gaim_conv_placement_set_active(conv_placement_option);
+			switch(atoi(p->value[0])) {
+				case 1:
+					gaim_prefs_set_string("/core/conversations/placement",
+							"new");
+				break;
+				case 2:
+					gaim_prefs_set_string("/core/conversations/placement",
+							"group");
+				break;
+				case 3:
+					gaim_prefs_set_string("/core/conversations/placement",
+							"account");
+				break;
+				case 0:
+				default:
+					gaim_prefs_set_string("/core/conversations/placement",
+							"last");
+				break;
+			}
 		} else if (!strcmp(p->option, "chat_options")) {
 			chat_options = atoi(p->value[0]);