gnome-control-center/gnome-settings-daemon
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
..
actions Added handler for media keybinding. Add defines for media key. 2007-03-20 19:01:26 +00:00
xrdb Don't define directories in configure. Remove some obsolete defines, and 2007-02-02 18:12:40 +00:00
.indent.pro now gnome-settings-daemon resets the configuration is asked by gconf flag overrideSettings 2004-01-09 20:43:59 +00:00
ChangeLog Added handler for media keybinding. Add defines for media key. 2007-03-20 19:01:26 +00:00
clipboard-manager.c Huge cleanup. Individual ChangeLogs have info. Closing bug #320157. ANSIfy 2005-11-14 15:18:09 +00:00
clipboard-manager.h xutils.c Add clipboard manager files. 2005-06-03 08:29:45 +00:00
delayed-dialog.c new method to delay showing a dialog until after the window manager is 2006-10-16 15:01:00 +00:00
eggaccelerators.c Use a cancel button on the 'already used' dialog so that escape will close 2004-04-01 05:59:55 +00:00
eggaccelerators.h Merge in acme. We now have a variety of actions for the keybinding 2004-01-13 15:59:09 +00:00
factory.c don't leak the GnomeProgram reference 2007-01-31 19:08:51 +00:00
gnome-settings-accessibility-keyboard.c correctly pass the function address when setting up the event filter 2007-02-23 22:52:53 +00:00
gnome-settings-accessibility-keyboard.h Add AccessX capplet. 2002-03-23 04:39:24 +00:00
gnome-settings-background.c Sparse warning fixes: - Mark some stuff static - ANSIfication of function 2007-01-29 09:22:55 +00:00
gnome-settings-background.h Sparse warning fixes: - Mark some stuff static - ANSIfication of function 2007-01-29 09:22:55 +00:00
gnome-settings-daemon.c Fixing the build process 2006-07-06 19:45:13 +00:00
gnome-settings-daemon.h new method to delay showing a dialog until after the window manager is 2006-10-16 15:01:00 +00:00
gnome-settings-daemon.pc.in Enabling DBUS, getting rid of bonobo, libgswitchit API update 2006-06-25 02:16:06 +00:00
gnome-settings-dbus.c Based on a patch by: Bastien Nocera <hadess@hadess.net> 2007-02-09 16:59:35 +00:00
gnome-settings-dbus.h Based on a patch by: Bastien Nocera <hadess@hadess.net> 2007-02-09 16:59:35 +00:00
gnome-settings-default-editor.c Huge cleanup. Individual ChangeLogs have info. Closing bug #320157. ANSIfy 2005-11-14 15:18:09 +00:00
gnome-settings-default-editor.h keep text/plain and text* using the same mime type (#78037) 2002-05-16 23:09:02 +00:00
gnome-settings-font.c if the new font path could not be set, revert to the old path (fixes bug 2007-02-10 16:11:51 +00:00
gnome-settings-font.h Sparse warning fixes: - Mark some stuff static - ANSIfication of function 2007-01-29 09:22:55 +00:00
gnome-settings-gtk1theme.c declare a global GConfClient. (main): unref the global GConfClient. 2005-10-17 14:53:19 +00:00
gnome-settings-gtk1theme.h new file from owen to manage gtk1 themes. 2002-08-19 19:14:21 +00:00
gnome-settings-keybindings.c don't install the same filter twice for the default root window (fixes bug 2007-02-16 17:42:27 +00:00
gnome-settings-keybindings.h Cleanup of gconf and a few other things, patch from Kjartan Maraas 2005-05-22 15:46:45 +00:00
gnome-settings-keyboard-xkb.c don't install the same filter twice; we already install it for all 2007-01-31 17:24:16 +00:00
gnome-settings-keyboard-xkb.h Changing library dependency from virtual libgswitchit/libkbdraw to normal libgnomekbd 2006-10-18 22:37:40 +00:00
gnome-settings-keyboard.c Sparse warning fixes: - Mark some stuff static - ANSIfication of function 2007-01-29 09:22:55 +00:00
gnome-settings-keyboard.h Implement. Sets the GConf value either in the changeset, or if changeset 2002-01-04 20:48:17 +00:00
gnome-settings-locate-pointer.c Patch from Anders Carlsson to special case "both-horiz". 2003-07-31 18:27:44 +00:00
gnome-settings-locate-pointer.h Cleanup of gconf and a few other things, patch from Kjartan Maraas 2005-05-22 15:46:45 +00:00
gnome-settings-marshal.list added new files from previous patch to svn. 2007-01-08 20:30:07 +00:00
gnome-settings-mouse.c if X refuses to update the pointer mapping (busy) don't just ignore the 2007-02-14 17:32:48 +00:00
gnome-settings-mouse.h Sparse warning fixes: - Mark some stuff static - ANSIfication of function 2007-01-29 09:22:55 +00:00
gnome-settings-multimedia-keys.c Added handler for media keybinding. Add defines for media key. 2007-03-20 19:01:26 +00:00
gnome-settings-multimedia-keys.h Merge in acme. We now have a variety of actions for the keybinding 2004-01-13 15:59:09 +00:00
gnome-settings-screensaver.c declare a global GConfClient. (main): unref the global GConfClient. 2005-10-17 14:53:19 +00:00
gnome-settings-screensaver.h start xscreensaver, and display an error dialog if it failed 2002-03-26 17:22:02 +00:00
gnome-settings-sound.c Fixes #392276 2007-01-06 21:20:16 +00:00
gnome-settings-sound.h s/Richard/Rachel 2002-04-21 21:22:35 +00:00
gnome-settings-typing-break.c Huge cleanup. Individual ChangeLogs have info. Closing bug #320157. ANSIfy 2005-11-14 15:18:09 +00:00
gnome-settings-typing-break.h added the typing break to CVS from drwright. 2003-06-26 11:40:10 +00:00
gnome-settings-xmodmap.c Don't define directories in configure. Remove some obsolete defines, and 2007-02-02 18:12:40 +00:00
gnome-settings-xmodmap.h Don't forget to use 'cvs add' in order to add new files to the repository. 2005-02-02 00:59:51 +00:00
gnome-settings-xrdb.c Don't define directories in configure. Remove some obsolete defines, and 2007-02-02 18:12:40 +00:00
gnome-settings-xrdb.h L33t X property setting based upon GTK to theme legacy apps 2003-05-01 16:08:26 +00:00
gnome-settings-xsettings.c Fix the gnome-settings-daemon part of 2007-03-21 17:05:06 +00:00
gnome-settings-xsettings.h Implement. Sets the GConf value either in the changeset, or if changeset 2002-01-04 20:48:17 +00:00
GNOME_SettingsDaemon.server.in added name and description to the object information. 2005-05-31 20:49:23 +00:00
gsd-infos.xml Fixes #133815 2007-01-08 16:48:19 +00:00
gsd-media-keys-window.c Use #define for the alpha levels. 2007-02-05 20:10:16 +00:00
gsd-media-keys-window.h Add a new media keys window that takes advantage of compositing when 2006-12-07 17:54:56 +00:00
list.c xutils.c Add clipboard manager files. 2005-06-03 08:29:45 +00:00
list.h xutils.c Add clipboard manager files. 2005-06-03 08:29:45 +00:00
Makefile.am Make the new volume overlay window follow the icon and color themes. Add 2007-02-05 05:25:27 +00:00
modmap-dialog.glade fix a label form (Closes: #167739). 2005-07-12 10:23:17 +00:00
org.gnome.SettingsDaemon.service.in Enabling DBUS, getting rid of bonobo, libgswitchit API update 2006-06-25 02:16:06 +00:00
reaper.c merge and update patch from 2004-03-31 21:30:23 +00:00
reaper.h added the typing break to CVS from drwright. 2003-06-26 11:40:10 +00:00
test-media-window.c fix compiler warning 2007-02-25 10:00:59 +00:00
xsettings-common.c Release 2.1.1 2002-10-21 16:48:10 +00:00
xsettings-common.h Import from gconf-xsettings module. Cleaned up a bunch, and made to work 2001-12-09 18:50:32 +00:00
xsettings-manager.c Huge cleanup. Individual ChangeLogs have info. Closing bug #320157. ANSIfy 2005-11-14 15:18:09 +00:00
xsettings-manager.h Import from gconf-xsettings module. Cleaned up a bunch, and made to work 2001-12-09 18:50:32 +00:00
xutils.c xutils.c Add clipboard manager files. 2005-06-03 08:29:45 +00:00
xutils.h xutils.c Add clipboard manager files. 2005-06-03 08:29:45 +00:00