Mercurial > pidgin.yaz
annotate src/gtkprefs.h @ 10196:760e690a5f30
[gaim-migrate @ 11313]
A few steps closer to being able to set an oscar away message.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 16 Nov 2004 23:29:53 +0000 |
parents | db62420a53a2 |
children | 9d03dd6ccc9a |
rev | line source |
---|---|
5530 | 1 /** |
2 * @file gtkprefs.h GTK+ Preferences | |
3 * @ingroup gtkui | |
4 * | |
5 * gaim | |
6 * | |
8046 | 7 * Gaim is the legal property of its developers, whose names are too numerous |
8 * to list here. Please refer to the COPYRIGHT file distributed with this | |
9 * source distribution. | |
5530 | 10 * |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; either version 2 of the License, or | |
14 * (at your option) any later version. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU General Public License | |
22 * along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
24 * | |
25 */ | |
9713 | 26 #ifndef _GAIM_GTKPREFS_H_ |
27 #define _GAIM_GTKPREFS_H_ | |
28 | |
7976 | 29 #include "prefs.h" |
5530 | 30 |
31 /* XXX These should go. */ | |
32 extern GtkListStore *prefs_away_store; | |
33 extern GtkWidget *prefs_away_menu; | |
34 extern GtkWidget *pref_fg_picture; | |
35 extern GtkWidget *pref_bg_picture; | |
36 | |
37 /** | |
38 * Initializes all UI-specific preferences. | |
39 */ | |
40 void gaim_gtk_prefs_init(void); | |
41 | |
42 /** | |
43 * Shows the preferences dialog. | |
44 */ | |
45 void gaim_gtk_prefs_show(void); | |
46 | |
47 /** | |
48 * Initializes the default away menu. | |
49 * | |
50 * @todo This should be moved or renamed or something? | |
51 */ | |
52 void default_away_menu_init(GtkWidget *); | |
53 | |
54 void apply_font_dlg(GtkWidget *, GtkWidget *); | |
55 void apply_color_dlg(GtkWidget *, gpointer); | |
56 void destroy_colorsel(GtkWidget *, gpointer); | |
57 | |
7976 | 58 /** |
59 * Add a new checkbox for a boolean preference | |
60 * | |
61 * @param title The text to be displayed as the checkbox label | |
62 * @param key The key of the gaim bool pref that will be represented by the checkbox | |
63 * @param page The page to which the new checkbox will be added | |
64 */ | |
7987 | 65 GtkWidget *gaim_gtk_prefs_checkbox(const char *title, const char *key, |
66 GtkWidget *page); | |
7976 | 67 |
68 /** | |
69 * Add a new spin button representing an int preference | |
70 * | |
71 * @param page The page to which the spin button will be added | |
72 * @param title The text to be displayed as the spin button label | |
7987 | 73 * @param key The key of the int pref that will be represented by the spin button |
7976 | 74 * @param min The minimum value of the spin button |
75 * @param max The maximum value of the spin button | |
76 * @param sg If not NULL, the size group to which the spin button will be added | |
8238 | 77 * @return An hbox containing both the label and the spinner. Can be |
8735
92cbf9713795
[gaim-migrate @ 9490]
Christian Hammond <chipx86@chipx86.com>
parents:
8713
diff
changeset
|
78 * used to set the widgets to sensitive or insensitive based on the |
8238 | 79 * value of a checkbox. |
7976 | 80 */ |
7987 | 81 GtkWidget *gaim_gtk_prefs_labeled_spin_button(GtkWidget *page, |
82 const gchar *title, char *key, int min, int max, GtkSizeGroup *sg); | |
7976 | 83 |
84 /** | |
9422 | 85 * Add a new entry representing a string preference |
86 * | |
87 * @param page The page to which the entry will be added | |
88 * @param title The text to be displayed as the entry label | |
89 * @param key The key of the string pref that will be represented by the entry | |
90 * @param sg If not NULL, the size group to which the entry will be added | |
91 * | |
92 * @return An hbox containing both the label and the entry. Can be used to set | |
93 * the widgets to sensitive or insensitive based on the value of a | |
94 * checkbox. | |
95 */ | |
96 GtkWidget *gaim_gtk_prefs_labeled_entry(GtkWidget *page, const gchar *title, | |
97 char *key, GtkSizeGroup *sg); | |
98 | |
99 /** | |
7976 | 100 * Add a new dropdown representing a preference of the specified type |
101 * | |
7978 | 102 * @param page The page to which the dropdown will be added |
103 * @param title The text to be displayed as the dropdown label | |
7976 | 104 * @param type The type of preference to be stored in the generated dropdown |
7987 | 105 * @param key The key of the pref that will be represented by the dropdown |
8713 | 106 * @param ... The choices to be added to the dropdown, choices should be |
107 * paired as label/value | |
7976 | 108 */ |
7987 | 109 GtkWidget *gaim_gtk_prefs_dropdown(GtkWidget *page, const gchar *title, |
110 GaimPrefType type, const char *key, ...); | |
7976 | 111 |
112 /** | |
113 * Add a new dropdown representing a preference of the specified type | |
114 * | |
7978 | 115 * @param page The page to which the dropdown will be added |
116 * @param title The text to be displayed as the dropdown label | |
7987 | 117 * @param type The type of preference to be stored in the dropdown |
118 * @param key The key of the pref that will be represented by the dropdown | |
8713 | 119 * @param menuitems The choices to be added to the dropdown, choices should |
120 * be paired as label/value | |
7976 | 121 */ |
7987 | 122 GtkWidget *gaim_gtk_prefs_dropdown_from_list(GtkWidget *page, |
123 const gchar * title, GaimPrefType type, const char *key, | |
124 GList *menuitems); | |
7976 | 125 |
8905 | 126 /** |
127 * Rename legacy prefs and delete some that no longer exist. | |
128 */ | |
129 void gaim_gtk_prefs_update_old(); | |
130 | |
9713 | 131 #endif /* _GAIM_GTKPREFS_H_ */ |