Eanble plugin support.
[lxde/lxappearance.git] / src / lxappearance.h
1 /*
2 * lxappearance.h
3 *
4 * Copyright 2010 PCMan <pcman.tw@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301, USA.
20 */
21
22 #ifndef _LXAPPEARANCE_H_
23 #define _LXAPPEARANCE_H_
24
25 #include <gtk/gtk.h>
26
27 typedef struct _LXAppearance LXAppearance;
28 struct _LXAppearance
29 {
30 GtkWidget* dlg;
31 GtkWidget* notebook;
32
33 /* gtk theme */
34 GtkWidget* widget_theme_view;
35 GtkListStore* widget_theme_store;
36 GtkWidget* default_font_btn;
37
38 /* color scheme */
39 GtkWidget* color_table;
40 GtkWidget* custom_colors;
41 GtkWidget* no_custom_colors;
42 GHashTable* color_scheme_hash; /* the custom color scheme set by the user */
43 GHashTable* default_color_scheme_hash; /* default colors of current gtk theme */
44 gboolean color_scheme_supported; /* if color scheme is supported by current gtk theme */
45 /* color buttons in color scheme page. */
46 GtkWidget* color_btns[8]; /* FIXME: this value might be changed in the future */
47
48 /* icon theme */
49 GtkWidget* icon_theme_view;
50 GtkListStore* icon_theme_store;
51 GtkWidget* icon_theme_remove_btn;
52
53 /* cursor theme */
54 GtkWidget* cursor_theme_view;
55 GtkWidget* cursor_demo_view;
56 GtkListStore* cursor_theme_store;
57 GtkWidget* cursor_size_range;
58 GtkWidget* cursor_theme_remove_btn;
59
60 GSList* icon_themes; /* a list of IconTheme struct representing all icon and cursor themes */
61
62 /* toolbar style and icon size */
63 GtkWidget* tb_style_combo;
64 GtkWidget* tb_icon_size_combo;
65
66 GtkWidget* button_images_check;
67 GtkWidget* menu_images_check;
68
69 /* the page for window manager plugins */
70 GtkWidget* wm_page;
71
72 char* widget_theme;
73 char* default_font;
74 char* icon_theme;
75 char* cursor_theme;
76 int cursor_theme_size;
77 char* color_scheme;
78 int toolbar_style;
79 int toolbar_icon_size;
80
81 gboolean button_images;
82 gboolean menu_images;
83
84 #if GTK_CHECK_VERSION(2, 14, 0)
85 GtkWidget* event_sound_check;
86 GtkWidget* input_feedback_check;
87 gboolean enable_event_sound;
88 gboolean enable_input_feedback;
89 #endif
90
91 gboolean changed;
92 gboolean use_lxsession;
93 };
94
95 extern LXAppearance app;
96
97 void lxappearance_changed();
98
99 #endif