[gnome-settings-daemon] xsettings: Export Xft.lcdfilter for OO.o's benefit



commit 6cf315249ab27d4396b0f5b5edb1e689a5cafc68
Author: Chris Coleman <chrsclmn gmail com>
Date:   Sat Oct 16 01:44:12 2010 +0100

    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

 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 0d9df70..8798a9e 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]