Mercurial > pidgin
comparison src/prefs.h @ 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 | 63c7a16a2c09 |
children | 7a67c459ab8f |
comparison
equal
deleted
inserted
replaced
8704:581c94348984 | 8705:543b19a96ac5 |
---|---|
120 * @param newname The new name for the pref | 120 * @param newname The new name for the pref |
121 */ | 121 */ |
122 void gaim_prefs_rename(const char *oldname, const char *newname); | 122 void gaim_prefs_rename(const char *oldname, const char *newname); |
123 | 123 |
124 /** | 124 /** |
125 * Rename a boolean pref, toggling it's value | |
126 * | |
127 * @param oldname The old name of the pref | |
128 * @param newname The new name for the pref | |
129 */ | |
130 void gaim_prefs_rename_boolean_toggle(const char *oldname, const char *newname); | |
131 | |
132 /** | |
125 * Remove all prefs. | 133 * Remove all prefs. |
126 */ | 134 */ |
127 void gaim_prefs_destroy(); | 135 void gaim_prefs_destroy(); |
128 | 136 |
129 /** | 137 /** |
229 | 237 |
230 /** | 238 /** |
231 * Force an immediate write of preferences | 239 * Force an immediate write of preferences |
232 */ | 240 */ |
233 void gaim_prefs_sync(); | 241 void gaim_prefs_sync(); |
234 | |
235 /** | |
236 * Rename legacy prefs | |
237 */ | |
238 void gaim_prefs_rename_old(); | |
239 | 242 |
240 /*@}*/ | 243 /*@}*/ |
241 | 244 |
242 #ifdef __cplusplus | 245 #ifdef __cplusplus |
243 } | 246 } |