| 1 |
#ifndef __CLUTTER_SETTINGS_X11_H__ |
| 2 |
#define __CLUTTER_SETTINGS_X11_H__ |
| 3 |
|
| 4 |
/* XSETTINGS key names to ClutterSettings properties */ |
| 5 |
static const struct { |
| 6 |
const char *xsetting_name; |
| 7 |
const char *settings_property; |
| 8 |
} _clutter_settings_map[] = { |
| 9 |
{ "Net/DoubleClickTime", "double-click-time" }, |
| 10 |
{ "Net/DoubleClickDistance", "double-click-distance" }, |
| 11 |
{ "Net/DndDragThreshold", "dnd-drag-threshold" }, |
| 12 |
{ "Gtk/FontName", "font-name" }, |
| 13 |
{ "Xft/Antialias", "font-antialias" }, |
| 14 |
{ "Xft/DPI", "font-dpi" }, |
| 15 |
{ "Xft/Hinting", "font-hinting" }, |
| 16 |
{ "Xft/HintStyle", "font-hint-style" }, |
| 17 |
{ "Xft/RGBA", "font-subpixel-order" }, |
| 18 |
{ "Fontconfig/Timestamp", "fontconfig-timestamp" }, |
| 19 |
{ "Gdk/WindowScalingFactor", "window-scaling-factor" }, |
| 20 |
{ "Gdk/UnscaledDPI", "unscaled-font-dpi" }, |
| 21 |
}; |
| 22 |
|
| 23 |
static const gint _n_clutter_settings_map = G_N_ELEMENTS (_clutter_settings_map); |
| 24 |
|
| 25 |
#define CLUTTER_SETTING_X11_NAME(id) (_clutter_settings_map[(id)].xsetting_name) |
| 26 |
#define CLUTTER_SETTING_PROPERTY(id) (_clutter_settings_map[(id)].settings_property) |
| 27 |
|
| 28 |
#endif /* __CLUTTER_SETTINGS_X11_H__ */ |