comparison src/main.c @ 8705:543b19a96ac5

[gaim-migrate @ 9458] " All preferences in gaim, except for "No sounds when you log in", are "positive" preferences. For consistency and to make it a bit easier to understand the preference I think they should all be "positive" preferences (there's probably something about this in some HIG somewhere too) This patch: 1. changes "No sounds when you log in" to "Sounds when you log in" 2. adds a helper function for renaming old boolean prefs and inverting their meaning (gaim_prefs_rename_boolean_toggle) 3. Moves existing renames from prefs.c to gtkprefs.c because they all reference gtk preferences. Default behaviour for new users remains the same (no sounds during log in), and existing user's preferences are migrated correctly." --Stu Tomlinson at one point possitive preferences were policy, i think we should maintain that policy. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 18 Apr 2004 19:30:19 +0000
parents cfb11d9a46fd
children 8b935eddeb10
comparison
equal deleted inserted replaced
8704:581c94348984 8705:543b19a96ac5
122 * process, it doesn't end there. gaim_setup will be called later from 122 * process, it doesn't end there. gaim_setup will be called later from
123 * oscar.c, after the buddy list is made and serv_finish_login is called */ 123 * oscar.c, after the buddy list is made and serv_finish_login is called */
124 void gaim_setup(GaimConnection *gc) 124 void gaim_setup(GaimConnection *gc)
125 { 125 {
126 if (gaim_prefs_get_bool("/gaim/gtk/sound/enabled/login") 126 if (gaim_prefs_get_bool("/gaim/gtk/sound/enabled/login")
127 && gaim_prefs_get_bool("/gaim/gtk/sound/silent_signon")) { 127 && !gaim_prefs_get_bool("/gaim/gtk/sound/signon")) {
128 if(snd_tmout) { 128 if(snd_tmout) {
129 g_source_remove(snd_tmout); 129 g_source_remove(snd_tmout);
130 } 130 }
131 gaim_gtk_sound_set_login_mute(TRUE); 131 gaim_gtk_sound_set_login_mute(TRUE);
132 snd_tmout = gaim_timeout_add(10000, sound_timeout, NULL); 132 snd_tmout = gaim_timeout_add(10000, sound_timeout, NULL);
849 if (!gaim_accounts_load()) { 849 if (!gaim_accounts_load()) {
850 load_prefs(); 850 load_prefs();
851 gaim_prefs_sync(); 851 gaim_prefs_sync();
852 } 852 }
853 853
854 gaim_prefs_rename_old(); 854 gaim_gtk_prefs_rename_old();
855 855
856 /* load plugins we had when we quit */ 856 /* load plugins we had when we quit */
857 gaim_plugins_load_saved("/gaim/gtk/plugins/loaded"); 857 gaim_plugins_load_saved("/gaim/gtk/plugins/loaded");
858 858
859 gaim_pounces_load(); 859 gaim_pounces_load();