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
* delayed-dialog.c (gnome_settings_delayed_show_dialog): new
method to delay showing a dialog until after the window manager is
running.
* gnome-settings-font.c (load_cursor):
* gnome-settings-keyboard-xkb.c (activation_error): Use it.
2006-08-24 Andre Klapper <a9016009@gmx.de>
Fixes#170318
* gnome-settings-multimedia-keys.c (init_kbd): avoid grabbing all
the keyboard when the key code cannot be retrieved.
2006-05-24 Paolo Borelli <pborelli@katamail.com>
Fixes#342570
* gnome-settings-multimedia-keys.c (update_kbd_cb, do_eject_action):
fixed leaked strings returned from gconf_client_get_string.
2006-04-28 Joe Marcus Clarke <marcusi@freebsd.org>
Fixes#338849
* actions/acme-volume-gstreamer.c: added missing header to avoid
64bit crash on missing prototype.