Mercurial > pidgin
comparison src/gaimrc.c @ 5691:3de0e242f9a2
[gaim-migrate @ 6112]
sound prefs are now imported
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 03 Jun 2003 06:06:22 +0000 |
parents | b61520e71679 |
children | dbac958d8937 |
comparison
equal
deleted
inserted
replaced
5690:08d20eb262c7 | 5691:3de0e242f9a2 |
---|---|
923 | 923 |
924 } else if (!strcmp(p->option, "font_options")) { | 924 } else if (!strcmp(p->option, "font_options")) { |
925 font_options = atoi(p->value[0]); | 925 font_options = atoi(p->value[0]); |
926 | 926 |
927 gaim_prefs_set_bool("/gaim/gtk/conversations/send_bold", | 927 gaim_prefs_set_bool("/gaim/gtk/conversations/send_bold", |
928 (font_options & OPT_FONT_BOLD)); | 928 font_options & OPT_FONT_BOLD); |
929 gaim_prefs_set_bool("/gaim/gtk/conversations/send_italic", | 929 gaim_prefs_set_bool("/gaim/gtk/conversations/send_italic", |
930 (font_options & OPT_FONT_ITALIC)); | 930 font_options & OPT_FONT_ITALIC); |
931 gaim_prefs_set_bool("/gaim/gtk/conversations/send_underline", | 931 gaim_prefs_set_bool("/gaim/gtk/conversations/send_underline", |
932 (font_options & OPT_FONT_UNDERLINE)); | 932 font_options & OPT_FONT_UNDERLINE); |
933 gaim_prefs_set_bool("/gaim/gtk/conversations/send_strikethrough", | 933 gaim_prefs_set_bool("/gaim/gtk/conversations/send_strikethrough", |
934 (font_options & OPT_FONT_STRIKE)); | 934 font_options & OPT_FONT_STRIKE); |
935 gaim_prefs_set_bool("/gaim/gtk/conversations/use_custom_font", | 935 gaim_prefs_set_bool("/gaim/gtk/conversations/use_custom_font", |
936 (font_options & OPT_FONT_FACE)); | 936 font_options & OPT_FONT_FACE); |
937 gaim_prefs_set_bool("/gaim/gtk/conversations/use_custom_size", | 937 gaim_prefs_set_bool("/gaim/gtk/conversations/use_custom_size", |
938 (font_options & OPT_FONT_SIZE)); | 938 font_options & OPT_FONT_SIZE); |
939 gaim_prefs_set_bool("/gaim/gtk/conversations/use_custom_fgcolor", | 939 gaim_prefs_set_bool("/gaim/gtk/conversations/use_custom_fgcolor", |
940 (font_options & OPT_FONT_FGCOL)); | 940 font_options & OPT_FONT_FGCOL); |
941 gaim_prefs_set_bool("/gaim/gtk/conversations/use_custom_bgcolor", | 941 gaim_prefs_set_bool("/gaim/gtk/conversations/use_custom_bgcolor", |
942 (font_options & OPT_FONT_BGCOL)); | 942 font_options & OPT_FONT_BGCOL); |
943 | 943 |
944 } else if (!strcmp(p->option, "sound_options")) { | 944 } else if (!strcmp(p->option, "sound_options")) { |
945 sound_options = atoi(p->value[0]); | 945 sound_options = atoi(p->value[0]); |
946 /* XXX: figure out the mapping between the options | 946 gaim_prefs_set_bool("/gaim/gtk/sound/enabled/login", |
947 * and the new sound method option */ | 947 sound_options & OPT_SOUND_LOGIN); |
948 gaim_prefs_set_bool("/gaim/gtk/sound/enabled/logout", | |
949 sound_options & OPT_SOUND_LOGOUT); | |
950 gaim_prefs_set_bool("/gaim/gtk/sound/enabled/im_recv", | |
951 sound_options & OPT_SOUND_RECV); | |
952 gaim_prefs_set_bool("/gaim/gtk/sound/enabled/send_im", | |
953 sound_options & OPT_SOUND_SEND); | |
954 gaim_prefs_set_bool("/gaim/gtk/sound/enabled/first_im_recv", | |
955 sound_options & OPT_SOUND_FIRST_RCV); | |
956 gaim_prefs_set_bool("/core/sound/when_away", | |
957 sound_options & OPT_SOUND_WHEN_AWAY); | |
958 gaim_prefs_set_bool("/gaim/gtk/sound/silent_signon", | |
959 sound_options & OPT_SOUND_SILENT_SIGNON); | |
960 gaim_prefs_set_bool("/gaim/gtk/sound/enabled/join_chat", | |
961 sound_options & OPT_SOUND_CHAT_JOIN); | |
962 gaim_prefs_set_bool("/gaim/gtk/sound/enabled/chat_msg_recv", | |
963 sound_options & OPT_SOUND_CHAT_SAY); | |
964 gaim_prefs_set_bool("/gaim/gtk/sound/enabled/left_chat", | |
965 sound_options & OPT_SOUND_CHAT_PART); | |
966 gaim_prefs_set_bool("/gaim/gtk/sound/enabled/send_chat_msg", | |
967 sound_options & OPT_SOUND_CHAT_YOU_SAY); | |
968 gaim_prefs_set_bool("/gaim/gtk/sound/enabled/nick_said", | |
969 sound_options & OPT_SOUND_CHAT_NICK); | |
970 if(sound_options & OPT_SOUND_NAS) { | |
971 gaim_prefs_set_string("/gaim/gtk/sound/method", "nas"); | |
972 } else if(!(sound_options & OPT_SOUND_NORMAL)) { | |
973 if(sound_options & OPT_SOUND_ESD) | |
974 gaim_prefs_set_string("/gaim/gtk/sound/method", "esd"); | |
975 else if(sound_options & OPT_SOUND_ARTS) | |
976 gaim_prefs_set_string("/gaim/gtk/sound/method", "arts"); | |
977 else if(sound_options & OPT_SOUND_CMD) | |
978 gaim_prefs_set_string("/gaim/gtk/sound/method", "custom"); | |
979 else if(sound_options & OPT_SOUND_BEEP) | |
980 gaim_prefs_set_string("/gaim/gtk/sound/method", "beep"); | |
981 } | |
948 } else if (!strcmp(p->option, "away_options")) { | 982 } else if (!strcmp(p->option, "away_options")) { |
949 away_options = atoi(p->value[0]); | 983 away_options = atoi(p->value[0]); |
950 gaim_prefs_set_bool("/core/conversations/away_back_on_send", | 984 gaim_prefs_set_bool("/core/conversations/away_back_on_send", |
951 away_options & OPT_AWAY_BACK_ON_IM); | 985 away_options & OPT_AWAY_BACK_ON_IM); |
952 gaim_prefs_set_bool("/core/away/away_when_idle", | 986 gaim_prefs_set_bool("/core/away/away_when_idle", |
1058 gaim_prefs_set_string("/gaim/gtk/blist/sort_type", p->value[0]); | 1092 gaim_prefs_set_string("/gaim/gtk/blist/sort_type", p->value[0]); |
1059 } | 1093 } |
1060 | 1094 |
1061 } | 1095 } |
1062 | 1096 |
1063 /* this is where we do bugs and compatibility stuff */ | |
1064 if (!(sound_options & (OPT_SOUND_BEEP | OPT_SOUND_NORMAL | OPT_SOUND_ESD | |
1065 | OPT_SOUND_ARTS | OPT_SOUND_NAS | OPT_SOUND_CMD))) { | |
1066 sound_options |= OPT_SOUND_NORMAL; | |
1067 /* XXX: I don't think we need this anymore */ | |
1068 } | |
1069 | |
1070 if (read_general) { | 1097 if (read_general) { |
1071 if (!read_logging) { | 1098 if (!read_logging) { |
1072 logging_options = 0; | 1099 logging_options = 0; |
1073 if (general_options & OPT_GEN_LOG_ALL) | 1100 if (general_options & OPT_GEN_LOG_ALL) |
1074 logging_options |= OPT_LOG_CONVOS | OPT_LOG_CHATS; | 1101 logging_options |= OPT_LOG_CONVOS | OPT_LOG_CHATS; |