diff options
author | Chris Coleman <chrsclmn@gmail.com> | 2010-10-16 01:44:12 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-10-16 01:44:12 +0100 |
commit | 6cf315249ab27d4396b0f5b5edb1e689a5cafc68 (patch) | |
tree | 898d72ee2ce2eb6bd2b8a79534f58f07092aa880 /plugins/xsettings | |
parent | 9ed6792978317198194dd05c5a432e005c9294b0 (diff) | |
download | gnome-settings-daemon-6cf315249ab27d4396b0f5b5edb1e689a5cafc68.tar.gz |
xsettings: Export Xft.lcdfilter for OO.o's benefit
Export Xft.lcdfilter legacy setting for the benefit of OpenOffice.org
which doesn't follow the other fontconfig settings.
https://bugzilla.gnome.org/show_bug.cgi?id=631924
Diffstat (limited to 'plugins/xsettings')
-rw-r--r-- | plugins/xsettings/gsd-xsettings-manager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/xsettings/gsd-xsettings-manager.c b/plugins/xsettings/gsd-xsettings-manager.c index 0d9df70f..8798a9ef 100644 --- a/plugins/xsettings/gsd-xsettings-manager.c +++ b/plugins/xsettings/gsd-xsettings-manager.c @@ -357,6 +357,8 @@ xft_settings_set_xsettings (GnomeXSettingsManager *manager, xsettings_manager_set_string (manager->priv->managers [i], "Xft/HintStyle", settings->hintstyle); xsettings_manager_set_int (manager->priv->managers [i], "Xft/DPI", settings->dpi); xsettings_manager_set_string (manager->priv->managers [i], "Xft/RGBA", settings->rgba); + xsettings_manager_set_string (manager->priv->managers [i], "Xft/lcdfilter", + g_str_equal (settings->rgba, "rgb") ? "lcddefault" : "none"); } gnome_settings_profile_end (NULL); } @@ -416,6 +418,8 @@ xft_settings_set_xresources (GnomeXftSettings *settings) settings->hintstyle); update_property (add_string, "Xft.rgba", settings->rgba); + update_property (add_string, "Xft.lcdfilter", + g_str_equal (settings->rgba, "rgb") ? "lcddefault" : "none"); g_debug("xft_settings_set_xresources: new res '%s'", add_string->str); |