Mercurial > pidgin.yaz
annotate finch/gntprefs.c @ 26635:842b3034d4c6
Free priv->idle.
==00:00:32:40.389 13033== 57 (32 direct, 25 indirect) bytes in 2 blocks are definitely lost in loss record 696 of 1,858
==00:00:32:40.389 13033== at 0x04c25684: calloc (vg_replace_malloc.c:397)
==00:00:32:40.389 13033== by 0x09b299b9: g_malloc0 (gmem.c:151)
==00:00:32:40.389 13033== by 0x0044e2c1: pidgin_blist_loader_build (gtkblist-theme-loader.c:81)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 12 Apr 2009 22:34:07 +0000 |
parents | c38d72677c8a |
children | f7c5bb2f6623 cc1e35fa774d |
rev | line source |
---|---|
15818 | 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:
15871
diff
changeset
|
3 * @ingroup finch |
20074
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
4 */ |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
5 |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
6 /* finch |
15818 | 7 * |
15871
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
8 * Finch is the legal property of its developers, whose names are too numerous |
15818 | 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 | |
19680
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 |
15818 | 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" |
b8572b937c09
#include reorganizations to allow compiling with glib < 2.8 using the
Stu Tomlinson <stu@nosnilmot.com>
parents:
18118
diff
changeset
|
27 |
15818 | 28 #include <prefs.h> |
29 #include <savedstatuses.h> | |
30 | |
31 #include "gntprefs.h" | |
32 #include "gntrequest.h" | |
33 | |
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
|
34 #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
|
35 #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
|
36 |
15818 | 37 #include <string.h> |
38 | |
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
|
39 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
|
40 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
|
41 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
|
42 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
|
43 } pref_request; |
15818 | 44 |
45 void finch_prefs_init() | |
46 { | |
16427
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
|
47 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
|
48 |
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 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
|
50 purple_prefs_add_path_list("/finch/plugins/loaded", NULL); |
16952
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:
16573
diff
changeset
|
51 purple_prefs_add_path_list("/finch/plugins/seen", NULL); |
15818 | 52 |
16427
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
|
53 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
|
54 purple_prefs_add_bool("/finch/conversations/timestamps", TRUE); |
16573
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
55 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
|
56 |
719f73b9a593
Remember the open/save file locations.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18345
diff
changeset
|
57 purple_prefs_add_none("/finch/filelocations"); |
719f73b9a593
Remember the open/save file locations.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18345
diff
changeset
|
58 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
|
59 purple_prefs_add_path("/finch/filelocations/last_save_folder", ""); |
16573
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
60 } |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
61 |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
62 void finch_prefs_update_old() |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
63 { |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
64 const char *str = NULL; |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
65 |
16427
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
|
66 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
|
67 purple_prefs_rename("/purple/gnt", "/finch"); |
16573
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
68 |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
69 if ((str = purple_prefs_get_string("/purple/away/idle_reporting")) && |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
70 strcmp(str, "gaim") == 0) |
ac0d07c7fd90
Pref migration for finch.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16442
diff
changeset
|
71 purple_prefs_set_string("/purple/away/idle_reporting", "purple"); |
15818 | 72 } |
73 | |
74 typedef struct | |
75 { | |
15823 | 76 PurplePrefType type; |
15818 | 77 const char *pref; |
78 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
|
79 GList *(*lv)(void); /* If the value is to be selected from a number of choices */ |
15818 | 80 } Prefs; |
81 | |
82 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
|
83 get_log_options(void) |
15818 | 84 { |
15823 | 85 return purple_log_logger_get_options(); |
15818 | 86 } |
87 | |
88 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
|
89 get_idle_options(void) |
15818 | 90 { |
91 GList *list = NULL; | |
17171
c61187e0c752
Fix a compiler warning.
Richard Laager <rlaager@wiktel.com>
parents:
17160
diff
changeset
|
92 list = g_list_append(list, (char *)_("Based on keyboard use")); |
15818 | 93 list = g_list_append(list, "system"); |
94 list = g_list_append(list, (char*)_("From last sent message")); | |
15823 | 95 list = g_list_append(list, "purple"); |
15818 | 96 list = g_list_append(list, (char*)_("Never")); |
97 list = g_list_append(list, "never"); | |
98 return list; | |
99 } | |
100 | |
101 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
|
102 get_status_titles(void) |
15818 | 103 { |
104 GList *list = NULL; | |
18118
ab6d2763b8d8
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@wiktel.com>
parents:
17171
diff
changeset
|
105 GList *iter; |
15823 | 106 for (iter = purple_savedstatuses_get_all(); iter; iter = iter->next) { |
15818 | 107 char *str; |
15823 | 108 if (purple_savedstatus_is_transient(iter->data)) |
15818 | 109 continue; |
15823 | 110 str = g_strdup_printf("%ld", purple_savedstatus_get_creation_time(iter->data)); |
111 list = g_list_append(list, (char*)purple_savedstatus_get_title(iter->data)); | |
15818 | 112 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
|
113 pref_request.freestrings = g_list_prepend(pref_request.freestrings, str); |
15818 | 114 } |
115 return list; | |
116 } | |
117 | |
15823 | 118 static PurpleRequestField * |
15818 | 119 get_pref_field(Prefs *prefs) |
120 { | |
15823 | 121 PurpleRequestField *field = NULL; |
15818 | 122 |
123 if (prefs->lv == NULL) | |
124 { | |
125 switch (prefs->type) | |
126 { | |
15823 | 127 case PURPLE_PREF_BOOLEAN: |
128 field = purple_request_field_bool_new(prefs->pref, _(prefs->label), | |
129 purple_prefs_get_bool(prefs->pref)); | |
15818 | 130 break; |
15823 | 131 case PURPLE_PREF_INT: |
132 field = purple_request_field_int_new(prefs->pref, _(prefs->label), | |
133 purple_prefs_get_int(prefs->pref)); | |
15818 | 134 break; |
15823 | 135 case PURPLE_PREF_STRING: |
136 field = purple_request_field_string_new(prefs->pref, _(prefs->label), | |
137 purple_prefs_get_string(prefs->pref), FALSE); | |
15818 | 138 break; |
139 default: | |
140 break; | |
141 } | |
142 } | |
143 else | |
144 { | |
145 GList *list = prefs->lv(), *iter; | |
146 if (list) | |
15823 | 147 field = purple_request_field_list_new(prefs->pref, _(prefs->label)); |
15818 | 148 for (iter = list; iter; iter = iter->next) |
149 { | |
150 gboolean select = FALSE; | |
151 const char *data = iter->data; | |
152 int idata; | |
153 iter = iter->next; | |
154 switch (prefs->type) | |
155 { | |
15823 | 156 case PURPLE_PREF_BOOLEAN: |
15818 | 157 sscanf(iter->data, "%d", &idata); |
15823 | 158 if (purple_prefs_get_bool(prefs->pref) == idata) |
15818 | 159 select = TRUE; |
160 break; | |
15823 | 161 case PURPLE_PREF_INT: |
15818 | 162 sscanf(iter->data, "%d", &idata); |
15823 | 163 if (purple_prefs_get_int(prefs->pref) == idata) |
15818 | 164 select = TRUE; |
165 break; | |
15823 | 166 case PURPLE_PREF_STRING: |
167 if (strcmp(purple_prefs_get_string(prefs->pref), iter->data) == 0) | |
15818 | 168 select = TRUE; |
169 break; | |
170 default: | |
171 break; | |
172 } | |
15823 | 173 purple_request_field_list_add(field, data, iter->data); |
15818 | 174 if (select) |
15823 | 175 purple_request_field_list_add_selected(field, data); |
15818 | 176 } |
177 g_list_free(list); | |
178 } | |
179 return field; | |
180 } | |
181 | |
182 static Prefs blist[] = | |
183 { | |
16427
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
|
184 {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
|
185 {PURPLE_PREF_BOOLEAN, "/finch/blist/showoffline", N_("Show Offline Buddies"), NULL}, |
15823 | 186 {PURPLE_PREF_NONE, NULL, NULL, NULL} |
15818 | 187 }; |
188 | |
189 static Prefs convs[] = | |
190 { | |
16427
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
|
191 {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
|
192 {PURPLE_PREF_BOOLEAN, "/finch/conversations/notify_typing", N_("Notify buddies when you are typing"), NULL}, |
15823 | 193 {PURPLE_PREF_NONE, NULL, NULL, NULL} |
15818 | 194 }; |
195 | |
196 static Prefs logging[] = | |
197 { | |
16427
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
|
198 {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
|
199 {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
|
200 {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
|
201 {PURPLE_PREF_BOOLEAN, "/purple/logging/log_system", N_("Log status change events"), NULL}, |
15823 | 202 {PURPLE_PREF_NONE, NULL, NULL, NULL}, |
15818 | 203 }; |
204 | |
205 static Prefs idle[] = | |
206 { | |
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
|
207 {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
|
208 {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
|
209 {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
|
210 {PURPLE_PREF_INT, "/purple/savedstatus/idleaway", N_("Change status to"), get_status_titles}, |
15823 | 211 {PURPLE_PREF_NONE, NULL, NULL, NULL}, |
15818 | 212 }; |
213 | |
214 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
|
215 free_strings(void) |
15818 | 216 { |
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
|
217 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
|
218 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
|
219 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
|
220 pref_request.showing = FALSE; |
15818 | 221 } |
222 | |
223 static void | |
15823 | 224 save_cb(void *data, PurpleRequestFields *allfields) |
15818 | 225 { |
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
|
226 finch_request_save_in_prefs(data, allfields); |
15818 | 227 free_strings(); |
228 } | |
229 | |
230 static void | |
15823 | 231 add_pref_group(PurpleRequestFields *fields, const char *title, Prefs *prefs) |
15818 | 232 { |
15823 | 233 PurpleRequestField *field; |
234 PurpleRequestFieldGroup *group; | |
15818 | 235 int i; |
236 | |
15823 | 237 group = purple_request_field_group_new(title); |
238 purple_request_fields_add_group(fields, group); | |
15818 | 239 for (i = 0; prefs[i].pref; i++) |
240 { | |
241 field = get_pref_field(prefs + i); | |
242 if (field) | |
15823 | 243 purple_request_field_group_add_field(group, field); |
15818 | 244 } |
245 } | |
246 | |
247 void finch_prefs_show_all() | |
248 { | |
15823 | 249 PurpleRequestFields *fields; |
15818 | 250 |
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
|
251 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
|
252 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
|
253 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
|
254 } |
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
|
255 |
15823 | 256 fields = purple_request_fields_new(); |
15818 | 257 |
258 add_pref_group(fields, _("Buddy List"), blist); | |
259 add_pref_group(fields, _("Conversations"), convs); | |
260 add_pref_group(fields, _("Logging"), logging); | |
261 add_pref_group(fields, _("Idle"), idle); | |
262 | |
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
|
263 pref_request.showing = TRUE; |
21570
dccfd999ffe7
merge of '76c07fcb434a2a7aa289734bb221c171a376d73b'
Evan Schoenberg <evan.s@dreskin.net>
parents:
21244
diff
changeset
|
264 pref_request.window = purple_request_fields(NULL, _("Preferences"), NULL, NULL, fields, |
16442
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:
16427
diff
changeset
|
265 _("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:
16427
diff
changeset
|
266 NULL, NULL, NULL, |
21570
dccfd999ffe7
merge of '76c07fcb434a2a7aa289734bb221c171a376d73b'
Evan Schoenberg <evan.s@dreskin.net>
parents:
21244
diff
changeset
|
267 NULL); |
15818 | 268 } |
269 |