2007-06-06 Rodrigo Moya <rodrigo@gnome-db.org>
* gnome-settings-default-editor.c:
* gnome-settings-gtk1theme.c:
* gnome-settings-mouse.c:
* gnome-settings-sound.c:
* gnome-settings-xsettings.c: converted more modules to the new arch.
* gnome-settings-daemon.c (gnome_settings_daemon_new): now this is much
cleaner.
svn path=/trunk/; revision=7697
2007-04-02 Rodrigo Moya <rodrigo@gnome-db.org>
* gnome-settings-daemon.c (gnome_settings_daemon_new): return NULL
when there is an error, not exit(), so that we do proper cleanup.
Remove code to register GConf callbacks, that is done in utils.c.
(gnome_settings_daemon_get_conf_client,
gnome_settings_daemon_register_callback,
gnome_settings_daemon_spawn_with_input,
gnome_settings_daemon_get_invisible,
gnome_settings_daemon_delayed_show_dialog): removed from the
GnomeSettingsDaemon interface.
* utils.c (gnome_settings_get_config_client,
gnome_settings_get_invisible,
gnome_settings_register_config_callback,
gnome_settings_spawn_with_input,
gnome_settings_delayed_show_dialog): moved from GnomeSettingsDaemon
interface.
* factory.c (main): check return value from gnome_settings_daemon().
* *.c: adapted to changes in function names.
* Makefile.am: put source files in alphabetical order.
svn path=/trunk/; revision=7434
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
2006-01-14 Rodney Dawes <dobey@novell.com>
* gnome-settings-xsettings.c (xsettings_callback):
(gnome_settings_xsettings_load): Set the Net/FallbackIconTheme
XSetting for new versions of gnome-icon-theme and gtk+ >= 2.8.10
See bug #325546
* gnome-settings-font.c (load_xcursor_theme):
* gnome-settings-xsettings.c (gnome_xft_settings_set_xsettings):
run xrdb with -nocpp, since it's not needed here.
2005-10-16 Rodrigo Moya <rodrigo@novell.com>
* factory.c: declare a global GConfClient.
(main): unref the global GConfClient.
* gnome-settings-daemon.[ch] (gnome_settings_daemon_get_conf_client):
new function to use the same GConfClient everywhere.
(gnome_settings_daemon_new): use the global GConfClient.
* gnome-settings-accessibility-keyboard.c (set_server_from_gconf,
ax_response_callback, set_gconf_from_server):
* gnome-settings-gtk1theme.c (apply_settings):
* gnome-settings-keybindings.c (bindings_get_entry):
* gnome-settings-keyboard.c (numlock_get_gconf_state,
numlock_set_gconf_state, apply_settings):
* gnome-settings-keyboard-xkb.c (apply_xkb_settings,
gnome_settings_keyboard_xkb_sysconfig_changed_response,
gnome_settings_keyboard_xkb_analyze_sysconfig,
gnome_settings_chk_file_list):
* gnome-settings-screensaver.c (key_toggled_cb,
really_start_screensaver):
* gnome-settings-sound.c (apply_settings):
* gnome-settings-xmodmap.c (check_button_callback,
gnome_settings_load_modmap_files, remove_button_clicked_callback,
load_button_clicked_callback, gnome_settings_modmap_dialog_call):
* gnome-settings-xsettings.c (xft_callback):
use the global GConfClient.
* gnome-settings-keyboard-xkb.c (gnome_settings_keyboard_xkb_load):
don't get another GConfClient when we're getting one passed!
Thu Jul 31 14:22:38 2003 Jonathan Blandford <jrb@redhat.com>
* gnome-settings-xsettings.c (translate_string_string_toolbar):
Patch from Anders Carlsson to special case "both-horiz".
Thu Jul 31 14:06:51 2003 Jonathan Blandford <jrb@redhat.com>
* gnome-settings-mouse.c: Patch from Satyajit Kanungo
<satyajit.kanungo@wipro.com> to make locate pointer work in
a multi-screen environment.
Thu Feb 6 16:43:33 2003 Jonathan Blandford <jrb@redhat.com>
* gnome-settings-font.c (load_xcursor_theme): handle xcursor so
that we support Xcursor files.
* gnome-settings-daemon.c: move
gnome_settings_daemon_spawn_with_input here so multiple modules
can use it.
2002-11-08 Mark McLoughlin <mark@skynet.ie>
Create a XSettingsManager for every available
screen and apply settings changes to each.
* gnome-settings-daemon.c:
(manager_event_filter): make this a per-window filter
and ask the appropriate xsettings manager to filter
the event.
(finalize): dispose of every manager.
(gnome_settings_daemon_new): create a settings manager
for each screen.
* gnome-settings-xsettings.c:
(translate_bool_int), (translate_int_int),
(translate_string_string), (process_value),
(xsettings_callback), (xft_callback),
(gnome_xft_settings_set_xsettings),
(gnome_settings_xsettings_load): apply settings to
every available settings manager.
* gnome-settings-xsettings.c: added two new xsettings
for GTK+ input method preedit and status styles.
With the other patch for gtk+, the preedit and status styles of
GTK+ input method are configurable with associated gconf schemas
keys:
"/desktop/gnome/interface/gtk-im-preedit-style"
"/desktop/gnome/interface/gtk-im-status-style"
Both are set to "callback" by default, and platform's
packging can have different default by changing
libgnome's desktop_gnome_interface.schemas.
* acconfig.h configure.in: Check for Xft2.
* capplets/font/main.c capplets/font/Makefile.am
capplets/font/font-properties.glade: If XFt2 is present,
allow the user to control various font rendering attributes.
* gnome-settings-daemon/gnome-settings-xsettings.c:
Mirror the Xft rendering attributes from the font
capplet to XSETTINGS and Xrdb.
* schemas/Makefile.am schemas/desktop_gnome_font_rendering.schemas:
Add schemas for the new GConf settings.
2002-06-17 Jody Goldberg <jody@gnome.org>
http://bugzilla.gnome.org/show_bug.cgi?id=85327
* gnome-settings-xsettings.c (translate_string_string) : These strings
do look wrong. The capplet is setting the keys from the schema.
we were not mapping them to the write xsettings. It did not really
matter because we were not using xsettings to communicate these
values.
2002-04-01 Jody Goldberg <jody@gnome.org>
http://bugzilla.gnome.org/show_bug.cgi?id=77203
* gnome-settings-accessibility-keyboard.c (set_gconf_from_server) : be
more anal about server failure.
(set_server_from_gconf) : ditto.
2002-03-30 Jody Goldberg <jody@gnome.org>
* gnome-settings-xsettings.c (translations) : reorder to match gdk.
This simplifies maintenance.
blink support.
2002-03-29 Jody Goldberg <jody@gnome.org>
* gnome-settings-accessibility-keyboard.c (set_server_from_gconf) :
Add a gdk_error_trap just in case.
* gnome-settings-keyboard.c (apply_settings) : don't init things to
bogus values unless it is ncessary. Add a gdk_error_trap around the
X settings to avoid causing the server to exit if something goes
wrong. Be sure to flush before we pop the handler.
2002-01-04 Bradford Hovinen <hovinen@ximian.com>
* gconf-property-editor.c (peditor_set_gconf_value):
Implement. Sets the GConf value either in the changeset, or if
changeset is NULL, directly
(peditor_*_widget_changed): Use peditor_set_gconf_value
(gconf_peditor_new_*): Don't complain if changeset is NULL
Sat Dec 8 21:33:10 2001 Jonathan Blandford <jrb@redhat.com>
* gnome-settings-daemon/gnome-settings-daemon.c (main): Import
from gconf-xsettings module. Cleaned up a bunch, and made to work
with mouse properties too.
* schemas/peripherals.schemas: New location for schemas. Need to
write many more.