| 1 |
#ifndef __CLUTTER_SETTINGS_GDK_H__ |
| 2 |
#define __CLUTTER_SETTINGS_GDK_H__ |
| 3 |
|
| 4 |
/* XSETTINGS key names to ClutterSettings properties */ |
| 5 |
static const struct { |
| 6 |
const char *gdk_setting_name; |
| 7 |
const char *settings_property; |
| 8 |
GType type; |
| 9 |
} _clutter_settings_map[] = { |
| 10 |
{ "gdk-window-scaling-factor", "window-scaling-factor", G_TYPE_INT }, |
| 11 |
{ "gtk-double-click-time", "double-click-time", G_TYPE_INT }, |
| 12 |
{ "gtk-double-click-distance", "double-click-distance", G_TYPE_INT }, |
| 13 |
{ "gtk-dnd-drag-threshold", "dnd-drag-threshold", G_TYPE_INT }, |
| 14 |
{ "gtk-font-name", "font-name", G_TYPE_STRING }, |
| 15 |
{ "gtk-xft-antialias", "font-antialias", G_TYPE_INT }, |
| 16 |
{ "gtk-xft-dpi", "font-dpi", G_TYPE_INT }, |
| 17 |
{ "gtk-xft-hinting", "font-hinting", G_TYPE_INT }, |
| 18 |
{ "gtk-xft-hintstyle", "font-hint-style", G_TYPE_STRING }, |
| 19 |
{ "gtk-xft-rgba", "font-subpixel-order", G_TYPE_STRING }, |
| 20 |
{ "gtk-fontconfig-timestamp", "fontconfig-timestamp", G_TYPE_UINT }, |
| 21 |
}; |
| 22 |
|
| 23 |
static const gint _n_clutter_settings_map = G_N_ELEMENTS (_clutter_settings_map); |
| 24 |
|
| 25 |
#define CLUTTER_SETTING_TYPE(id) (_clutter_settings_map[(id)].type) |
| 26 |
#define CLUTTER_SETTING_GDK_NAME(id) (_clutter_settings_map[(id)].gdk_setting_name) |
| 27 |
#define CLUTTER_SETTING_PROPERTY(id) (_clutter_settings_map[(id)].settings_property) |
| 28 |
|
| 29 |
#endif /* __CLUTTER_SETTINGS_GDK_H__ */ |