gnome-control-center/capplets/font
Federico Mena Quintero 30c1207620 Fix the gnome-settings-daemon part of
2007-03-21  Federico Mena Quintero  <federico@novell.com>

	Fix the gnome-settings-daemon part of
	https://bugzilla.novell.com/show_bug.cgi?id=217790 and
	http://bugzilla.gnome.org/show_bug.cgi?id=378338:  try to figure
	out the DPI value from the X server or the user's GConf settings.

	Should also fix https://bugzilla.novell.com/show_bug.cgi?id=240246.

	* gnome-settings-daemon/gnome-settings-xsettings.c (gnome_xft_settings_get): Call
	get_dpi_from_gconf_or_server() to figure out a reasonable DPI
	value; don't unconditionally get it from GConf.
	(get_dpi_from_gconf_or_server): New function.  If the user has
	ever set the /desktop/gnome/font_rendering/dpi value in GConf, we
	use its value.  Otherwise, we ask the X server.  We constrain the
	X server's response to a range of reasonable DPI values, since
	some servers lie about the screen's phisical dimensions --- the
	user would get unusably huge or tiny fonts otherwise.

	* capplets/font/main.c (dpi_load): First, see if the DPI value is actually set
	in GConf.  If it is, it means that the user has changed it at
	least once.  In that case, just use the value.  Otherwise, find
	the value from the X server in a similar way to what we do in
	gnome-settings-daemon.

svn path=/trunk/; revision=7409
2007-03-21 17:05:06 +00:00
..
ChangeLog Based on patch by: Gabor Kelemen <kelemeng@gnome.hu> 2007-01-07 18:53:31 +00:00
font-properties.desktop.in.in Add GTK category to the #328028) 2006-01-22 22:07:18 +00:00
font-properties.glade Change "Monospace" to "Fixed width". Bug #160454. 2006-01-26 22:17:02 +00:00
main.c Fix the gnome-settings-daemon part of 2007-03-21 17:05:06 +00:00
Makefile.am add cappletname variable which is used to define G_LOG_DOMAIN (fixes 2007-02-03 17:18:29 +00:00
subpixel-bgr.png Add some pixmaps for font rendering. 2002-07-24 03:30:41 +00:00
subpixel-rgb.png Add some pixmaps for font rendering. 2002-07-24 03:30:41 +00:00
subpixel-vbgr.png Add some pixmaps for font rendering. 2002-07-24 03:30:41 +00:00
subpixel-vrgb.png Add some pixmaps for font rendering. 2002-07-24 03:30:41 +00:00