mirror of
https://github.com/brl/mutter.git
synced 2024-12-29 14:22:13 +00:00
610a9c17ba
This commit introduces a new flavour for Clutter, that uses GDK for handling all window system specific interactions (except for creating the cogl context, as cogl does not know about GDK), including in particular events. This is not compatible with the X11 (glx) flavour, and this is reflected by the different soname (libclutter-gdk-1.0.so), as all X11 specific functions and classes are not available. If you wish to be compatible, you should check for CLUTTER_WINDOWING_X11. Other than that, this backend should be on feature parity with X11, including XInput 2, XSettings and EMWH (with much, much less code) https://bugzilla.gnome.org/show_bug.cgi?id=657434
29 lines
1.3 KiB
C
29 lines
1.3 KiB
C
#ifndef __CLUTTER_SETTINGS_GDK_H__
|
|
#define __CLUTTER_SETTINGS_GDK_H__
|
|
|
|
/* XSETTINGS key names to ClutterSettings properties */
|
|
static const struct {
|
|
const char *gdk_setting_name;
|
|
const char *settings_property;
|
|
GType type;
|
|
} _clutter_settings_map[] = {
|
|
{ "gtk-double-click-time", "double-click-time", G_TYPE_INT },
|
|
{ "gtk-double-click-distance", "double-click-distance", G_TYPE_INT },
|
|
{ "gtk-dnd-drag-threshold", "dnd-drag-threshold", G_TYPE_INT },
|
|
{ "gtk-font-name", "font-name", G_TYPE_STRING },
|
|
{ "gtk-xft-antialias", "font-antialias", G_TYPE_INT },
|
|
{ "gtk-xft-dpi", "font-dpi", G_TYPE_INT },
|
|
{ "gtk-xft-hinting", "font-hinting", G_TYPE_INT },
|
|
{ "gtk-xft-hintstyle", "font-hint-style", G_TYPE_STRING },
|
|
{ "gtk-xft-rgba", "font-subpixel-order", G_TYPE_STRING },
|
|
{ "gtk-fontconfig-timestamp", "fontconfig-timestamp", G_TYPE_UINT },
|
|
};
|
|
|
|
static const gint _n_clutter_settings_map = G_N_ELEMENTS (_clutter_settings_map);
|
|
|
|
#define CLUTTER_SETTING_TYPE(id) (_clutter_settings_map[(id)].type)
|
|
#define CLUTTER_SETTING_GDK_NAME(id) (_clutter_settings_map[(id)].gdk_setting_name)
|
|
#define CLUTTER_SETTING_PROPERTY(id) (_clutter_settings_map[(id)].settings_property)
|
|
|
|
#endif /* __CLUTTER_SETTINGS_GDK_H__ */
|