Commit graph

1944 commits

Author SHA1 Message Date
Sergey V. Udaltsov
9bb60f7a53 split the layout chooser into the separate .c file
svn path=/trunk/; revision=7413
2007-03-21 23:55:40 +00:00
Bastien Nocera
dddfaa2a2a Prepend the directory name before loading the files, otherwise, we're
2007-03-21  Bastien Nocera  <hadess@hadess.net>

	* gnome-keybinding-properties.c: (reload_key_entries):
	Prepend the directory name before loading the files, otherwise, we're
	loading them from the current directory, spotted by Fernando Herrera
	<fherrera@onirica.com> (Closes: #420796)


svn path=/trunk/; revision=7411
2007-03-21 19:01:27 +00:00
Jens Granseuer
94238895cb uppercase the rotation options. Closes bug #410959.
2007-03-21  Jens Granseuer  <jensgr@gmx.net>

	* main.c: uppercase the rotation options. Closes bug #410959.

svn path=/trunk/; revision=7410
2007-03-21 17:26:08 +00:00
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
Frederic Crozat
8325f4df39 Disable revert button when using theme engine defaults colors. Close bug
2007-03-21  Frederic Crozat  <fcrozat@mandriva.com>

       * gnome-theme-details.c: (update_color_scheme_tab):
       Disable revert button when using theme engine defaults colors.
       Close bug #417423.


svn path=/trunk/; revision=7406
2007-03-21 09:08:30 +00:00
Priit Laes
b7386fc2e2 Add schemas to media keybinding.
2007-03-20  Priit Laes  <plaes@svn.gnome.org>

	* capplets/keybindings/00-multimedia-key.xml.in:
	* schemas/apps_gnome_settings_daemon_keybindings.schemas.in: Add schemas
	to media keybinding.

	Introduces preferred media application support. Bug #362578.

svn path=/trunk/; revision=7405
2007-03-20 19:16:56 +00:00
Priit Laes
fe4665e55f Glue code to tie everything together. Added widgets and defines for
2007-03-20  Priit Laes  <plaes@svn.gnome.org>

	* gnome-da-capplet.c: Glue code to tie everything together.
	* gnome-da-capplet.h: Added widgets and defines for default mediaplayer.
	* gnome-da-xml.c: (gnome_da_xml_load_xml), (gnome_da_xml_free): Added
	mediaplayer data parser.
	* gnome-da-item.c: Changed occurrences of MailItem to SimpleItem, so we
	can also use it for mediaplayers.
	* gnome-da-item.h: Ditto.
	* gnome-default-applications-properties.glade: Make Multimedia tab visible
	and change the UI to include our favorite mediaplayer selector.
	* gnome-default-applications.xml.in: Add some media players to the list.

	Introduces preferred media application support. Bug #362578.

svn path=/trunk/; revision=7403
2007-03-20 18:53:59 +00:00
Jens Granseuer
29478049dd Based on a patch by: Bastien Nocera <hadess@hadess.net>
2007-03-19  Jens Granseuer  <jensgr@gmx.net>

	Based on a patch by: Bastien Nocera <hadess@hadess.net>

	* Makefile.am: don't try to build about-me if it's been disabled in
	configure and make is run in the subdir (closes bug #408552)

svn path=/trunk/; revision=7399
2007-03-19 18:28:38 +00:00
Bastien Nocera
b7e17af415 Fix the path from which we'd load the keybindings
2007-03-19  Bastien Nocera  <hadess@hadess.net>

	* Makefile.am:
	* gnome-keybinding-properties.c: (reload_key_entries):
	Fix the path from which we'd load the keybindings


svn path=/trunk/; revision=7398
2007-03-19 15:23:33 +00:00
Bastien Nocera
fc29de6d6b Make all the keybindings be external to the keybindings capplet itself.
2007-03-19  Bastien Nocera  <hadess@hadess.net>

	* capplets/keybindings/00-multimedia-key.xml.in:
	* capplets/keybindings/01-desktop-key.xml.in:
	* capplets/keybindings/50-metacity-desktop-key.xml.in:
	* capplets/keybindings/50-metacity-key.xml.in:
	* capplets/keybindings/Makefile.am:
	* capplets/keybindings/gnome-keybinding-properties.c:
	(create_dialog), (should_show_key), (count_rows_foreach),
	(ensure_scrollbar), (append_keys_to_tree), (parse_start_tag),
	(append_keys_to_tree_from_file), (reload_key_entries),
	(setup_dialog):
	* po/POTFILES.in: Make all the keybindings be external to the keybindings
	capplet itself. This allows applications to add their own keybindings
	without recompilation (Closes: #410758)


svn path=/trunk/; revision=7397
2007-03-19 15:14:06 +00:00
Jens Granseuer
de16439ab3 Patch by: Vitaliy Ischenko <betalb@gmail.com>
2007-03-18  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Vitaliy Ischenko <betalb@gmail.com>

	* capplets/about-me/gnome-about-me.glade:
	* capplets/accessibility/keyboard/gnome-accessibility-keyboard-properties.glade:
	* capplets/default-applications/gnome-default-applications-properties.glade:
	* capplets/keyboard/gnome-keyboard-properties.glade:
	* capplets/network/gnome-network-properties.glade:
	don't hardcode the invisible char property in glade files (closes bug
	#393879)

svn path=/trunk/; revision=7395
2007-03-18 17:39:22 +00:00
Jens Granseuer
ef78a7168a Patch by: Andreas Koehler <andi5.py@gmx.net>
2007-03-18  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Andreas Koehler <andi5.py@gmx.net>

	* gnome-mouse-properties.glade: use automatic instead of always
	scrollbar policy for the mouse pointer tab (fixes #345884)

svn path=/trunk/; revision=7394
2007-03-18 17:26:23 +00:00
Jens Granseuer
661686c5e8 Patch by: Andreas Koehler <andi5.py@gmx.net>
2007-03-18  Jens Granseuer  <jensgr@gmx.net>

        Patch by: Andreas Koehler <andi5.py@gmx.net>

	* gnome-keyboard-properties.glade: use automatic instead of always
        scrollbar policy for the layout selection dialog (fixes #345884)

svn path=/trunk/; revision=7393
2007-03-18 17:25:58 +00:00
Jens Granseuer
06d1bdc9d2 use a radio button instead of a checkbox to indicate the default layout.
2007-03-18  Jens Granseuer  <jensgr@gmx.net>

	* gnome-keyboard-properties-xkblt.c:
	(xkb_layouts_prepare_selected_tree): use a radio button instead of a
	checkbox to indicate the default layout. Fixes #389469.

svn path=/trunk/; revision=7392
2007-03-18 17:13:47 +00:00
Christian Persch
c7b803a131 Fix button label alignment. Bug #416238.
2007-03-18  Christian Persch  <chpe@gnome.org>

	* sound-properties.glade: Fix button label alignment. Bug #416238.

svn path=/trunk/; revision=7390
2007-03-18 16:15:13 +00:00
Christian Persch
c490230832 Revert unrelated change accidentally committed with the previous commit.
2007-03-18  Christian Persch  <chpe@gnome.org>

	* sound-properties-capplet.c: (create_dialog): Revert unrelated change
	accidentally committed with the previous commit.

svn path=/trunk/; revision=7389
2007-03-18 14:27:53 +00:00
Christian Persch
9975a0cc64 Initialise threads early, and fix option context translation. Bug #416239.
2007-03-18  Christian Persch  <chpe@gnome.org>

	* sound-properties-capplet.c: (create_dialog), (main): Initialise
	threads early, and fix option context translation. Bug #416239.

svn path=/trunk/; revision=7388
2007-03-18 14:25:53 +00:00
Jens Granseuer
8b90d02157 fix build with gcc 2, and move setting the sort column somewhere sensible
2007-03-05  Jens Granseuer  <jensgr@gmx.net>

	* gnome-mouse-properties.c: (populate_tree_model), (setup_dialog): fix
	build with gcc 2, and move setting the sort column somewhere sensible

svn path=/trunk/; revision=7364
2007-03-05 19:26:18 +00:00
Jens Granseuer
5a8978b069 Patch by: Andreas Koehler <andi5.py@gmx.net>
2007-03-04  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Andreas Koehler <andi5.py@gmx.net>

	* gnome-about-me.glade: use proper shadow type for the address fields
	(fixes bug #414061)

svn path=/trunk/; revision=7362
2007-03-04 21:07:52 +00:00
Jens Granseuer
7227b2dafd plug leaks. Fixes bug #396069.
2007-03-04  Jens Granseuer  <jensgr@gmx.net>

	* gnome-wp-capplet.c: (gnome_wp_add_images),
	(gnome_wp_file_open_dialog), (bg_properties_dragged_image),
	(gnome_wp_main_quit), (gnome_wp_scale_type_changed),
	(gnome_wp_shade_type_changed), (gnome_wp_load_stuffs),
	(gnome_wp_options_changed), (gnome_wp_shading_changed),
	(wallpaper_properties_init), (main):
	* gnome-wp-item.c: (gnome_wp_item_new),
	(gnome_wp_item_get_thumbnail):
	* gnome-wp-xml.c: (gnome_wp_load_legacy), (gnome_wp_xml_load_xml),
	(gnome_wp_list_flatten), (gnome_wp_xml_save_list): plug leaks.
	Fixes bug #396069.

svn path=/trunk/; revision=7361
2007-03-04 20:42:33 +00:00
Benjamin Berg
36c9732484 Free the engine and color scheme lists. Removed some bogus old code that
2007-03-04  Benjamin Berg  <benjamin@sipsolutions.net>

	* gnome-theme-details.c: (update_color_scheme_tab):
	Free the engine and color scheme lists.
	Removed some bogus old code that caused the current theme to be
	checked instead of the new one.

svn path=/trunk/; revision=7360
2007-03-04 19:59:56 +00:00
Thomas Wood
bc8e3ee007 Don't try and open null filenames Reset the gtk_color_scheme after a
2007-03-04  Thomas Wood  <thos@gnome.org>

	* gnome-theme-info.c: (gnome_theme_read_meta_theme): Don't try and open null
	filenames
	* theme-thumbnail.c: (message_from_capplet): Reset the gtk_color_scheme after
	a thumbnail has been generated.

svn path=/trunk/; revision=7359
2007-03-04 18:28:57 +00:00
Thomas Wood
68b68e08b8 Patch by: Thomas Zajic <zlatko@gmx.at>
2007-03-04  Thomas Wood  <thos@gnome.org>

	Patch by: Thomas Zajic <zlatko@gmx.at>

	* gnome-mouse-properties.c: (populate_tree_model): Add two popular cursor
	sizes to the filter, and sort "Pointers" list alphabetically.

svn path=/trunk/; revision=7358
2007-03-04 17:39:36 +00:00
Thomas Wood
3a4bd9578d Move gtkrc-utils from capplets/theme-switcher to capplets/common.
2007-03-04  Thomas Wood  <thos@gnome.org>

	* Makefile.am:
	* gtkrc-utils.c: (gtkrc_get_details):
	* gtkrc-utils.h:
	Move gtkrc-utils from capplets/theme-switcher to capplets/common.

	* gnome-theme-info.c: (gnome_theme_read_meta_theme): Search the gtkrc for
	the colour scheme if none was found in the metatheme file. Fixes a problem
	when comparing two metathemes which only differ by the colour scheme setting.


svn path=/trunk/; revision=7356
2007-03-04 17:17:47 +00:00
Jens Granseuer
79b4f3b6bd fix double-free reported by Sandino Flores-Moreno. Closes bug #413352.
2007-03-01  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (create_dialog): fix double-free reported by Sandino
	Flores-Moreno. Closes bug #413352.

svn path=/trunk/; revision=7351
2007-03-01 18:01:02 +00:00
Thomas Wood
a93dd44a88 Replace a deprecated function (color_select), (gnome_theme_details_init):
2007-02-28  Thomas Wood  <thos@gnome.org>

	* gnome-theme-details.c: (load_theme_names): Replace a deprecated function
	(color_select), (gnome_theme_details_init): Rename color_select() to gtk_color_scheme_changed()

svn path=/trunk/; revision=7345
2007-02-28 09:36:57 +00:00
Thomas Wood
4a33f799ef Set the gtk-color-scheme even if it is blank. Set the gtk-color-scheme
2007-02-28  Thomas Wood  <thos@gnome.org>

	* gnome-theme-apply.c: (gnome_meta_theme_set): Set the gtk-color-scheme even
	if it is blank.
	* theme-thumbnail.c: (create_image), (handle_bytes),
	(generate_theme_thumbnail), (generate_theme_thumbnail_async),
	(theme_thumbnail_factory_init): Set the gtk-color-scheme when creating the
	thumbnail.

svn path=/trunk/; revision=7344
2007-02-28 09:18:24 +00:00
Jens Granseuer
df30efc30f another attempt at fixing bug #411697. The previous commit fell a bit
2007-02-27  Jens Granseuer  <jensgr@gmx.net>

	* gnome-about-me-password.c: (stop_passwd),
	(free_passwd_resources), (passdlg_process_response): another attempt
	at fixing bug #411697. The previous commit fell a bit short

svn path=/trunk/; revision=7343
2007-02-27 19:56:12 +00:00
Jens Granseuer
9ff02af06c prevent the child watcher from accessing already released memory after the
2007-02-26  Jens Granseuer  <jensgr@gmx.net>

	* gnome-about-me-password.c: (stop_passwd), (child_watch_remove),
	(free_passwd_resources): prevent the child watcher from accessing
	already released memory after the dialog has been closed (should fix
	bug #411697)

	* gnome-about-me-password.c: (gnome_about_me_password): unref dialog
	when we're done

	* gnome-about-me.c: (about_me_setup_dialog): remove redundant warning

svn path=/trunk/; revision=7338
2007-02-26 17:05:09 +00:00
Jens Granseuer
f85d110b1f Patch by: Diego Escalante Urrelo <diego@aureal.com.pe>
2007-02-25  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Diego Escalante Urrelo <diego@aureal.com.pe>

	* e-image-chooser.c: (set_image_from_data): don't use a composite
	pixbuf, avoiding some unnecessary clipping (fixes bug #380315)

svn path=/trunk/; revision=7335
2007-02-25 12:20:31 +00:00
Jens Granseuer
67d5239993 change default dir for the image chooser to $datadir/pixmaps/faces (same
2007-02-25  Jens Granseuer  <jensgr@gmx.net>

	* Makefile.am:
	* gnome-about-me.c: (about_me_image_clicked_cb): change default dir for
	the image chooser to $datadir/pixmaps/faces (same as gdm) and add a
	bookmark for ~/Pictures if available (fixes bug #408305)

svn path=/trunk/; revision=7333
2007-02-25 10:07:28 +00:00
Jens Granseuer
e5b4a38592 fix harmless copy'n'paste error
2007-02-23  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-installer.c: (transfer_done_tarbz2_idle_cb): fix
	harmless copy'n'paste error

svn path=/trunk/; revision=7326
2007-02-23 18:05:03 +00:00
Jens Granseuer
3950a63d86 add another NULL check. Should really fix #398631.
2007-02-23  Jens Granseuer  <jensgr@gmx.net>

	* gnome-keyboard-properties-xkblt.c: (def_group_in_gconf_changed):
	add another NULL check. Should really fix #398631.

svn path=/trunk/; revision=7325
2007-02-23 17:33:22 +00:00
Jens Granseuer
53c80ad47b color components in GdkColor are guint16 not guint8, so format
2007-02-22  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-details.c: (color_select): color components in
	GdkColor are guint16 not guint8, so format accordingly. Fixes bug
	398331.

svn path=/trunk/; revision=7321
2007-02-22 20:35:17 +00:00
Jens Granseuer
bf8ec9cf36 constify arg to fix a compiler warning
2007-02-22  Jens Granseuer  <jensgr@gmx.net>

	* gtkrc-utils.c: (gtkrc_find_named):
	* gtkrc-utils.h: constify arg to fix a compiler warning

svn path=/trunk/; revision=7320
2007-02-22 19:17:18 +00:00
Jens Granseuer
204c1c0418 update selected_fg_color from the correct slot. Fixes bug 410764.
2007-02-22  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-details.c: (color_select): update selected_fg_color
	from the correct slot. Fixes bug 410764.

svn path=/trunk/; revision=7319
2007-02-22 19:11:24 +00:00
Jens Granseuer
b00934aac1 remove some long-dead code; don't leak stuff on error, either
2007-02-22  Jens Granseuer  <jensgr@gmx.net>

	* gnome-window-properties.c: (alt_click_radio_toggled_callback),
	(main), (reload_mouse_modifiers): remove some long-dead code; don't leak
	stuff on error, either

svn path=/trunk/; revision=7318
2007-02-22 17:38:18 +00:00
Jens Granseuer
3041f4bda8 clear GConf client cache before reloading since cached values don't pass
2007-02-19  Jens Granseuer  <jensgr@gmx.net>

	* gnome-keybinding-properties.c: (clear_old_model): clear GConf client
	cache before reloading since cached values don't pass the schema name
	along which can make entries vanish from the list (fixes bug 394776)

svn path=/trunk/; revision=7309
2007-02-19 17:35:34 +00:00
Jens Granseuer
f469d6a55d don't try to read into invalid territory when the user set a custom
2007-02-13  Jens Granseuer  <jensgr@gmx.net>

	* gnome-da-capplet.c: (web_gconf_changed_cb): don't try to read into
	invalid territory when the user set a custom command without spaces.
	Closes bug #407601.

svn path=/trunk/; revision=7291
2007-02-13 22:41:50 +00:00
Jens Granseuer
3bc84f6ace really fix DATADIR and make directory definitions more consistent with
2007-02-13  Jens Granseuer  <jensgr@gmx.net>

	* Makefile.am:
	* gnome-da-capplet.c: (show_dialog):
	* gnome-da-xml.c: (gnome_da_xml_load_list): really fix DATADIR and
	make directory definitions more consistent with other capplets.
	Closes bug #407597.

svn path=/trunk/; revision=7290
2007-02-13 22:19:12 +00:00
Jens Granseuer
b78551cf4c fix possible crash
2007-02-11  Jens Granseuer  <jensgr@gmx.net>

	* gnome-about-me.c: (about_me_focus_out): fix possible crash

svn path=/trunk/; revision=7279
2007-02-11 11:15:46 +00:00
Jens Granseuer
6bb442dcc4 Patch by: Patrick Wade <patrick.wade@sun.com>
2007-02-10  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Patrick Wade <patrick.wade@sun.com>

	* sound-properties.glade: add a11y label relations for the devices
	tab (fixes bug #369302)

svn path=/trunk/; revision=7276
2007-02-10 13:08:10 +00:00
Jens Granseuer
de5b25e235 remove some dead code, and don't crash if the glade file is not available
2007-02-09  Jens Granseuer  <jensgr@gmx.net>

	* gnome-mouse-properties.c: (create_dialog), (main): remove some dead
	code, and don't crash if the glade file is not available

svn path=/trunk/; revision=7273
2007-02-09 17:34:29 +00:00
Jens Granseuer
00c6c0d602 change "Editable menu accelerators" to "Editable menu shortcut keys" as
2007-02-08  Jens Granseuer  <jensgr@gmx.net>

	* gnome-ui-properties.glade: change "Editable menu accelerators" to
	"Editable menu shortcut keys" as per the style guide (Closes: #337624)

svn path=/trunk/; revision=7266
2007-02-08 20:34:42 +00:00
Jens Granseuer
c76a7cc349 fix some reference leaks and don't segfault if the glade file is not
2007-02-08  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (create_dialog), (main): fix some reference leaks and don't
	segfault if the glade file is not available

svn path=/trunk/; revision=7264
2007-02-08 19:45:59 +00:00
Mariano Suárez-Alvarez
a9b2d9ed9f added gconf:/apps/metacity/global_keybindings/cycle_group
2007-02-08  Mariano Suárez-Alvarez  <mariano@gnome.org>

	* gnome-keybinding-properties.c (metacity_key_list): added 
	gconf:/apps/metacity/global_keybindings/cycle_group


svn path=/trunk/; revision=7263
2007-02-08 17:57:07 +00:00
Thomas Wood
1d751d6664 Patch by: Matthias Clasen <mclasen@redhat.com>
2007-02-08  Thomas Wood  <thos@gnome.org>

	Patch by: Matthias Clasen <mclasen@redhat.com>

	* gnome-theme-details.c: (gtk_theme_update_remove_button),
	(update_color_scheme_tab), (gtk_theme_selection_changed),
	(color_select), (revert_color_scheme_key),
	(gnome_theme_details_init), (update_color_buttons_from_string),
	(gnome_theme_details_update_from_gconf): Listens for changes in the
	gtk-color-scheme property of GtkSettings. Fixes bug 405210.

svn path=/trunk/; revision=7261
2007-02-08 00:23:12 +00:00
Jens Granseuer
c6267e8a0b fix various memory leaks
2007-02-07  Jens Granseuer  <jensgr@gmx.net>

	* gnome-about-me.c: (about_me_destroy),
	(about_me_button_clicked_cb), (about_me_setup_dialog), (main): fix
	various memory leaks

svn path=/trunk/; revision=7258
2007-02-07 21:41:41 +00:00
Jens Granseuer
a8497f4c62 fix build in general, with gcc 2 in particular, and also get rid of a few
2007-02-07  Jens Granseuer  <jensgr@gmx.net>

	* Makefile.am:
	* gnome-about-me-password.c: (passdlg_set_auth_state),
	(passdlg_validate_passwords):
	* gnome-about-me.c: (about_me_load_string_field),
	(about_me_setup_dialog): fix build in general, with gcc 2 in particular,
	and also get rid of a few warnings

svn path=/trunk/; revision=7257
2007-02-07 20:46:34 +00:00
Mariano Suárez-Alvarez
7dca4de3e2 organize the way things a cleared at exit time so as to avoid warnings.
2007-02-07  Mariano Suárez-Alvarez  <mariano@gnome.org>

	* gnome-keybinding-properties.c (clear_old_model, reload_key_entries,
	cb_dialog_response, setup_dialog, main): organize the way things a cleared
	at exit time so as to avoid warnings. (fixes bug 405175)



svn path=/trunk/; revision=7255
2007-02-07 18:34:49 +00:00