Mercurial > pidgin
annotate finch/gntprefs.c @ 31074:6caa1318af63
Include the name for 'Meadow Mari' in the stats script so the page shows it.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Tue, 28 Dec 2010 10:49:46 +0000 |
parents | a538cb73f897 |
children | a8cc50c2279f |
rev | line source |
---|---|
15817 | 1 /** |
2 * @file gntprefs.c GNT Preferences API | |
16194
0f0832c13fcb
Rename the Doxygen group from gntui to finch and define the finch group
Richard Laager <rlaager@wiktel.com>
parents:
15870
diff
changeset
|
3 * @ingroup finch |
20074
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
4 */ |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
5 |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
6 /* finch |
15817 | 7 * |
15870
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15822
diff
changeset
|
8 * Finch is the legal property of its developers, whose names are too numerous |
15817 | 9 * to list here. Please refer to the COPYRIGHT file distributed with this |
10 * source distribution. | |
11 * | |
12 * This program is free software; you can redistribute it and/or modify | |
13 * it under the terms of the GNU General Public License as published by | |
14 * the Free Software Foundation; either version 2 of the License, or | |
15 * (at your option) any later version. | |
16 * | |
17 * This program is distributed in the hope that it will be useful, | |
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 * GNU General Public License for more details. | |
21 * | |
22 * You should have received a copy of the GNU General Public License | |
23 * along with this program; if not, write to the Free Software | |
19681
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18410
diff
changeset
|
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15817 | 25 */ |
18210
b8572b937c09
#include reorganizations to allow compiling with glib < 2.8 using the
Stu Tomlinson <stu@nosnilmot.com>
parents:
18118
diff
changeset
|
26 #include "finch.h" |
27587
f7c5bb2f6623
Don't include an internal header in the public finch headers.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
22007
diff
changeset
|
27 #include <internal.h> |
18210
b8572b937c09
#include reorganizations to allow compiling with glib < 2.8 using the
Stu Tomlinson <stu@nosnilmot.com>
parents:
18118
diff
changeset
|
28 |
15817 | 29 #include <prefs.h> |
30 #include <savedstatuses.h> | |
31 | |
32 #include "gntprefs.h" | |
33 #include "gntrequest.h" | |
34 | |
18345
2d4df5ef0090
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18334
diff
changeset
|
35 #include "gnt.h" |
2d4df5ef0090
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18334
diff
changeset
|
36 #include "gntwidget.h" |
2d4df5ef0090
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18334
diff
changeset
|
37 |
15817 | 38 #include <string.h> |
39 | |
18334
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
40 static struct { |
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
41 GList *freestrings; /* strings to be freed when the pref-window is closed */ |
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
42 gboolean showing; |
18345
2d4df5ef0090
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18334
diff
changeset
|
43 GntWidget *window; |
18334
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
44 } pref_request; |
15817 | 45 |
46 void finch_prefs_init() | |
47 { | |
16424
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
48 purple_prefs_add_none("/finch"); |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
49 |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
50 purple_prefs_add_none("/finch/plugins"); |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
51 purple_prefs_add_path_list("/finch/plugins/loaded", NULL); |
16941
beb960114f7d
I liked Etan's suggestion in devel. Now, Finch will bold unseen plugins in the plugin dialog. A plugin is considered 'seen' only after the details of the plugin is viewed by the user.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16565
diff
changeset
|
52 purple_prefs_add_path_list("/finch/plugins/seen", NULL); |
15817 | 53 |
16424
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
54 purple_prefs_add_none("/finch/conversations"); |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
55 purple_prefs_add_bool("/finch/conversations/timestamps", TRUE); |
16565
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
56 purple_prefs_add_bool("/finch/conversations/notify_typing", FALSE); |
18410
719f73b9a593
Remember the open/save file locations.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18345
diff
changeset
|
57 |
719f73b9a593
Remember the open/save file locations.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18345
diff
changeset
|
58 purple_prefs_add_none("/finch/filelocations"); |
719f73b9a593
Remember the open/save file locations.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18345
diff
changeset
|
59 purple_prefs_add_path("/finch/filelocations/last_save_folder", ""); |
719f73b9a593
Remember the open/save file locations.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18345
diff
changeset
|
60 purple_prefs_add_path("/finch/filelocations/last_save_folder", ""); |
16565
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
61 } |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
62 |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
63 void finch_prefs_update_old() |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
64 { |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
65 const char *str = NULL; |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
66 |
16424
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
67 purple_prefs_rename("/gaim/gnt", "/finch"); |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
68 purple_prefs_rename("/purple/gnt", "/finch"); |
16565
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
69 |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
70 if ((str = purple_prefs_get_string("/purple/away/idle_reporting")) && |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
71 strcmp(str, "gaim") == 0) |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16439
diff
changeset
|
72 purple_prefs_set_string("/purple/away/idle_reporting", "purple"); |
15817 | 73 } |
74 | |
75 typedef struct | |
76 { | |
15822 | 77 PurplePrefType type; |
15817 | 78 const char *pref; |
79 const char *label; | |
22007
c38d72677c8a
Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up
Richard Laager <rlaager@wiktel.com>
parents:
21570
diff
changeset
|
80 GList *(*lv)(void); /* If the value is to be selected from a number of choices */ |
15817 | 81 } Prefs; |
82 | |
83 static GList * | |
22007
c38d72677c8a
Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up
Richard Laager <rlaager@wiktel.com>
parents:
21570
diff
changeset
|
84 get_log_options(void) |
15817 | 85 { |
15822 | 86 return purple_log_logger_get_options(); |
15817 | 87 } |
88 | |
89 static GList * | |
22007
c38d72677c8a
Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up
Richard Laager <rlaager@wiktel.com>
parents:
21570
diff
changeset
|
90 get_idle_options(void) |
15817 | 91 { |
92 GList *list = NULL; | |
17144
c61187e0c752
Fix a compiler warning.
Richard Laager <rlaager@wiktel.com>
parents:
17137
diff
changeset
|
93 list = g_list_append(list, (char *)_("Based on keyboard use")); |
15817 | 94 list = g_list_append(list, "system"); |
95 list = g_list_append(list, (char*)_("From last sent message")); | |
15822 | 96 list = g_list_append(list, "purple"); |
15817 | 97 list = g_list_append(list, (char*)_("Never")); |
98 list = g_list_append(list, "never"); | |
99 return list; | |
100 } | |
101 | |
102 static GList * | |
22007
c38d72677c8a
Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up
Richard Laager <rlaager@wiktel.com>
parents:
21570
diff
changeset
|
103 get_status_titles(void) |
15817 | 104 { |
105 GList *list = NULL; | |
18118
ab6d2763b8d8
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@wiktel.com>
parents:
17144
diff
changeset
|
106 GList *iter; |
15822 | 107 for (iter = purple_savedstatuses_get_all(); iter; iter = iter->next) { |
15817 | 108 char *str; |
15822 | 109 if (purple_savedstatus_is_transient(iter->data)) |
15817 | 110 continue; |
15822 | 111 str = g_strdup_printf("%ld", purple_savedstatus_get_creation_time(iter->data)); |
112 list = g_list_append(list, (char*)purple_savedstatus_get_title(iter->data)); | |
15817 | 113 list = g_list_append(list, str); |
18334
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
114 pref_request.freestrings = g_list_prepend(pref_request.freestrings, str); |
15817 | 115 } |
116 return list; | |
117 } | |
118 | |
15822 | 119 static PurpleRequestField * |
15817 | 120 get_pref_field(Prefs *prefs) |
121 { | |
15822 | 122 PurpleRequestField *field = NULL; |
15817 | 123 |
124 if (prefs->lv == NULL) | |
125 { | |
126 switch (prefs->type) | |
127 { | |
15822 | 128 case PURPLE_PREF_BOOLEAN: |
129 field = purple_request_field_bool_new(prefs->pref, _(prefs->label), | |
130 purple_prefs_get_bool(prefs->pref)); | |
15817 | 131 break; |
15822 | 132 case PURPLE_PREF_INT: |
133 field = purple_request_field_int_new(prefs->pref, _(prefs->label), | |
134 purple_prefs_get_int(prefs->pref)); | |
15817 | 135 break; |
15822 | 136 case PURPLE_PREF_STRING: |
137 field = purple_request_field_string_new(prefs->pref, _(prefs->label), | |
138 purple_prefs_get_string(prefs->pref), FALSE); | |
15817 | 139 break; |
140 default: | |
141 break; | |
142 } | |
143 } | |
144 else | |
145 { | |
146 GList *list = prefs->lv(), *iter; | |
147 if (list) | |
15822 | 148 field = purple_request_field_list_new(prefs->pref, _(prefs->label)); |
15817 | 149 for (iter = list; iter; iter = iter->next) |
150 { | |
151 gboolean select = FALSE; | |
152 const char *data = iter->data; | |
153 int idata; | |
154 iter = iter->next; | |
155 switch (prefs->type) | |
156 { | |
15822 | 157 case PURPLE_PREF_BOOLEAN: |
15817 | 158 sscanf(iter->data, "%d", &idata); |
15822 | 159 if (purple_prefs_get_bool(prefs->pref) == idata) |
15817 | 160 select = TRUE; |
161 break; | |
15822 | 162 case PURPLE_PREF_INT: |
15817 | 163 sscanf(iter->data, "%d", &idata); |
15822 | 164 if (purple_prefs_get_int(prefs->pref) == idata) |
15817 | 165 select = TRUE; |
166 break; | |
15822 | 167 case PURPLE_PREF_STRING: |
168 if (strcmp(purple_prefs_get_string(prefs->pref), iter->data) == 0) | |
15817 | 169 select = TRUE; |
170 break; | |
171 default: | |
172 break; | |
173 } | |
29428
cc1e35fa774d
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@wiktel.com>
parents:
22007
diff
changeset
|
174 purple_request_field_list_add_icon(field, data, NULL, iter->data); |
15817 | 175 if (select) |
15822 | 176 purple_request_field_list_add_selected(field, data); |
15817 | 177 } |
178 g_list_free(list); | |
179 } | |
180 return field; | |
181 } | |
182 | |
183 static Prefs blist[] = | |
184 { | |
16424
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
185 {PURPLE_PREF_BOOLEAN, "/finch/blist/idletime", N_("Show Idle Time"), NULL}, |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
186 {PURPLE_PREF_BOOLEAN, "/finch/blist/showoffline", N_("Show Offline Buddies"), NULL}, |
15822 | 187 {PURPLE_PREF_NONE, NULL, NULL, NULL} |
15817 | 188 }; |
189 | |
190 static Prefs convs[] = | |
191 { | |
16424
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
192 {PURPLE_PREF_BOOLEAN, "/finch/conversations/timestamps", N_("Show Timestamps"), NULL}, |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
193 {PURPLE_PREF_BOOLEAN, "/finch/conversations/notify_typing", N_("Notify buddies when you are typing"), NULL}, |
15822 | 194 {PURPLE_PREF_NONE, NULL, NULL, NULL} |
15817 | 195 }; |
196 | |
197 static Prefs logging[] = | |
198 { | |
16424
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
199 {PURPLE_PREF_STRING, "/purple/logging/format", N_("Log format"), get_log_options}, |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
200 {PURPLE_PREF_BOOLEAN, "/purple/logging/log_ims", N_("Log IMs"), NULL}, |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
201 {PURPLE_PREF_BOOLEAN, "/purple/logging/log_chats", N_("Log chats"), NULL}, |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
16310
diff
changeset
|
202 {PURPLE_PREF_BOOLEAN, "/purple/logging/log_system", N_("Log status change events"), NULL}, |
15822 | 203 {PURPLE_PREF_NONE, NULL, NULL, NULL}, |
15817 | 204 }; |
205 | |
206 static Prefs idle[] = | |
207 { | |
18334
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
208 {PURPLE_PREF_STRING, "/purple/away/idle_reporting", N_("Report Idle time"), get_idle_options}, |
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
209 {PURPLE_PREF_BOOLEAN, "/purple/away/away_when_idle", N_("Change status when idle"), NULL}, |
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
210 {PURPLE_PREF_INT, "/purple/away/mins_before_away", N_("Minutes before changing status"), NULL}, |
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
211 {PURPLE_PREF_INT, "/purple/savedstatus/idleaway", N_("Change status to"), get_status_titles}, |
15822 | 212 {PURPLE_PREF_NONE, NULL, NULL, NULL}, |
15817 | 213 }; |
214 | |
215 static void | |
22007
c38d72677c8a
Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up
Richard Laager <rlaager@wiktel.com>
parents:
21570
diff
changeset
|
216 free_strings(void) |
15817 | 217 { |
18334
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
218 g_list_foreach(pref_request.freestrings, (GFunc)g_free, NULL); |
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
219 g_list_free(pref_request.freestrings); |
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
220 pref_request.freestrings = NULL; |
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
221 pref_request.showing = FALSE; |
15817 | 222 } |
223 | |
224 static void | |
15822 | 225 save_cb(void *data, PurpleRequestFields *allfields) |
15817 | 226 { |
16310
8c89913276b3
Implement the plugin-pref ui using the request api. The preferences for the core plugins can now be modified from Finch. And no new strings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
227 finch_request_save_in_prefs(data, allfields); |
15817 | 228 free_strings(); |
229 } | |
230 | |
231 static void | |
15822 | 232 add_pref_group(PurpleRequestFields *fields, const char *title, Prefs *prefs) |
15817 | 233 { |
15822 | 234 PurpleRequestField *field; |
235 PurpleRequestFieldGroup *group; | |
15817 | 236 int i; |
237 | |
15822 | 238 group = purple_request_field_group_new(title); |
239 purple_request_fields_add_group(fields, group); | |
15817 | 240 for (i = 0; prefs[i].pref; i++) |
241 { | |
242 field = get_pref_field(prefs + i); | |
243 if (field) | |
15822 | 244 purple_request_field_group_add_field(group, field); |
15817 | 245 } |
246 } | |
247 | |
248 void finch_prefs_show_all() | |
249 { | |
15822 | 250 PurpleRequestFields *fields; |
15817 | 251 |
18345
2d4df5ef0090
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18334
diff
changeset
|
252 if (pref_request.showing) { |
2d4df5ef0090
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18334
diff
changeset
|
253 gnt_window_present(pref_request.window); |
18334
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
254 return; |
18345
2d4df5ef0090
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18334
diff
changeset
|
255 } |
18334
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
256 |
15822 | 257 fields = purple_request_fields_new(); |
15817 | 258 |
259 add_pref_group(fields, _("Buddy List"), blist); | |
260 add_pref_group(fields, _("Conversations"), convs); | |
261 add_pref_group(fields, _("Logging"), logging); | |
262 add_pref_group(fields, _("Idle"), idle); | |
263 | |
18334
65fedb03ac05
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18210
diff
changeset
|
264 pref_request.showing = TRUE; |
21570
dccfd999ffe7
merge of '76c07fcb434a2a7aa289734bb221c171a376d73b'
Evan Schoenberg <evan.s@dreskin.net>
parents:
21244
diff
changeset
|
265 pref_request.window = purple_request_fields(NULL, _("Preferences"), NULL, NULL, fields, |
16439
08db93bbd798
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evan.s@dreskin.net>
parents:
16424
diff
changeset
|
266 _("Save"), G_CALLBACK(save_cb), _("Cancel"), free_strings, |
08db93bbd798
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evan.s@dreskin.net>
parents:
16424
diff
changeset
|
267 NULL, NULL, NULL, |
21570
dccfd999ffe7
merge of '76c07fcb434a2a7aa289734bb221c171a376d73b'
Evan Schoenberg <evan.s@dreskin.net>
parents:
21244
diff
changeset
|
268 NULL); |
15817 | 269 } |
270 |