2007-05-09 Rodrigo Moya <rodrigo@gnome-db.org>
* gnome-settings-background.c (gnome_settings_module_background_init,
gnome_settings_module_background_start): no need to keep the GConfClient
around, it is already stored in the GnomeSettingsModule class.
svn path=/trunk/; revision=7585
2007-05-09 Rodrigo Moya <rodrigo@gnome-db.org>
* gnome-settings-background.c: removed G_BEGIN|END_DECLS.
(gnome_settings_module_background_get_type): register with correct type.
(gnome_settings_module_background_initialize): store the GConfClient we get.
(gnome_settings_module_background_start): use the stored GConfClient.
* gnome-settings-background.h: removed unneeded file.
* gnome-settins-clipboard.c: new file to implement the clipboard manager as
a loadable module. Replaces clipboard-manager.[ch].
* gnome-settings-daemon.c: removed old clipboard manager and use the new
module-based one.
* Makefile.am: added/removed sources.
svn path=/trunk/; revision=7584
2007-05-08 Rodrigo Moya <rodrigo@gnome-db.org>
* gnome-settings-background.c: changed to use the new GnomeSettingsModule
class for loadable modules.
* gnome-settings-daemon.c (initialize_modules, start_modules,
stop_modules): new functions to call modules's methods.
(gnome_settings_daemon_init): get all module types and create objects
from each of them.
(gnome_settings_daemon_new): added code to call loadable modules's
methods where appropriate.
svn path=/trunk/; revision=7580
2007-04-20 Rodrigo Moya <rodrigo@gnome-db.org>
* gnome-settings-module.[ch]: new class for modules.
* Makefile.am: added new files.
svn path=/trunk/; revision=7478
2007-04-11 Ross Burton <ross@burtonini.com>
* xrdb/General.ad:
* xrdb/Motif.ad:
* xrdb/Editres.ad:
* xrdb/Xaw.ad:
* xrdb/Emacs.ad:
Remove all settings that are not related to colour (#428615).
svn path=/trunk/; revision=7462
2007-04-10 Alexander Larsson <alexl@redhat.com>
* utils.c (config_notify):
Also check registered directories for notification.
Fixes theme e.g. switching.
svn path=/trunk/; revision=7456
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=7435
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-26 Jens Granseuer <jensgr@gmx.net>
* gnome-settings-multimedia-keys.c: (dialog_init):
* gsd-media-keys-window.c: (gsd_media_keys_window_is_valid),
(initialize_alpha_mode):
* gsd-media-keys-window.h: rebuild the media window if the state of
composite has changed (fixes bug #408035)
svn path=/trunk/; revision=7425
2007-03-24 Jens Granseuer <jensgr@gmx.net>
* xrdb/Emacs.ad: don't set Emacs.mode-line.attributeBackground as it
seems to cause problems with emacs 22 (closes bug #416823)
svn path=/trunk/; revision=7422
2007-03-22 Jens Granseuer <jensgr@gmx.net>
* gnome-settings-dbus.c: (gnome_settings_server_init): don't crash if
dbus connection is not available (part of bug #411504)
svn path=/trunk/; revision=7415
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-20 Priit Laes <plaes@svn.gnome.org>
* gnome-settings-multimedia-keys.c: (do_media_action), (do_action): Added
handler for media keybinding.
* actions/acme.h: Add defines for media key.
Introduces preferred media application support. Bug #362578.
svn path=/trunk/; revision=7404
2007-03-18 Jens Granseuer <jensgr@gmx.net>
* gnome-settings-multimedia-keys.c: (dialog_show): fix multimedia
window appearing in a different position when shown for the first time
and thus causing a "jump" effect on the second (fixes bug #400915)
svn path=/trunk/; revision=7387
2007-02-23 Jens Granseuer <jensgr@gmx.net>
* gnome-settings-accessibility-keyboard.c:
(gnome_settings_accessibility_keyboard_load): correctly pass the
function address when setting up the event filter
svn path=/trunk/; revision=7328
2007-02-14 Jens Granseuer <jensgr@gmx.net>
* gnome-settings-mouse.c: (configure_button_layout),
(set_left_handed): if X refuses to update the pointer mapping (busy)
don't just ignore the error but retry after a short delay (fixes bug
#349538)
svn path=/trunk/; revision=7295
2007-02-14 Jens Granseuer <jensgr@gmx.net>
* actions/acme-volume-gstreamer.c:
(acme_volume_gstreamer_set_mute),
(acme_volume_gstreamer_get_volume),
(acme_volume_gstreamer_set_volume): properly round volumess so that
volume-up and volume-down act symmetrically, ie. lowering and raising
volume will end up at the original level (fixes bug #389996)
svn path=/trunk/; revision=7294
2007-02-10 Jens Granseuer <jensgr@gmx.net>
* gnome-settings-font.c: (load_cursor): if the new font path could not
be set, revert to the old path (fixes bug #397504)
svn path=/trunk/; revision=7277
2007-02-09 Jens Granseuer <jensgr@gmx.net>
Based on a patch by: Bastien Nocera <hadess@hadess.net>
* gnome-settings-dbus.c:
(gnome_settings_server_media_player_key_pressed):
* gnome-settings-dbus.h:
* gnome-settings-multimedia-keys.c: (do_multimedia_player_action),
(do_action), (acme_filter_events): eat media player keys if someone is
listening on the dbus interface already (fixes bug #394313)
svn path=/trunk/; revision=7271
2007-02-05 William Jon McCann <mccann@jhu.edu>
* gsd-media-keys-window.c: (render_eject), (draw_eject),
(draw_waves), (draw_speaker), (render_speaker),
(draw_volume_boxes), (on_expose_event):
Use #define for the alpha levels.
svn path=/trunk/; revision=7249
2007-02-05 William Jon McCann <mccann@jhu.edu>
* Makefile.am:
* gsd-media-keys-window.c: (load_pixbuf), (render_eject),
(draw_eject), (draw_action_eject), (draw_waves), (draw_speaker),
(render_speaker), (draw_volume_boxes), (draw_action_volume),
(on_expose_event):
* test-media-window.c: (update_state), (test_window), (main):
Make the new volume overlay window follow the
icon and color themes. Add an unstalled test app. Fixes#403320
svn path=/trunk/; revision=7246
2007-01-31 Jens Granseuer <jensgr@gmx.net>
* gnome-settings-multimedia-keys.c: (acme_filter_events): make sure
we have a key event before treating it as such (fixes bug #382503)
svn path=/trunk/; revision=7214
2007-01-31 Jens Granseuer <jensgr@gmx.net>
* gnome-settings-keyboard-xkb.c:
(gnome_settings_keyboard_xkb_init): don't install the same filter
twice; we already install it for all windows, so we don't need
another one for the root window (fixes bug #382504)
svn path=/trunk/; revision=7213
2007-01-08 Jan Arne Petersen <jap@gnome.org>
* gnome-settings-dbus.h, gnome-settings-marshal.list: added new files
from previous patch to svn.
svn path=/trunk/; revision=7107
2007-01-08 Jan Arne Petersen <jap@gnome.org>
Fixes#133815
* gnome-settings-multimedia-keys.c: added support for storing the DBus
server.
(unhookup_keysim, hookup_keysim): removed.
(update_kbd_cb, init_kbd, acme_filter_events): iterate over all handled
keys, not just until the PLAY_KEY.
(do_multimedia_player_action): emit the "media_player_key_pressed" event.
(do_action): call do_multimedia_player_action for all media player events.
(gnome_settings_multimedia_keys_load): start a DBus server.
* gnome-settings-dbus.c: added "media_player_key_pressed" signal.
(find_by_application, find_by_time): new functions to search in the list
of media players.
(settings_daemon_grab_media_player_keys,
settings_daemon_release_media_player_keys): new functions to grab/release
the media players.
(gnome_settings_server_get): new function to create GnomeSettingsServer
objects.
(gnome_settings_server_media_player_key_pressed,
gnome_settings_server_constructor): new functions.
(gnome_settings_server_class_init): add new signal and constructor.
* gnome-settings-dbus.h: new file.
* gsd-infos.xml: added GrabMediaPlayerKeys and ReleaseMediaPlayerKeys
methods to the DBus interface.
* gnome-settings-marshal.list, Makefile.am: generate marshalling
functions.
svn path=/trunk/; revision=7097