comparison finch/gntprefs.c @ 16427:4999bbc52881

Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
author Sean Egan <seanegan@gmail.com>
date Wed, 25 Apr 2007 23:55:56 +0000
parents 8c89913276b3
children 08db93bbd798
comparison
equal deleted inserted replaced
16426:0fb719b5dc0e 16427:4999bbc52881
33 33
34 static GList *freestrings; /* strings to be freed when the pref-window is closed */ 34 static GList *freestrings; /* strings to be freed when the pref-window is closed */
35 35
36 void finch_prefs_init() 36 void finch_prefs_init()
37 { 37 {
38 purple_prefs_add_none("/purple"); 38 purple_prefs_add_none("/finch");
39 purple_prefs_add_none("/purple/gnt"); 39
40 40 purple_prefs_add_none("/finch/plugins");
41 purple_prefs_add_none("/purple/gnt/plugins"); 41 purple_prefs_add_path_list("/finch/plugins/loaded", NULL);
42 purple_prefs_add_path_list("/purple/gnt/plugins/loaded", NULL); 42
43 43 purple_prefs_add_none("/finch/conversations");
44 purple_prefs_add_none("/purple/gnt/conversations"); 44 purple_prefs_add_bool("/finch/conversations/timestamps", TRUE);
45 purple_prefs_add_bool("/purple/gnt/conversations/timestamps", TRUE); 45 purple_prefs_add_bool("/finch/conversations/notify_typing", FALSE); /* XXX: Not functional yet */
46 purple_prefs_add_bool("/purple/gnt/conversations/notify_typing", FALSE); /* XXX: Not functional yet */ 46 purple_prefs_rename("/gaim/gnt", "/finch");
47 purple_prefs_rename("/purple/gnt", "/finch");
47 } 48 }
48 49
49 typedef struct 50 typedef struct
50 { 51 {
51 PurplePrefType type; 52 PurplePrefType type;
154 return field; 155 return field;
155 } 156 }
156 157
157 static Prefs blist[] = 158 static Prefs blist[] =
158 { 159 {
159 {PURPLE_PREF_BOOLEAN, "/purple/gnt/blist/idletime", N_("Show Idle Time"), NULL}, 160 {PURPLE_PREF_BOOLEAN, "/finch/blist/idletime", N_("Show Idle Time"), NULL},
160 {PURPLE_PREF_BOOLEAN, "/purple/gnt/blist/showoffline", N_("Show Offline Buddies"), NULL}, 161 {PURPLE_PREF_BOOLEAN, "/finch/blist/showoffline", N_("Show Offline Buddies"), NULL},
161 {PURPLE_PREF_NONE, NULL, NULL, NULL} 162 {PURPLE_PREF_NONE, NULL, NULL, NULL}
162 }; 163 };
163 164
164 static Prefs convs[] = 165 static Prefs convs[] =
165 { 166 {
166 {PURPLE_PREF_BOOLEAN, "/purple/gnt/conversations/timestamps", N_("Show Timestamps"), NULL}, 167 {PURPLE_PREF_BOOLEAN, "/finch/conversations/timestamps", N_("Show Timestamps"), NULL},
167 {PURPLE_PREF_BOOLEAN, "/purple/gnt/conversations/notify_typing", N_("Notify buddies when you are typing"), NULL}, 168 {PURPLE_PREF_BOOLEAN, "/finch/conversations/notify_typing", N_("Notify buddies when you are typing"), NULL},
168 {PURPLE_PREF_NONE, NULL, NULL, NULL} 169 {PURPLE_PREF_NONE, NULL, NULL, NULL}
169 }; 170 };
170 171
171 static Prefs logging[] = 172 static Prefs logging[] =
172 { 173 {
173 {PURPLE_PREF_STRING, "/core/logging/format", N_("Log format"), get_log_options}, 174 {PURPLE_PREF_STRING, "/purple/logging/format", N_("Log format"), get_log_options},
174 {PURPLE_PREF_BOOLEAN, "/core/logging/log_ims", N_("Log IMs"), NULL}, 175 {PURPLE_PREF_BOOLEAN, "/purple/logging/log_ims", N_("Log IMs"), NULL},
175 {PURPLE_PREF_BOOLEAN, "/core/logging/log_chats", N_("Log chats"), NULL}, 176 {PURPLE_PREF_BOOLEAN, "/purple/logging/log_chats", N_("Log chats"), NULL},
176 {PURPLE_PREF_BOOLEAN, "/core/logging/log_system", N_("Log status change events"), NULL}, 177 {PURPLE_PREF_BOOLEAN, "/purple/logging/log_system", N_("Log status change events"), NULL},
177 {PURPLE_PREF_NONE, NULL, NULL, NULL}, 178 {PURPLE_PREF_NONE, NULL, NULL, NULL},
178 }; 179 };
179 180
180 /* XXX: Translate after the freeze */ 181 /* XXX: Translate after the freeze */
181 static Prefs idle[] = 182 static Prefs idle[] =
182 { 183 {
183 {PURPLE_PREF_STRING, "/core/away/idle_reporting", "Report Idle time", get_idle_options}, 184 {PURPLE_PREF_STRING, "/purple/away/idle_reporting", "Report Idle time", get_idle_options},
184 {PURPLE_PREF_BOOLEAN, "/core/away/away_when_idle", "Change status when idle", NULL}, 185 {PURPLE_PREF_BOOLEAN, "/purple/away/away_when_idle", "Change status when idle", NULL},
185 {PURPLE_PREF_INT, "/core/away/mins_before_away", "Minutes before changing status", NULL}, 186 {PURPLE_PREF_INT, "/purple/away/mins_before_away", "Minutes before changing status", NULL},
186 {PURPLE_PREF_INT, "/core/savedstatus/idleaway", "Change status to", get_status_titles}, 187 {PURPLE_PREF_INT, "/purple/savedstatus/idleaway", "Change status to", get_status_titles},
187 {PURPLE_PREF_NONE, NULL, NULL, NULL}, 188 {PURPLE_PREF_NONE, NULL, NULL, NULL},
188 }; 189 };
189 190
190 static void 191 static void
191 free_strings() 192 free_strings()