Author: stephan
Date: 2008-04-17 06:21:18 +0000 (Thu, 17 Apr 2008)
New Revision: 26851
Modified:
xfce-mcs-plugins/branches/xfce-plugins-stephan/dialogs/appearance-settings/ui-dialog.c
Log:
Let ui-dialog set correct property-types for hinting and antialias (int instead
of bool)
Modified:
xfce-mcs-plugins/branches/xfce-plugins-stephan/dialogs/appearance-settings/ui-dialog.c
===================================================================
---
xfce-mcs-plugins/branches/xfce-plugins-stephan/dialogs/appearance-settings/ui-dialog.c
2008-04-17 06:13:52 UTC (rev 26850)
+++
xfce-mcs-plugins/branches/xfce-plugins-stephan/dialogs/appearance-settings/ui-dialog.c
2008-04-17 06:21:18 UTC (rev 26851)
@@ -227,10 +227,10 @@
gtk_toggle_button_set_active(
GTK_TOGGLE_BUTTON(priv->font.antialias_checkbox),
- xfconf_channel_get_bool(priv->channels.xsettings,
"/Xft/Antialias", FALSE));
+ xfconf_channel_get_bool(priv->channels.xsettings,
"/Xft/Antialias", 0)>0?TRUE:FALSE);
gtk_toggle_button_set_active(
GTK_TOGGLE_BUTTON(priv->font.hinting_checkbox),
- xfconf_channel_get_bool(priv->channels.xsettings, "/Xft/Hinting",
FALSE));
+ xfconf_channel_get_bool(priv->channels.xsettings, "/Xft/Hinting",
0)>0?TRUE:FALSE);
const gchar *font_name =
xfconf_channel_get_string(priv->channels.xsettings, "/Gtk/FontName", "Sans 10");
@@ -266,14 +266,14 @@
"/Gtk/CanChangeAccels",
gtk_toggle_button_get_active(
GTK_TOGGLE_BUTTON(priv->behaviour.menu_accel_check)));
- xfconf_channel_set_bool(
+ xfconf_channel_set_int(
priv->channels.xsettings,
"/Xft/Antialias", gtk_toggle_button_get_active(
- GTK_TOGGLE_BUTTON(priv->font.antialias_checkbox)));
- xfconf_channel_set_bool(
+ GTK_TOGGLE_BUTTON(priv->font.antialias_checkbox))?1:0);
+ xfconf_channel_set_int(
priv->channels.xsettings,
"/Xft/Hinting", gtk_toggle_button_get_active(
- GTK_TOGGLE_BUTTON(priv->font.hinting_checkbox)));
+ GTK_TOGGLE_BUTTON(priv->font.hinting_checkbox))?1:0);
xfconf_channel_set_string(
priv->channels.xsettings,
"/Gtk/FontName", gtk_font_button_get_font_name(
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits