5530
|
1 /**
|
|
2 * @file gtkprefs.h GTK+ Preferences
|
|
3 * @ingroup gtkui
|
|
4 *
|
|
5 * gaim
|
|
6 *
|
|
7 * Copyright (C) 1998-2002, Mark Spencer <markster@marko.net>
|
|
8 *
|
|
9 * This program is free software; you can redistribute it and/or modify
|
|
10 * it under the terms of the GNU General Public License as published by
|
|
11 * the Free Software Foundation; either version 2 of the License, or
|
|
12 * (at your option) any later version.
|
|
13 *
|
|
14 * This program is distributed in the hope that it will be useful,
|
|
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 * GNU General Public License for more details.
|
|
18 *
|
|
19 * You should have received a copy of the GNU General Public License
|
|
20 * along with this program; if not, write to the Free Software
|
|
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
22 *
|
|
23 */
|
|
24 #ifndef _GAIM_GTK_PREFS_H_
|
|
25 #define _GAIM_GTK_PREFS_H_
|
7976
|
26 #include "prefs.h"
|
5530
|
27
|
|
28 /* XXX These should go. */
|
|
29 extern GtkListStore *prefs_away_store;
|
|
30 extern GtkWidget *prefs_away_menu;
|
|
31 extern GtkWidget *pref_fg_picture;
|
|
32 extern GtkWidget *pref_bg_picture;
|
|
33
|
|
34 /**
|
|
35 * Initializes all UI-specific preferences.
|
|
36 */
|
|
37 void gaim_gtk_prefs_init(void);
|
|
38
|
|
39 /**
|
|
40 * Shows the preferences dialog.
|
|
41 */
|
|
42 void gaim_gtk_prefs_show(void);
|
|
43
|
|
44 /**
|
|
45 * Initializes the default away menu.
|
|
46 *
|
|
47 * @todo This should be moved or renamed or something?
|
|
48 */
|
|
49 void default_away_menu_init(GtkWidget *);
|
|
50
|
|
51 void apply_font_dlg(GtkWidget *, GtkWidget *);
|
|
52 void apply_color_dlg(GtkWidget *, gpointer);
|
|
53 void destroy_colorsel(GtkWidget *, gpointer);
|
|
54
|
7976
|
55 /**
|
|
56 * Add a new checkbox for a boolean preference
|
|
57 *
|
|
58 * @param title The text to be displayed as the checkbox label
|
|
59 * @param key The key of the gaim bool pref that will be represented by the checkbox
|
|
60 * @param page The page to which the new checkbox will be added
|
|
61 */
|
7987
|
62 GtkWidget *gaim_gtk_prefs_checkbox(const char *title, const char *key,
|
|
63 GtkWidget *page);
|
7976
|
64
|
|
65 /**
|
|
66 * Add a new spin button representing an int preference
|
|
67 *
|
|
68 * @param page The page to which the spin button will be added
|
|
69 * @param title The text to be displayed as the spin button label
|
7987
|
70 * @param key The key of the int pref that will be represented by the spin button
|
7976
|
71 * @param min The minimum value of the spin button
|
|
72 * @param max The maximum value of the spin button
|
|
73 * @param sg If not NULL, the size group to which the spin button will be added
|
|
74 */
|
7987
|
75 GtkWidget *gaim_gtk_prefs_labeled_spin_button(GtkWidget *page,
|
|
76 const gchar *title, char *key, int min, int max, GtkSizeGroup *sg);
|
7976
|
77
|
|
78 /**
|
|
79 * Add a new dropdown representing a preference of the specified type
|
|
80 *
|
7978
|
81 * @param page The page to which the dropdown will be added
|
|
82 * @param title The text to be displayed as the dropdown label
|
7976
|
83 * @param type The type of preference to be stored in the generated dropdown
|
7987
|
84 * @param key The key of the pref that will be represented by the dropdown
|
7976
|
85 * @param ... The choices to be added to the dropdown
|
|
86 */
|
7987
|
87 GtkWidget *gaim_gtk_prefs_dropdown(GtkWidget *page, const gchar *title,
|
|
88 GaimPrefType type, const char *key, ...);
|
7976
|
89
|
|
90 /**
|
|
91 * Add a new dropdown representing a preference of the specified type
|
|
92 *
|
7978
|
93 * @param page The page to which the dropdown will be added
|
|
94 * @param title The text to be displayed as the dropdown label
|
7987
|
95 * @param type The type of preference to be stored in the dropdown
|
|
96 * @param key The key of the pref that will be represented by the dropdown
|
7976
|
97 * @param menuitems The choices to be added to the dropdown
|
|
98 */
|
7987
|
99 GtkWidget *gaim_gtk_prefs_dropdown_from_list(GtkWidget *page,
|
|
100 const gchar * title, GaimPrefType type, const char *key,
|
|
101 GList *menuitems);
|
7976
|
102
|
5530
|
103 #endif /* _GAIM_GTK_PREFS_H_ */
|