source: trunk/src/gui/styles/gtksymbols_p.h@ 234

Last change on this file since 234 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 19.9 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5**
6** This file is part of the QtGui module of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL$
9** Commercial Usage
10** Licensees holding valid Qt Commercial licenses may use this file in
11** accordance with the Qt Commercial License Agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and Nokia.
14**
15** GNU Lesser General Public License Usage
16** Alternatively, this file may be used under the terms of the GNU Lesser
17** General Public License version 2.1 as published by the Free Software
18** Foundation and appearing in the file LICENSE.LGPL included in the
19** packaging of this file. Please review the following information to
20** ensure the GNU Lesser General Public License version 2.1 requirements
21** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22**
23** In addition, as a special exception, Nokia gives you certain
24** additional rights. These rights are described in the Nokia Qt LGPL
25** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26** package.
27**
28** GNU General Public License Usage
29** Alternatively, this file may be used under the terms of the GNU
30** General Public License version 3.0 as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL included in the
32** packaging of this file. Please review the following information to
33** ensure the GNU General Public License version 3.0 requirements will be
34** met: http://www.gnu.org/copyleft/gpl.html.
35**
36** If you are unsure which license is appropriate for your use, please
37** contact the sales department at [email protected].
38** $QT_END_LICENSE$
39**
40****************************************************************************/
41
42#ifndef GTKSYMBOLS_H
43#define GTKSYMBOLS_H
44
45//
46// W A R N I N G
47// -------------
48//
49// This file is not part of the Qt API. It exists purely as an
50// implementation detail. This header file may change from version to
51// version without notice, or even be removed.
52//
53// We mean it.
54//
55
56#include <QtCore/qglobal.h>
57#if !defined(QT_NO_STYLE_GTK)
58
59#undef signals // Collides with GTK stymbols
60#include <gtk/gtk.h>
61#include <QtCore/QLibrary>
62#include <QtGui/QFont>
63#include <QtGui/QFileDialog>
64typedef unsigned long XID;
65
66#undef GTK_OBJECT_FLAGS
67#define GTK_OBJECT_FLAGS(obj)(((GtkObject*)(obj))->flags)
68#define Q_GTK_TYPE_WIDGET QGtk::gtk_widget_get_type()
69#define Q_GTK_IS_WIDGET(widget) widget && GTK_CHECK_TYPE ((widget), Q_GTK_TYPE_WIDGET)
70#define Q_GTK_TYPE_WINDOW QGtk::gtk_window_get_type()
71#define Q_GTK_TYPE_CONTAINER QGtk::gtk_container_get_type()
72
73#define QLS(x) QLatin1String(x)
74
75class GConf;
76class GConfClient;
77
78typedef GConfClient* (*Ptr_gconf_client_get_default)();
79typedef char* (*Ptr_gconf_client_get_string)(GConfClient*, const char*, GError **);
80
81typedef void (*Ptr_gtk_init)(int *, char ***);
82typedef GtkWidget* (*Ptr_gtk_window_new) (GtkWindowType);
83typedef GtkStyle* (*Ptr_gtk_style_attach)(GtkStyle *, GdkWindow *);
84typedef void (*Ptr_gtk_widget_destroy) (GtkWidget *);
85typedef void (*Ptr_gtk_widget_realize) (GtkWidget *);
86typedef void (*Ptr_gtk_widget_set_default_direction) (GtkTextDirection);
87typedef void (*Ptr_gtk_widget_modify_color)(GtkWidget *widget, GtkStateType state, const GdkColor *color);
88typedef GtkWidget* (*Ptr_gtk_arrow_new)(GtkArrowType, GtkShadowType);
89typedef GtkWidget* (*Ptr_gtk_menu_item_new)(void);
90typedef GtkWidget* (*Ptr_gtk_separator_menu_item_new)(void);
91typedef GtkWidget* (*Ptr_gtk_check_menu_item_new)(void);
92typedef GtkWidget* (*Ptr_gtk_menu_bar_new)(void);
93typedef GtkWidget* (*Ptr_gtk_menu_new)(void);
94typedef GtkWidget* (*Ptr_gtk_combo_box_entry_new)(void);
95typedef GtkWidget* (*Ptr_gtk_toolbar_new)(void);
96typedef GtkWidget* (*Ptr_gtk_spin_button_new)(GtkAdjustment*, double, int);
97typedef GtkWidget* (*Ptr_gtk_button_new)(void);
98typedef GtkWidget* (*Ptr_gtk_hbutton_box_new)(void);
99typedef GtkWidget* (*Ptr_gtk_check_button_new)(void);
100typedef GtkWidget* (*Ptr_gtk_radio_button_new)(GSList *);
101typedef GtkWidget* (*Ptr_gtk_notebook_new)(void);
102typedef GtkWidget* (*Ptr_gtk_progress_bar_new)(void);
103typedef GtkWidget* (*Ptr_gtk_hscale_new)(GtkAdjustment*);
104typedef GtkWidget* (*Ptr_gtk_vscale_new)(GtkAdjustment*);
105typedef GtkWidget* (*Ptr_gtk_hscrollbar_new)(GtkAdjustment*);
106typedef GtkWidget* (*Ptr_gtk_vscrollbar_new)(GtkAdjustment*);
107typedef GtkWidget* (*Ptr_gtk_scrolled_window_new)(GtkAdjustment*, GtkAdjustment*);
108typedef gchar* (*Ptr_gtk_check_version)(guint, guint, guint);
109typedef GtkToolItem* (*Ptr_gtk_separator_tool_item_new) (void);
110typedef GtkWidget* (*Ptr_gtk_entry_new)(void);
111typedef GtkWidget* (*Ptr_gtk_tree_view_new)(void);
112typedef GtkTreeViewColumn* (*Ptr_gtk_tree_view_get_column)(GtkTreeView *, gint);
113typedef GtkWidget* (*Ptr_gtk_combo_box_new)(void);
114typedef GtkWidget* (*Ptr_gtk_frame_new)(const gchar *);
115typedef GtkWidget* (*Ptr_gtk_expander_new)(const gchar*);
116typedef GtkWidget* (*Ptr_gtk_statusbar_new)(void);
117typedef GtkSettings* (*Ptr_gtk_settings_get_default)(void);
118typedef void (*Ptr_gtk_range_set_adjustment)(GtkRange *, GtkAdjustment *);
119typedef void (*Ptr_gtk_progress_set_adjustment)(GtkProgress *, GtkAdjustment *);
120typedef void (*Ptr_gtk_range_set_inverted)(GtkRange*, bool);
121typedef void (*Ptr_gtk_container_add)(GtkContainer *container, GtkWidget *widget);
122typedef GtkIconSet* (*Ptr_gtk_icon_factory_lookup_default) (const gchar*);
123typedef void (*Ptr_gtk_widget_style_get)(GtkWidget *, const gchar *first_property_name, ...);
124typedef GtkTreeViewColumn* (*Ptr_gtk_tree_view_column_new)(void);
125typedef GtkWidget* (*Ptr_gtk_fixed_new)(void);
126typedef GdkPixbuf* (*Ptr_gtk_icon_set_render_icon)(GtkIconSet *, GtkStyle *, GtkTextDirection, GtkStateType, GtkIconSize, GtkWidget *,const char *);
127typedef void (*Ptr_gtk_tree_view_append_column) (GtkTreeView*, GtkTreeViewColumn*);
128typedef void (*Ptr_gtk_paint_check) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
129typedef void (*Ptr_gtk_paint_box) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
130typedef void (*Ptr_gtk_paint_box_gap) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint , gint, GtkPositionType, gint gap_x, gint gap_width);
131typedef void (*Ptr_gtk_paint_resize_grip) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, GdkWindowEdge, gint , gint , gint , gint);
132typedef void (*Ptr_gtk_paint_focus) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
133typedef void (*Ptr_gtk_paint_shadow) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
134typedef void (*Ptr_gtk_paint_slider) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint, GtkOrientation);
135typedef void (*Ptr_gtk_paint_expander) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , GtkExpanderStyle );
136typedef void (*Ptr_gtk_paint_handle) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint, GtkOrientation);
137typedef void (*Ptr_gtk_paint_arrow) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, GtkArrowType, gboolean, gint , gint , gint , gint);
138typedef void (*Ptr_gtk_paint_option) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
139typedef void (*Ptr_gtk_paint_flat_box) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
140typedef void (*Ptr_gtk_paint_extension) (GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint, GtkPositionType);
141typedef GtkObject* (*Ptr_gtk_adjustment_new) (double, double, double, double, double, double);
142typedef void (*Ptr_gtk_paint_hline) (GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint y);
143typedef void (*Ptr_gtk_paint_vline) (GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint);
144typedef void (*Ptr_gtk_menu_item_set_submenu) (GtkMenuItem *, GtkWidget *);
145typedef void (*Ptr_gtk_container_forall) (GtkContainer *, GtkCallback, gpointer);
146typedef void (*Ptr_gtk_widget_size_allocate) (GtkWidget *, GtkAllocation*);
147typedef void (*Ptr_gtk_widget_set_direction) (GtkWidget *, GtkTextDirection);
148typedef void (*Ptr_gtk_widget_path) (GtkWidget *, guint *, gchar **, gchar**);
149typedef void (*Ptr_gtk_toolbar_insert) (GtkToolbar *toolbar, GtkToolItem *item, int pos);
150typedef void (*Ptr_gtk_menu_shell_append)(GtkMenuShell *, GtkWidget *);
151typedef GtkType (*Ptr_gtk_container_get_type) (void);
152typedef GtkType (*Ptr_gtk_window_get_type) (void);
153typedef GtkType (*Ptr_gtk_widget_get_type) (void);
154typedef GtkStyle* (*Ptr_gtk_rc_get_style_by_paths) (GtkSettings *, const char *, const char *, GType);
155typedef gint (*Ptr_pango_font_description_get_size) (const PangoFontDescription *);
156typedef PangoWeight (*Ptr_pango_font_description_get_weight) (const PangoFontDescription *);
157typedef const char* (*Ptr_pango_font_description_get_family) (const PangoFontDescription *);
158typedef PangoStyle (*Ptr_pango_font_description_get_style) (const PangoFontDescription *desc);
159typedef gboolean (*Ptr_gtk_file_chooser_set_current_folder)(GtkFileChooser *, const gchar *);
160typedef GtkFileFilter* (*Ptr_gtk_file_filter_new)(void);
161typedef void (*Ptr_gtk_file_filter_set_name)(GtkFileFilter *, const gchar *);
162typedef void (*Ptr_gtk_file_filter_add_pattern)(GtkFileFilter *filter, const gchar *pattern);
163typedef void (*Ptr_gtk_file_chooser_add_filter)(GtkFileChooser *chooser, GtkFileFilter *filter);
164typedef void (*Ptr_gtk_file_chooser_set_filter)(GtkFileChooser *chooser, GtkFileFilter *filter);
165typedef gchar* (*Ptr_gtk_file_chooser_get_filename)(GtkFileChooser *chooser);
166typedef GSList* (*Ptr_gtk_file_chooser_get_filenames)(GtkFileChooser *chooser);
167typedef GtkWidget* (*Ptr_gtk_file_chooser_dialog_new)(const gchar *title,
168 GtkWindow *parent,
169 GtkFileChooserAction action,
170 const gchar *first_button_text,
171 ...);
172typedef void (*Ptr_gtk_file_chooser_set_current_name) (GtkFileChooser *, const gchar *);
173typedef gboolean (*Ptr_gtk_file_chooser_set_filename) (GtkFileChooser *chooser, const gchar *name);
174typedef gint (*Ptr_gtk_dialog_run) (GtkDialog*);
175
176typedef guchar* (*Ptr_gdk_pixbuf_get_pixels) (const GdkPixbuf *pixbuf);
177typedef int (*Ptr_gdk_pixbuf_get_width) (const GdkPixbuf *pixbuf);
178typedef void (*Ptr_gdk_color_free) (const GdkColor *);
179typedef int (*Ptr_gdk_pixbuf_get_height) (const GdkPixbuf *pixbuf);
180typedef GdkPixbuf* (*Ptr_gdk_pixbuf_get_from_drawable) (GdkPixbuf *dest, GdkDrawable *src,
181 GdkColormap *cmap, int src_x,
182 int src_y, int dest_x, int dest_y,
183 int width, int height);
184typedef GdkPixmap* (*Ptr_gdk_pixmap_new) (GdkDrawable *drawable, gint width, gint height, gint depth);
185typedef GdkPixbuf* (*Ptr_gdk_pixbuf_new) (GdkColorspace colorspace, gboolean has_alpha,
186 int bits_per_sample, int width, int height);
187typedef void (*Ptr_gdk_draw_rectangle) (GdkDrawable *drawable, GdkGC *gc,
188 gboolean filled, gint x, gint y, gint width, gint height);
189typedef void (*Ptr_gdk_pixbuf_unref)(GdkPixbuf *);
190typedef void (*Ptr_gdk_drawable_unref)(GdkDrawable *);
191typedef gint (*Ptr_gdk_drawable_get_depth)(GdkDrawable *);
192typedef void (*Ptr_gdk_x11_window_set_user_time) (GdkWindow *window, guint32);
193typedef XID (*Ptr_gdk_x11_drawable_get_xid) (GdkDrawable *);
194typedef Display* (*Ptr_gdk_x11_drawable_get_xdisplay) ( GdkDrawable *);
195
196QT_BEGIN_NAMESPACE
197
198class QGtk
199{
200public:
201 static GtkWidget* gtkWidget(const QString &path);
202 static GtkStyle* gtkStyle(const QString &path = QLatin1String("GtkWindow"));
203
204 static void cleanup_gtk_widgets();
205 static void initGtkWidgets();
206 static bool isKDE4Session();
207 static void applyCustomPaletteHash();
208 static QFont getThemeFont();
209 static bool isThemeAvailable() { return gtkStyle() != 0; }
210
211 static QString openFilename(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
212 QString *selectedFilter, QFileDialog::Options options);
213 static QString saveFilename(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
214 QString *selectedFilter, QFileDialog::Options options);
215 static QString openDirectory(QWidget *parent, const QString &caption, const QString &dir, QFileDialog::Options options);
216 static QStringList openFilenames(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
217 QString *selectedFilter, QFileDialog::Options options);
218
219 static Ptr_gtk_container_forall gtk_container_forall;
220 static Ptr_gtk_init gtk_init;
221 static Ptr_gtk_style_attach gtk_style_attach;
222 static Ptr_gtk_window_new gtk_window_new;
223 static Ptr_gtk_widget_destroy gtk_widget_destroy;
224 static Ptr_gtk_widget_realize gtk_widget_realize;
225 static Ptr_gtk_widget_set_default_direction gtk_widget_set_default_direction;
226 static Ptr_gtk_widget_modify_color gtk_widget_modify_fg;
227 static Ptr_gtk_widget_modify_color gtk_widget_modify_bg;
228 static Ptr_gtk_menu_item_new gtk_menu_item_new;
229 static Ptr_gtk_arrow_new gtk_arrow_new;
230 static Ptr_gtk_check_menu_item_new gtk_check_menu_item_new;
231 static Ptr_gtk_menu_bar_new gtk_menu_bar_new;
232 static Ptr_gtk_menu_new gtk_menu_new;
233 static Ptr_gtk_expander_new gtk_expander_new;
234 static Ptr_gtk_button_new gtk_button_new;
235 static Ptr_gtk_hbutton_box_new gtk_hbutton_box_new;
236 static Ptr_gtk_check_button_new gtk_check_button_new;
237 static Ptr_gtk_radio_button_new gtk_radio_button_new;
238 static Ptr_gtk_spin_button_new gtk_spin_button_new;
239 static Ptr_gtk_separator_tool_item_new gtk_separator_tool_item_new;
240 static Ptr_gtk_toolbar_insert gtk_toolbar_insert;
241 static Ptr_gtk_frame_new gtk_frame_new;
242 static Ptr_gtk_statusbar_new gtk_statusbar_new;
243 static Ptr_gtk_entry_new gtk_entry_new;
244 static Ptr_gtk_hscale_new gtk_hscale_new;
245 static Ptr_gtk_vscale_new gtk_vscale_new;
246 static Ptr_gtk_hscrollbar_new gtk_hscrollbar_new;
247 static Ptr_gtk_vscrollbar_new gtk_vscrollbar_new;
248 static Ptr_gtk_scrolled_window_new gtk_scrolled_window_new;
249 static Ptr_gtk_notebook_new gtk_notebook_new;
250 static Ptr_gtk_toolbar_new gtk_toolbar_new;
251 static Ptr_gtk_tree_view_new gtk_tree_view_new;
252 static Ptr_gtk_tree_view_get_column gtk_tree_view_get_column;
253 static Ptr_gtk_combo_box_new gtk_combo_box_new;
254 static Ptr_gtk_combo_box_entry_new gtk_combo_box_entry_new;
255 static Ptr_gtk_progress_bar_new gtk_progress_bar_new;
256 static Ptr_gtk_container_add gtk_container_add;
257 static Ptr_gtk_menu_shell_append gtk_menu_shell_append;
258 static Ptr_gtk_progress_set_adjustment gtk_progress_set_adjustment;
259 static Ptr_gtk_range_set_adjustment gtk_range_set_adjustment;
260 static Ptr_gtk_range_set_inverted gtk_range_set_inverted;
261 static Ptr_gtk_icon_factory_lookup_default gtk_icon_factory_lookup_default;
262 static Ptr_gtk_widget_style_get gtk_widget_style_get;
263 static Ptr_gtk_icon_set_render_icon gtk_icon_set_render_icon;
264 static Ptr_gtk_fixed_new gtk_fixed_new;
265 static Ptr_gtk_tree_view_column_new gtk_tree_view_column_new;
266 static Ptr_gtk_tree_view_append_column gtk_tree_view_append_column;
267 static Ptr_gtk_paint_check gtk_paint_check;
268 static Ptr_gtk_paint_box gtk_paint_box;
269 static Ptr_gtk_paint_box_gap gtk_paint_box_gap;
270 static Ptr_gtk_paint_flat_box gtk_paint_flat_box;
271 static Ptr_gtk_paint_option gtk_paint_option;
272 static Ptr_gtk_paint_extension gtk_paint_extension;
273 static Ptr_gtk_paint_slider gtk_paint_slider;
274 static Ptr_gtk_paint_shadow gtk_paint_shadow;
275 static Ptr_gtk_paint_resize_grip gtk_paint_resize_grip;
276 static Ptr_gtk_paint_focus gtk_paint_focus;
277 static Ptr_gtk_paint_arrow gtk_paint_arrow;
278 static Ptr_gtk_paint_handle gtk_paint_handle;
279 static Ptr_gtk_paint_expander gtk_paint_expander;
280 static Ptr_gtk_adjustment_new gtk_adjustment_new;
281 static Ptr_gtk_paint_vline gtk_paint_vline;
282 static Ptr_gtk_paint_hline gtk_paint_hline;
283 static Ptr_gtk_menu_item_set_submenu gtk_menu_item_set_submenu;
284 static Ptr_gtk_settings_get_default gtk_settings_get_default;
285 static Ptr_gtk_separator_menu_item_new gtk_separator_menu_item_new;
286 static Ptr_gtk_widget_size_allocate gtk_widget_size_allocate;
287 static Ptr_gtk_widget_set_direction gtk_widget_set_direction;
288 static Ptr_gtk_widget_path gtk_widget_path;
289 static Ptr_gtk_container_get_type gtk_container_get_type;
290 static Ptr_gtk_window_get_type gtk_window_get_type;
291 static Ptr_gtk_widget_get_type gtk_widget_get_type;
292 static Ptr_gtk_rc_get_style_by_paths gtk_rc_get_style_by_paths;
293 static Ptr_gtk_check_version gtk_check_version;
294
295 static Ptr_pango_font_description_get_size pango_font_description_get_size;
296 static Ptr_pango_font_description_get_weight pango_font_description_get_weight;
297 static Ptr_pango_font_description_get_family pango_font_description_get_family;
298 static Ptr_pango_font_description_get_style pango_font_description_get_style;
299
300 static Ptr_gtk_file_filter_new gtk_file_filter_new;
301 static Ptr_gtk_file_filter_set_name gtk_file_filter_set_name;
302 static Ptr_gtk_file_filter_add_pattern gtk_file_filter_add_pattern;
303 static Ptr_gtk_file_chooser_add_filter gtk_file_chooser_add_filter;
304 static Ptr_gtk_file_chooser_set_filter gtk_file_chooser_set_filter;
305 static Ptr_gtk_file_chooser_dialog_new gtk_file_chooser_dialog_new;
306 static Ptr_gtk_file_chooser_set_current_folder gtk_file_chooser_set_current_folder;
307 static Ptr_gtk_file_chooser_get_filename gtk_file_chooser_get_filename;
308 static Ptr_gtk_file_chooser_get_filenames gtk_file_chooser_get_filenames;
309 static Ptr_gtk_file_chooser_set_current_name gtk_file_chooser_set_current_name;
310 static Ptr_gtk_dialog_run gtk_dialog_run;
311 static Ptr_gtk_file_chooser_set_filename gtk_file_chooser_set_filename;
312
313 static Ptr_gdk_pixbuf_get_pixels gdk_pixbuf_get_pixels;
314 static Ptr_gdk_pixbuf_get_width gdk_pixbuf_get_width;
315 static Ptr_gdk_pixbuf_get_height gdk_pixbuf_get_height;
316 static Ptr_gdk_pixmap_new gdk_pixmap_new;
317 static Ptr_gdk_pixbuf_new gdk_pixbuf_new;
318 static Ptr_gdk_pixbuf_get_from_drawable gdk_pixbuf_get_from_drawable;
319 static Ptr_gdk_draw_rectangle gdk_draw_rectangle;
320 static Ptr_gdk_pixbuf_unref gdk_pixbuf_unref;
321 static Ptr_gdk_drawable_unref gdk_drawable_unref;
322 static Ptr_gdk_drawable_get_depth gdk_drawable_get_depth;
323 static Ptr_gdk_color_free gdk_color_free;
324 static Ptr_gdk_x11_window_set_user_time gdk_x11_window_set_user_time;
325 static Ptr_gdk_x11_drawable_get_xid gdk_x11_drawable_get_xid;
326 static Ptr_gdk_x11_drawable_get_xdisplay gdk_x11_drawable_get_xdisplay;
327
328 static Ptr_gconf_client_get_default gconf_client_get_default;
329 static Ptr_gconf_client_get_string gconf_client_get_string;
330};
331
332// Helper to ensure that we have polished all our gtk widgets
333// before updating our own palettes
334class QGtkStyleUpdateScheduler : public QObject
335{
336 Q_OBJECT
337public slots:
338 void updateTheme();
339};
340
341QT_END_NAMESPACE
342
343#endif // !QT_NO_STYLE_GTK
344#endif // GTKSYMBOLS_H
Note: See TracBrowser for help on using the repository browser.