Eanble plugin support.
[lxde/lxappearance.git] / src / lxappearance.h
CommitLineData
15c155a6 1/*
3a7d812e 2 * lxappearance.h
15c155a6
HJYP
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
3a7d812e
HJYP
22#ifndef _LXAPPEARANCE_H_
23#define _LXAPPEARANCE_H_
15c155a6
HJYP
24
25#include <gtk/gtk.h>
26
27typedef struct _LXAppearance LXAppearance;
28struct _LXAppearance
29{
30 GtkWidget* dlg;
31 GtkWidget* notebook;
32
c92e9c11 33 /* gtk theme */
15c155a6
HJYP
34 GtkWidget* widget_theme_view;
35 GtkListStore* widget_theme_store;
ae63f687 36 GtkWidget* default_font_btn;
15c155a6 37
c92e9c11
HJYP
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. */
71ce58a7
HJYP
46 GtkWidget* color_btns[8]; /* FIXME: this value might be changed in the future */
47
c92e9c11 48 /* icon theme */
15c155a6
HJYP
49 GtkWidget* icon_theme_view;
50 GtkListStore* icon_theme_store;
2471c16d 51 GtkWidget* icon_theme_remove_btn;
15c155a6 52
c92e9c11 53 /* cursor theme */
15c155a6 54 GtkWidget* cursor_theme_view;
4e409096 55 GtkWidget* cursor_demo_view;
15c155a6 56 GtkListStore* cursor_theme_store;
4e409096 57 GtkWidget* cursor_size_range;
2471c16d 58 GtkWidget* cursor_theme_remove_btn;
15c155a6 59
c92e9c11 60 GSList* icon_themes; /* a list of IconTheme struct representing all icon and cursor themes */
15c155a6 61
c92e9c11 62 /* toolbar style and icon size */
e597424e
HJYP
63 GtkWidget* tb_style_combo;
64 GtkWidget* tb_icon_size_combo;
65
6b54b65a
HJYP
66 GtkWidget* button_images_check;
67 GtkWidget* menu_images_check;
68
756f0a66
HJYP
69 /* the page for window manager plugins */
70 GtkWidget* wm_page;
71
15c155a6 72 char* widget_theme;
ae63f687 73 char* default_font;
15c155a6
HJYP
74 char* icon_theme;
75 char* cursor_theme;
4e409096 76 int cursor_theme_size;
15c155a6 77 char* color_scheme;
15c155a6 78 int toolbar_style;
e597424e 79 int toolbar_icon_size;
9bb12c12 80
6b54b65a
HJYP
81 gboolean button_images;
82 gboolean menu_images;
83
9bb12c12
HJYP
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
15c155a6
HJYP
91 gboolean changed;
92 gboolean use_lxsession;
93};
94
95extern LXAppearance app;
96
97void lxappearance_changed();
98
99#endif