comparison 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
comparison
equal deleted inserted replaced
5857:2fa4aa9c1885 5858:96e5b32e75ad
175 static guint misc_options; 175 static guint misc_options;
176 static guint logging_options; 176 static guint logging_options;
177 static guint blist_options; 177 static guint blist_options;
178 static guint convo_options; 178 static guint convo_options;
179 static guint im_options; 179 static guint im_options;
180 static guint conv_placement_option;
181 static guint chat_options; 180 static guint chat_options;
182 static guint font_options; 181 static guint font_options;
183 static guint sound_options; 182 static guint sound_options;
184 static guint away_options; 183 static guint away_options;
185 static guint is_loading_prefs = 0; 184 static guint is_loading_prefs = 0;
965 im_options & OPT_IM_ALIAS_TAB); 964 im_options & OPT_IM_ALIAS_TAB);
966 gaim_prefs_set_bool("/gaim/gtk/conversations/im/hide_on_send", 965 gaim_prefs_set_bool("/gaim/gtk/conversations/im/hide_on_send",
967 (im_options & OPT_IM_POPDOWN)); 966 (im_options & OPT_IM_POPDOWN));
968 967
969 } else if (!strcmp(p->option, "conv_placement")) { 968 } else if (!strcmp(p->option, "conv_placement")) {
970 conv_placement_option = atoi(p->value[0]); 969 switch(atoi(p->value[0])) {
971 /* XXX: this still needs converting */ 970 case 1:
972 gaim_conv_placement_set_active(conv_placement_option); 971 gaim_prefs_set_string("/core/conversations/placement",
972 "new");
973 break;
974 case 2:
975 gaim_prefs_set_string("/core/conversations/placement",
976 "group");
977 break;
978 case 3:
979 gaim_prefs_set_string("/core/conversations/placement",
980 "account");
981 break;
982 case 0:
983 default:
984 gaim_prefs_set_string("/core/conversations/placement",
985 "last");
986 break;
987 }
973 } else if (!strcmp(p->option, "chat_options")) { 988 } else if (!strcmp(p->option, "chat_options")) {
974 chat_options = atoi(p->value[0]); 989 chat_options = atoi(p->value[0]);
975 990
976 gaim_prefs_set_bool("/gaim/gtk/conversations/chat/button_type", 991 gaim_prefs_set_bool("/gaim/gtk/conversations/chat/button_type",
977 ((chat_options & OPT_CHAT_BUTTON_XPM) 992 ((chat_options & OPT_CHAT_BUTTON_XPM)