Mercurial > pidgin.yaz
annotate src/gtkprefs.h @ 8740:61a090413b93
[gaim-migrate @ 9495]
This removes a warning compile-time, and adds a function that plugins can
call to change the conversation zoom factor. Credit for this and previous
works go to Tim Ringenbach, Kevin Stange, and Daniel Atallah, who have all
done a really nice job this release and the past on the gtkimhtml code.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 21 Apr 2004 06:13:49 +0000 |
parents | 92cbf9713795 |
children | 7a67c459ab8f |
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 */ | |
26 #ifndef _GAIM_GTK_PREFS_H_ | |
27 #define _GAIM_GTK_PREFS_H_ | |
7976 | 28 #include "prefs.h" |
5530 | 29 |
30 /* XXX These should go. */ | |
31 extern GtkListStore *prefs_away_store; | |
32 extern GtkWidget *prefs_away_menu; | |
33 extern GtkWidget *pref_fg_picture; | |
34 extern GtkWidget *pref_bg_picture; | |
35 | |
36 /** | |
37 * Initializes all UI-specific preferences. | |
38 */ | |
39 void gaim_gtk_prefs_init(void); | |
40 | |
41 /** | |
42 * Shows the preferences dialog. | |
43 */ | |
44 void gaim_gtk_prefs_show(void); | |
45 | |
46 /** | |
47 * Initializes the default away menu. | |
48 * | |
49 * @todo This should be moved or renamed or something? | |
50 */ | |
51 void default_away_menu_init(GtkWidget *); | |
52 | |
53 void apply_font_dlg(GtkWidget *, GtkWidget *); | |
54 void apply_color_dlg(GtkWidget *, gpointer); | |
55 void destroy_colorsel(GtkWidget *, gpointer); | |
56 | |
7976 | 57 /** |
58 * Add a new checkbox for a boolean preference | |
59 * | |
60 * @param title The text to be displayed as the checkbox label | |
61 * @param key The key of the gaim bool pref that will be represented by the checkbox | |
62 * @param page The page to which the new checkbox will be added | |
63 */ | |
7987 | 64 GtkWidget *gaim_gtk_prefs_checkbox(const char *title, const char *key, |
65 GtkWidget *page); | |
7976 | 66 |
67 /** | |
68 * Add a new spin button representing an int preference | |
69 * | |
70 * @param page The page to which the spin button will be added | |
71 * @param title The text to be displayed as the spin button label | |
7987 | 72 * @param key The key of the int pref that will be represented by the spin button |
7976 | 73 * @param min The minimum value of the spin button |
74 * @param max The maximum value of the spin button | |
75 * @param sg If not NULL, the size group to which the spin button will be added | |
8238 | 76 * @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
|
77 * used to set the widgets to sensitive or insensitive based on the |
8238 | 78 * value of a checkbox. |
7976 | 79 */ |
7987 | 80 GtkWidget *gaim_gtk_prefs_labeled_spin_button(GtkWidget *page, |
81 const gchar *title, char *key, int min, int max, GtkSizeGroup *sg); | |
7976 | 82 |
83 /** | |
84 * Add a new dropdown representing a preference of the specified type | |
85 * | |
7978 | 86 * @param page The page to which the dropdown will be added |
87 * @param title The text to be displayed as the dropdown label | |
7976 | 88 * @param type The type of preference to be stored in the generated dropdown |
7987 | 89 * @param key The key of the pref that will be represented by the dropdown |
8713 | 90 * @param ... The choices to be added to the dropdown, choices should be |
91 * paired as label/value | |
7976 | 92 */ |
7987 | 93 GtkWidget *gaim_gtk_prefs_dropdown(GtkWidget *page, const gchar *title, |
94 GaimPrefType type, const char *key, ...); | |
7976 | 95 |
96 /** | |
97 * Add a new dropdown representing a preference of the specified type | |
98 * | |
7978 | 99 * @param page The page to which the dropdown will be added |
100 * @param title The text to be displayed as the dropdown label | |
7987 | 101 * @param type The type of preference to be stored in the dropdown |
102 * @param key The key of the pref that will be represented by the dropdown | |
8713 | 103 * @param menuitems The choices to be added to the dropdown, choices should |
104 * be paired as label/value | |
7976 | 105 */ |
7987 | 106 GtkWidget *gaim_gtk_prefs_dropdown_from_list(GtkWidget *page, |
107 const gchar * title, GaimPrefType type, const char *key, | |
108 GList *menuitems); | |
7976 | 109 |
8705 | 110 /** |
111 * Rename legacy prefs | |
112 */ | |
113 void gaim_gtk_prefs_rename_old(); | |
114 | |
5530 | 115 #endif /* _GAIM_GTK_PREFS_H_ */ |