Thu, 28 Jun 2007 18:52:26 +0000
If the action-windows are already there, then bring them to front when
requested.
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
1 | /** |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
2 | * @file gntprefs.c GNT Preferences API |
|
16255
fa61ee19f526
Rename the Doxygen group from gntui to finch and define the finch group
Richard Laager <rlaager@pidgin.im>
parents:
15931
diff
changeset
|
3 | * @ingroup finch |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
4 | * |
|
15931
716b5fac1895
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@pidgin.im>
parents:
15906
diff
changeset
|
5 | * finch |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
6 | * |
|
15931
716b5fac1895
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@pidgin.im>
parents:
15906
diff
changeset
|
7 | * Finch is the legal property of its developers, whose names are too numerous |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
8 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
9 | * source distribution. |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
10 | * |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
11 | * This program is free software; you can redistribute it and/or modify |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
12 | * it under the terms of the GNU General Public License as published by |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
13 | * the Free Software Foundation; either version 2 of the License, or |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
14 | * (at your option) any later version. |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
15 | * |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
16 | * This program is distributed in the hope that it will be useful, |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
19 | * GNU General Public License for more details. |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
20 | * |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
21 | * You should have received a copy of the GNU General Public License |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
22 | * along with this program; if not, write to the Free Software |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14461
diff
changeset
|
24 | */ |
|
18273
e61c53184c52
#include reorganizations to allow compiling with glib < 2.8 using the
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18190
diff
changeset
|
25 | #include "finch.h" |
|
e61c53184c52
#include reorganizations to allow compiling with glib < 2.8 using the
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18190
diff
changeset
|
26 | |
|
14045
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
27 | #include <prefs.h> |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
28 | #include <savedstatuses.h> |
|
14045
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
29 | |
|
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
30 | #include "gntprefs.h" |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
31 | #include "gntrequest.h" |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
32 | |
|
18400
549820f4725c
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18393
diff
changeset
|
33 | #include "gnt.h" |
|
549820f4725c
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18393
diff
changeset
|
34 | #include "gntwidget.h" |
|
549820f4725c
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18393
diff
changeset
|
35 | |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
36 | #include <string.h> |
|
14045
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
37 | |
|
18393
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
38 | static struct { |
|
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
39 | GList *freestrings; /* strings to be freed when the pref-window is closed */ |
|
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
40 | gboolean showing; |
|
18400
549820f4725c
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18393
diff
changeset
|
41 | GntWidget *window; |
|
18393
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
42 | } pref_request; |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
43 | |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15820
diff
changeset
|
44 | void finch_prefs_init() |
|
14045
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
45 | { |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
46 | purple_prefs_add_none("/finch"); |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
47 | |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
48 | purple_prefs_add_none("/finch/plugins"); |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
49 | purple_prefs_add_path_list("/finch/plugins/loaded", NULL); |
|
16999
2d66b5256b1b
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 <sadrul@pidgin.im>
parents:
16629
diff
changeset
|
50 | purple_prefs_add_path_list("/finch/plugins/seen", NULL); |
|
14045
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
51 | |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
52 | purple_prefs_add_none("/finch/conversations"); |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
53 | purple_prefs_add_bool("/finch/conversations/timestamps", TRUE); |
|
16629
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
54 | purple_prefs_add_bool("/finch/conversations/notify_typing", FALSE); |
|
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
55 | } |
|
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
56 | |
|
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
57 | void finch_prefs_update_old() |
|
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
58 | { |
|
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
59 | const char *str = NULL; |
|
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
60 | |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
61 | purple_prefs_rename("/gaim/gnt", "/finch"); |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
62 | purple_prefs_rename("/purple/gnt", "/finch"); |
|
16629
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
63 | |
|
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
64 | if ((str = purple_prefs_get_string("/purple/away/idle_reporting")) && |
|
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
65 | strcmp(str, "gaim") == 0) |
|
781a662d1fc3
Pref migration for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16490
diff
changeset
|
66 | purple_prefs_set_string("/purple/away/idle_reporting", "purple"); |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
67 | } |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
68 | |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
69 | typedef struct |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
70 | { |
| 15884 | 71 | PurplePrefType type; |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
72 | const char *pref; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
73 | const char *label; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
74 | GList *(*lv)(); /* If the value is to be selected from a number of choices */ |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
75 | } Prefs; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
76 | |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
77 | static GList * |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
78 | get_log_options() |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
79 | { |
| 15884 | 80 | return purple_log_logger_get_options(); |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
81 | } |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
82 | |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
83 | static GList * |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
84 | get_idle_options() |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
85 | { |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
86 | GList *list = NULL; |
|
17227
09bc351bfafa
Fix a compiler warning.
Richard Laager <rlaager@pidgin.im>
parents:
17207
diff
changeset
|
87 | list = g_list_append(list, (char *)_("Based on keyboard use")); |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
88 | list = g_list_append(list, "system"); |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
89 | list = g_list_append(list, (char*)_("From last sent message")); |
| 15884 | 90 | list = g_list_append(list, "purple"); |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
91 | list = g_list_append(list, (char*)_("Never")); |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
92 | list = g_list_append(list, "never"); |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
93 | return list; |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
94 | } |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
95 | |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
96 | static GList * |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
97 | get_status_titles() |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
98 | { |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
99 | GList *list = NULL; |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
17227
diff
changeset
|
100 | GList *iter; |
| 15884 | 101 | for (iter = purple_savedstatuses_get_all(); iter; iter = iter->next) { |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
102 | char *str; |
| 15884 | 103 | if (purple_savedstatus_is_transient(iter->data)) |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
104 | continue; |
| 15884 | 105 | str = g_strdup_printf("%ld", purple_savedstatus_get_creation_time(iter->data)); |
| 106 | list = g_list_append(list, (char*)purple_savedstatus_get_title(iter->data)); | |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
107 | list = g_list_append(list, str); |
|
18393
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
108 | pref_request.freestrings = g_list_prepend(pref_request.freestrings, str); |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
109 | } |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
110 | return list; |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
111 | } |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
112 | |
| 15884 | 113 | static PurpleRequestField * |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
114 | get_pref_field(Prefs *prefs) |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
115 | { |
| 15884 | 116 | PurpleRequestField *field = NULL; |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
117 | |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
118 | if (prefs->lv == NULL) |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
119 | { |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
120 | switch (prefs->type) |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
121 | { |
| 15884 | 122 | case PURPLE_PREF_BOOLEAN: |
| 123 | field = purple_request_field_bool_new(prefs->pref, _(prefs->label), | |
| 124 | purple_prefs_get_bool(prefs->pref)); | |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
125 | break; |
| 15884 | 126 | case PURPLE_PREF_INT: |
| 127 | field = purple_request_field_int_new(prefs->pref, _(prefs->label), | |
| 128 | purple_prefs_get_int(prefs->pref)); | |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
129 | break; |
| 15884 | 130 | case PURPLE_PREF_STRING: |
| 131 | field = purple_request_field_string_new(prefs->pref, _(prefs->label), | |
| 132 | purple_prefs_get_string(prefs->pref), FALSE); | |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
133 | break; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
134 | default: |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
135 | break; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
136 | } |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
137 | } |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
138 | else |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
139 | { |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
140 | GList *list = prefs->lv(), *iter; |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
141 | if (list) |
| 15884 | 142 | field = purple_request_field_list_new(prefs->pref, _(prefs->label)); |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
143 | for (iter = list; iter; iter = iter->next) |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
144 | { |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
145 | gboolean select = FALSE; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
146 | const char *data = iter->data; |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
147 | int idata; |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
148 | iter = iter->next; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
149 | switch (prefs->type) |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
150 | { |
| 15884 | 151 | case PURPLE_PREF_BOOLEAN: |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
152 | sscanf(iter->data, "%d", &idata); |
| 15884 | 153 | if (purple_prefs_get_bool(prefs->pref) == idata) |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
154 | select = TRUE; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
155 | break; |
| 15884 | 156 | case PURPLE_PREF_INT: |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
157 | sscanf(iter->data, "%d", &idata); |
| 15884 | 158 | if (purple_prefs_get_int(prefs->pref) == idata) |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
159 | select = TRUE; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
160 | break; |
| 15884 | 161 | case PURPLE_PREF_STRING: |
| 162 | if (strcmp(purple_prefs_get_string(prefs->pref), iter->data) == 0) | |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
163 | select = TRUE; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
164 | break; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
165 | default: |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
166 | break; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
167 | } |
| 15884 | 168 | purple_request_field_list_add(field, data, iter->data); |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
169 | if (select) |
| 15884 | 170 | purple_request_field_list_add_selected(field, data); |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
171 | } |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
172 | g_list_free(list); |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
173 | } |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
174 | return field; |
|
14045
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
175 | } |
|
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
176 | |
|
14127
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
177 | static Prefs blist[] = |
|
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
178 | { |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
179 | {PURPLE_PREF_BOOLEAN, "/finch/blist/idletime", N_("Show Idle Time"), NULL}, |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
180 | {PURPLE_PREF_BOOLEAN, "/finch/blist/showoffline", N_("Show Offline Buddies"), NULL}, |
| 15884 | 181 | {PURPLE_PREF_NONE, NULL, NULL, NULL} |
|
14127
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
182 | }; |
|
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
183 | |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
184 | static Prefs convs[] = |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
185 | { |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
186 | {PURPLE_PREF_BOOLEAN, "/finch/conversations/timestamps", N_("Show Timestamps"), NULL}, |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
187 | {PURPLE_PREF_BOOLEAN, "/finch/conversations/notify_typing", N_("Notify buddies when you are typing"), NULL}, |
| 15884 | 188 | {PURPLE_PREF_NONE, NULL, NULL, NULL} |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
189 | }; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
190 | |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
191 | static Prefs logging[] = |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
192 | { |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
193 | {PURPLE_PREF_STRING, "/purple/logging/format", N_("Log format"), get_log_options}, |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
194 | {PURPLE_PREF_BOOLEAN, "/purple/logging/log_ims", N_("Log IMs"), NULL}, |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
195 | {PURPLE_PREF_BOOLEAN, "/purple/logging/log_chats", N_("Log chats"), NULL}, |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16383
diff
changeset
|
196 | {PURPLE_PREF_BOOLEAN, "/purple/logging/log_system", N_("Log status change events"), NULL}, |
| 15884 | 197 | {PURPLE_PREF_NONE, NULL, NULL, NULL}, |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
198 | }; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
199 | |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
200 | static Prefs idle[] = |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
201 | { |
|
18393
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
202 | {PURPLE_PREF_STRING, "/purple/away/idle_reporting", N_("Report Idle time"), get_idle_options}, |
|
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
203 | {PURPLE_PREF_BOOLEAN, "/purple/away/away_when_idle", N_("Change status when idle"), NULL}, |
|
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
204 | {PURPLE_PREF_INT, "/purple/away/mins_before_away", N_("Minutes before changing status"), NULL}, |
|
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
205 | {PURPLE_PREF_INT, "/purple/savedstatus/idleaway", N_("Change status to"), get_status_titles}, |
| 15884 | 206 | {PURPLE_PREF_NONE, NULL, NULL, NULL}, |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
207 | }; |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
208 | |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
209 | static void |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
210 | free_strings() |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
211 | { |
|
18393
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
212 | g_list_foreach(pref_request.freestrings, (GFunc)g_free, NULL); |
|
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
213 | g_list_free(pref_request.freestrings); |
|
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
214 | pref_request.freestrings = NULL; |
|
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
215 | pref_request.showing = FALSE; |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
216 | } |
|
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
217 | |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
218 | static void |
| 15884 | 219 | save_cb(void *data, PurpleRequestFields *allfields) |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
220 | { |
|
16383
af8d75120347
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 <sadrul@pidgin.im>
parents:
16255
diff
changeset
|
221 | finch_request_save_in_prefs(data, allfields); |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
222 | free_strings(); |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
223 | } |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
224 | |
|
14127
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
225 | static void |
| 15884 | 226 | add_pref_group(PurpleRequestFields *fields, const char *title, Prefs *prefs) |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
227 | { |
| 15884 | 228 | PurpleRequestField *field; |
| 229 | PurpleRequestFieldGroup *group; | |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
230 | int i; |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
231 | |
| 15884 | 232 | group = purple_request_field_group_new(title); |
| 233 | purple_request_fields_add_group(fields, group); | |
|
14127
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
234 | for (i = 0; prefs[i].pref; i++) |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
235 | { |
|
14127
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
236 | field = get_pref_field(prefs + i); |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
237 | if (field) |
| 15884 | 238 | purple_request_field_group_add_field(group, field); |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
239 | } |
|
14127
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
240 | } |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
241 | |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
15820
diff
changeset
|
242 | void finch_prefs_show_all() |
|
14127
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
243 | { |
| 15884 | 244 | PurpleRequestFields *fields; |
|
14127
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
245 | |
|
18400
549820f4725c
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18393
diff
changeset
|
246 | if (pref_request.showing) { |
|
549820f4725c
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18393
diff
changeset
|
247 | gnt_window_present(pref_request.window); |
|
18393
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
248 | return; |
|
18400
549820f4725c
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18393
diff
changeset
|
249 | } |
|
18393
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
250 | |
| 15884 | 251 | fields = purple_request_fields_new(); |
|
14127
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
252 | |
|
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
253 | add_pref_group(fields, _("Buddy List"), blist); |
|
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
254 | add_pref_group(fields, _("Conversations"), convs); |
|
6c79d410dd9c
[gaim-migrate @ 16686]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14121
diff
changeset
|
255 | add_pref_group(fields, _("Logging"), logging); |
|
15820
28b339ab3f4a
Preference for idleness. Someone was looking for this thing.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15387
diff
changeset
|
256 | add_pref_group(fields, _("Idle"), idle); |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
257 | |
|
18393
215866b02ccb
Mark some string for translation, and show only one preference window at a
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18273
diff
changeset
|
258 | pref_request.showing = TRUE; |
|
18400
549820f4725c
If the action-windows are already there, then bring them to front when
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18393
diff
changeset
|
259 | pref_request.window = purple_request_fields(NULL, _("Preferences"), NULL, NULL, fields, |
|
16490
68c22924d66b
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 <evands@pidgin.im>
parents:
16478
diff
changeset
|
260 | _("Save"), G_CALLBACK(save_cb), _("Cancel"), free_strings, |
|
68c22924d66b
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 <evands@pidgin.im>
parents:
16478
diff
changeset
|
261 | NULL, NULL, NULL, |
|
68c22924d66b
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 <evands@pidgin.im>
parents:
16478
diff
changeset
|
262 | NULL); |
|
14121
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
263 | } |
|
3d8804b82150
[gaim-migrate @ 16674]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14045
diff
changeset
|
264 |