Commit graph

291 commits

Author SHA1 Message Date
Jens Granseuer
d69ad6a3fc fix compiler warnings (closes bug #438152)
2007-07-01  Jens Granseuer  <jensgr@gmx.net>

	* factory.c: (main):
	* gnome-settings-keybindings.c:
	* gnome-settings-mouse.c:
	* gnome-settings-screensaver.c: (key_toggled_cb):
	* gnome-settings-xrdb.c: fix compiler warnings (closes bug #438152)

svn path=/trunk/; revision=7811
2007-07-01 15:37:19 +00:00
Jens Granseuer
9c0c8e49ec add a frame to the media popup (closes bug #451674)
2007-06-29  Jens Granseuer  <jensgr@gmx.net>

	* actions/acme.glade:
	* gsd-media-keys-window.c: (gsd_media_keys_window_init): add a frame to
	the media popup (closes bug #451674)

svn path=/trunk/; revision=7803
2007-06-29 16:16:24 +00:00
Rodrigo Moya
1872955fe9 incorporate fixes from Matthias Clasen in bug #430889
2007-06-22  Rodrigo Moya <rodrigo@gnome-db.org>

	* gnome-settings-daemon.c: incorporate fixes from Matthias Clasen in
	bug #430889
	(gnome_settings_daemon_init): create the DBus server here.
	(gnome_settings_daemon_new): install an idle callback to initialize the
	modules.
	(init_modules_idle_cb): initialize modules and install an idle callback
	to start the modules.
	(start_modules_idle_cb): start modules here.
	(finalize): unref the DBus service.

svn path=/trunk/; revision=7757
2007-06-22 11:48:14 +00:00
Rodrigo Moya
4f4291f6d4 all modules use now the new arch.
2007-06-21  Rodrigo Moya <rodrigo@gnome-db.org>

	* gnome-settings-accessibility-keyboard.c:
	* gnome-settings-keybindings.c:
	* gnome-settings-keyboard.c:
	* gnome-settings-multimedia-keys.c:
	* gnome-settings-xrdb.c:
	* gnome-settings-daemon.c: all modules use now the new arch.

	* gnome-settings-background.c (background_callback): pass the correct
	argument to the idle callback.

svn path=/trunk/; revision=7756
2007-06-21 12:19:06 +00:00
Rodrigo Moya
89d4dc18ff return TRUE if the module does not implement the method. It's not an
2007-06-19  Rodrigo Moya <rodrigo@gnome-db.org>

	* gnome-settings-module.c (gnome_settings_module_start|_stop): return
	TRUE if the module does not implement the method. It's not an error,
	just the module does not need to implement it.

	* gnome-settings-daemon.c (gnome_settings_daemon_init): allocate memory
	for the index in the hash table.

svn path=/trunk/; revision=7753
2007-06-20 11:07:32 +00:00
Rodrigo Moya
a4f397b6f7 converted to new arch.
2007-06-18  Rodrigo Moya <rodrigo@gnome-db.org>

	* gnome-settings-typing-break.c: converted to new arch.

	* gnome-settings-daemon.c: use new converted modules.

	* Makefile.am: removed unneeded header files.

	* factory.c (main): call g_thread_init to avoid warnings.

svn path=/trunk/; revision=7747
2007-06-18 20:50:39 +00:00
Jens Granseuer
73c40991a8 remove non-existing gnome-settings-xsettings.h
2007-06-18  Jens Granseuer  <jensgr@gmx.net>

	* Makefile.am: remove non-existing gnome-settings-xsettings.h

svn path=/trunk/; revision=7744
2007-06-18 17:55:52 +00:00
Jens Granseuer
a2ec246221 don't leak the GError
2007-06-15  Jens Granseuer  <jensgr@gmx.net>

	* gnome-settings-screensaver.c:
	(gnome_settings_module_screensaver_start): don't leak the GError

svn path=/trunk/; revision=7727
2007-06-15 16:31:15 +00:00
Bastien Nocera
0faffda202 Force launching nautilus in the home directory, rather than relying on it
2007-06-11  Bastien Nocera  <hadess@hadess.net>

	* gnome-settings-multimedia-keys.c: (do_action): Force launching
	nautilus in the home directory, rather than relying on it
	opening there (Closes: #356069)


svn path=/trunk/; revision=7716
2007-06-11 09:06:15 +00:00
Rodrigo Moya
ff9f268fff converted more modules to the new arch.
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-06-06 11:51:40 +00:00
Rodrigo Moya
759c98a608 converted font module to a loadable module.
2007-06-05  Rodrigo Moya <rodrigo@gnome-db.org>

	* gnome-settings-font.c:
	* gnome-settings-daemon.c: converted font module to a loadable module.

svn path=/trunk/; revision=7691
2007-06-05 15:45:16 +00:00
Jan Arne Petersen
d2b6d5ef48 set the device property to the correct value before opening the mixer.
2007-05-28  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* actions/acme-volume-gstreamer.c: (acme_volume_gstreamer_open): set
	the device property to the correct value before opening the mixer.
	(closes bug #441552)


svn path=/trunk/; revision=7668
2007-05-28 12:25:56 +00:00
Jens Granseuer
3ba13b0c46 archiver/*
2007-05-28  Jens Granseuer  <jensgr@gmx.net>

	* TODO.xml:
	* archiver/*
	* control-center.spec.in:
	* debian/*:
	* idl/*:
	* root-manager/*: remove obsolete files

2007-05-28  Jens Granseuer  <jensgr@gmx.net>

	* GNOME_SettingsDaemon.server.in: remove file

svn path=/trunk/; revision=7667
2007-05-28 12:09:18 +00:00
Jens Granseuer
ec44448235 sync with libegg code (closes bug #441042)
2007-05-25  Jens Granseuer  <jensgr@gmx.net>

	* eggaccelerators.c: (egg_accelerator_parse_virtual): sync with libegg
	code (closes bug #441042)

svn path=/trunk/; revision=7657
2007-05-25 17:28:05 +00:00
Jens Granseuer
a76ef5e383 Patch by: Chad Miller
2007-05-17  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Chad Miller
                            
	* gnome-settings-dbus.c: (gnome_settings_server_init): double-check
	that DBUS really passed us an error (closes bug #439208)

svn path=/trunk/; revision=7632
2007-05-17 19:45:08 +00:00
Rodrigo Moya
ab651d94c1 declare module types registration functions.
2007-05-17  Rodrigo Moya <rodrigo@gnome-db.org>

	* gnome-settings-daemon.c: declare module types registration functions.

svn path=/trunk/; revision=7630
2007-05-17 09:00:56 +00:00
Rodrigo Moya
5d9f6730ea use correct parent for GnomeSettingsModuleScreensaverClass.
2007-05-17  Rodrigo Moya <rodrigo@gnome-db.org>

	* gnome-settings-screensaver.c: use correct parent for
	GnomeSettingsModuleScreensaverClass.

svn path=/trunk/; revision=7629
2007-05-17 08:47:57 +00:00
Jens Granseuer
600e0694c9 use "eject -T" as the default eject command (closes bug #386297)
2007-05-13  Jens Granseuer  <jensgr@gmx.net>

	* gnome-settings-multimedia-keys.c: (do_eject_action): use "eject -T" as
	the default eject command (closes bug #386297)

svn path=/trunk/; revision=7600
2007-05-13 13:09:25 +00:00
Rodrigo Moya
01a3eccfdc converted to a loadable module.
2007-05-09  Rodrigo Moya <rodrigo@gnome-db.org>

	* gnome-settings-screensaver.c: converted to a loadable module.

	* gnome-settings-screensaver.h: removed unneeded file.

svn path=/trunk/; revision=7586
2007-05-09 15:51:40 +00:00
Rodrigo Moya
275f942e68 no need to keep the GConfClient around, it is already stored in the
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 15:05:11 +00:00
Rodrigo Moya
19cba117f3 removed G_BEGIN|END_DECLS. (gnome_settings_module_background_get_type):
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-09 15:01:51 +00:00
Rodrigo Moya
55b39ed23a changed to use the new GnomeSettingsModule class for loadable modules.
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-05-08 10:51:22 +00:00
Rodrigo Moya
c246e6aa6c new method.
2007-04-23  Rodrigo Moya <rodrigo@gnome-db.org>

	* gnome-settings-module.[ch] (gnome_settings_module_get_runlevel):
	new method.

svn path=/trunk/; revision=7485
2007-04-23 16:26:37 +00:00
Rodrigo Moya
6535f4364e new class for modules.
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-20 08:35:45 +00:00
Ross Burton
8e4d835261 Remove all settings that are not related to colour (#428615).
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-11 19:02:18 +00:00
Alexander Larsson
d8426a9677 Also check registered directories for notification. Fixes theme e.g.
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-10 11:50:49 +00:00
Rodrigo Moya
53bb60e945 return NULL when there is an error, not exit(), so that we do proper
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 15:29:28 +00:00
Rodrigo Moya
e16cbd24dc return NULL when there is an error, not exit(), so that we do proper
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-04-02 15:27:35 +00:00
Priit Laes
5895ee2be5 Fix launch application in terminal support. (closes bug #362578).
2007-03-29  Priit Laes  <amd@store20.com>

	* gnome-settings-multimedia-keys.c: (get_term_command), (execute),
	(do_unknown_action), (do_help_action), (do_mail_action),
	(do_media_action), (do_www_action), (do_exit_action), (do_eject_action),
	(do_action): Fix launch application in terminal support. (closes bug
	#362578).

svn path=/trunk/; revision=7429
2007-03-29 18:47:28 +00:00
Jens Granseuer
77a88ffbfe rebuild the media window if the state of composite has changed (fixes bug
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-26 19:01:50 +00:00
Jens Granseuer
32b1374a8b don't set Emacs.mode-line.attributeBackground as it seems to cause
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-24 15:23:40 +00:00
Jens Granseuer
044eb80355 don't crash if dbus connection is not available (part of bug #411504)
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-22 19:07:34 +00:00
Priit Laes
a0427192af Added handler for media keybinding. Add defines for media key.
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-20 19:01:26 +00:00
Jens Granseuer
711d022d03 fix multimedia window appearing in a different position when shown for the
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-03-18 13:53:58 +00:00
Jens Granseuer
a4f80edf07 ref the master track (fixes bug #412467)
2007-02-28  Jens Granseuer  <jensgr@gmx.net>

	* actions/acme-volume-gstreamer.c: (acme_volume_gstreamer_open): ref
	the master track (fixes bug #412467)

svn path=/trunk/; revision=7346
2007-02-28 17:08:55 +00:00
Jens Granseuer
2ae3f6669e fix compiler warning
2007-02-25  Jens Granseuer  <jensgr@gmx.net>

	* test-media-window.c: (test_window): fix compiler warning

svn path=/trunk/; revision=7332
2007-02-25 10:00:59 +00:00
Jens Granseuer
2ea899f11e correctly pass the function address when setting up the event filter
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-23 22:52:53 +00:00
Jens Granseuer
ec87da8b18 don't install the same filter twice for the default root window (fixes bug
2007-02-16  Jens Granseuer  <jensgr@gmx.net>

	* gnome-settings-keybindings.c: (gnome_settings_keybindings_init):
	don't install the same filter twice for the default root window (fixes
	bug #408643)

svn path=/trunk/; revision=7304
2007-02-16 17:42:27 +00:00
Jens Granseuer
be5dce4b64 if X refuses to update the pointer mapping (busy) don't just ignore the
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 17:32:48 +00:00
Jens Granseuer
ebb2630851 properly round volumess so that volume-up and volume-down act
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-14 17:17:59 +00:00
Jens Granseuer
da4b6a8507 if the new font path could not be set, revert to the old path (fixes bug
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-10 16:11:51 +00:00
Jens Granseuer
c3b4008673 Based on a patch by: Bastien Nocera <hadess@hadess.net>
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-09 16:59:35 +00:00
William Jon McCann
2f7a6dd301 Use #define for the alpha levels.
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 20:10:16 +00:00
William Jon McCann
c54b651b76 Make the new volume overlay window follow the icon and color themes. Add
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-02-05 05:25:27 +00:00
Jens Granseuer
a02dd61e0b Patch by: Paolo Borelli <pborelli@katamail.com>
2007-02-03  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Paolo Borelli <pborelli@katamail.com>

	* gnome-settings-keybindings.c: (get_screens_list),
	(screen_exec_display_string), (entry_get_string),
	(bindings_get_entry), (gnome_settings_keybindings_load): plug some
	memory leaks (fixes bug #342672)

svn path=/trunk/; revision=7238
2007-02-03 14:20:19 +00:00
Jens Granseuer
39ed90d6f3 round volume instead of truncating on unmute so a simple mute/unmute
2007-02-02  Jens Granseuer  <jensgr@gmx.net>

	* actions/acme-volume-gstreamer.c:
	(acme_volume_gstreamer_set_mute): round volume instead of
	truncating on unmute so a simple mute/unmute doesn't lower the
	volume (fixes bug #400966)

svn path=/trunk/; revision=7223
2007-02-01 22:53:22 +00:00
Jens Granseuer
413ec80cd2 don't leak the GnomeProgram reference
2007-01-31  Jens Granseuer  <jensgr@gmx.net>

	* factory.c: (main): don't leak the GnomeProgram reference

svn path=/trunk/; revision=7218
2007-01-31 19:08:51 +00:00
Jens Granseuer
28de04be2a make sure we have a key event before treating it as such (fixes bug
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 17:31:43 +00:00
Jens Granseuer
204dd9a088 don't install the same filter twice; we already install it for all
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-31 17:24:16 +00:00
Jens Granseuer
d6ba28d56d property is called "focus-on-map", not "set-focus-on-map"
2007-01-30  Jens Granseuer  <jensgr@gmx.net>
                                          
        * gsd-media-keys-window.c: (gsd_media_keys_window_new): property
        is called "focus-on-map", not "set-focus-on-map"

svn path=/trunk/; revision=7209
2007-01-30 20:54:46 +00:00