Commit graph

319 commits

Author SHA1 Message Date
Jens Granseuer
7a42e549fb make the cursor themes delete button work
2007-10-26  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (cursor_theme_delete_cb), (style_init):
	* theme-util.c: (theme_delete): make the cursor themes delete button
	work

svn path=/trunk/; revision=8208
2007-10-26 19:08:12 +00:00
Jens Granseuer
701e14dad5 move some more of the cursor size widget initialization to glade. This
2007-10-25  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (style_init):
	* data/appearance.glade: move some more of the cursor size widget
	initialization to glade. This allows the slider to be updated properly
	on startup (bug #490103)

svn path=/trunk/; revision=8201
2007-10-25 20:27:54 +00:00
Denis Washington
891f7ac4c1 More fixes regarding integration of cursor themes into metathemes.
2007-10-25  Denis Washington  <denisw@svn.gnome.org>

	More fixes regarding integration of cursor themes into metathemes.

	* appearance/appearance-themes.c: Take cursor size into account in
	theme_is_equal(), and also watch the cursor theme/size gconf keys for
	changes.

	* common/gnome-theme-apply.c: Fix the cursor size being only being
	updated if the cursor theme changed too.
	* common/gnome-theme-info.c: Also watch 
/usr/share/cursors/xorg-x11
	for cursor themes (path used by Gentoo Linux).

svn path=/trunk/; revision=8198
2007-10-25 16:01:44 +00:00
Jens Granseuer
3820e469c9 return a new theme instead of munging whatever got passed in. Makes for a
2007-10-24  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_load_from_gconf),
	(theme_details_changed_cb), (themes_init): return a new theme instead
	of munging whatever got passed in. Makes for a saner API

svn path=/trunk/; revision=8192
2007-10-24 18:34:03 +00:00
Jens Granseuer
5223c0f037 The fix for bug #420154 not only made the entry for the theme installer
2007-10-24  Jens Granseuer  <jensgr@gmx.net>

	The fix for bug #420154 not only made the entry for the theme installer
	disappear from the menu, but also disabled mime-type handling for Gnome
	Theme Packages (bug #486811). Revert that change and use NoDisplay=true
	instead. This will remove the entry from the menu (not from the menu
	editor, though), and not break mime handling.

	* data/gnome-theme-installer.desktop.in.in: use NoDisplay=true instead
	of OnlyShowIn=;

svn path=/trunk/; revision=8190
2007-10-24 17:05:51 +00:00
Jens Granseuer
686b7b40a9 really make sure gtk, metacity, icon, and cursor themes are never NULL
2007-10-18  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_load_from_gconf),
	(theme_set_custom_from_theme): really make sure gtk, metacity, icon, and
	cursor themes are never NULL (should fix #487257 if the last commit didn't
	already)

svn path=/trunk/; revision=8180
2007-10-18 17:23:48 +00:00
Jens Granseuer
c9b09854a9 When updating theme info from GConf or copying it for customization, we
2007-10-14  Jens Granseuer  <jensgr@gmx.net>

	When updating theme info from GConf or copying it for customization, we
	were ignoring xcursor settings. As a result, saved custom themes always
	had the default theme set. (bug #485709)

	* appearance-themes.c: (get_default_int_from_key),
	(theme_load_from_gconf), (theme_set_custom_from_theme): when setting up
	theme info, take cursor settings into account

svn path=/trunk/; revision=8168
2007-10-14 10:21:57 +00:00
Jens Granseuer
5ed22b4a3a fix crash if we fail to convert a filename to UTF-8
2007-10-09  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_props_wp_set): fix crash if we fail to
	convert a filename to UTF-8

svn path=/trunk/; revision=8164
2007-10-09 18:58:38 +00:00
Jens Granseuer
97f89ca9e1 Patch by: Stephane Loeuillet <leroutier@gmail.com>
2007-10-02  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Stephane Loeuillet <leroutier@gmail.com>

	* capplets/about-me/gnome-about-me.desktop.in.in:
	* capplets/accessibility/at-properties/at-properties.desktop.in.in:
	* capplets/accessibility/keyboard/accessibility-keyboard.desktop.in.in:
	* capplets/appearance/data/gnome-appearance-properties.desktop.in.in:
	* capplets/appearance/data/gnome-theme-installer.desktop.in.in:
	* capplets/appearance/theme-save.c:
	* capplets/default-applications/default-applications.desktop.in.in:
	* capplets/default-applications/gnome-at-session.desktop.in.in:
	* capplets/display/display-properties.desktop.in.in:
	* capplets/keybindings/keybinding.desktop.in.in:
	* capplets/keyboard/keyboard.desktop.in.in:
	* capplets/mouse/gnome-settings-mouse.desktop.in.in:
	* capplets/network/gnome-network-preferences.desktop.in.in:
	* capplets/sound/gnome-settings-sound.desktop.in.in:
	* capplets/windows/window-properties.desktop.in.in:
	* shell/gnomecc.desktop.in.in:
	* shell/gnomecc.directory.in:
	* vfs-methods/fontilus/font-method.directory.in:
	* vfs-methods/fontilus/gnome-font-viewer.desktop.in.in:
	* vfs-methods/themus/theme-method.directory.in:
	* vfs-methods/themus/themus-theme-applier.desktop.in.in:
	desktop file fixes: don't use the deprecated Encoding tag, change
	Terminal=0 to Terminal=false, remove empty Categories= (bug #481740)

svn path=/trunk/; revision=8153
2007-10-02 18:01:06 +00:00
Jens Granseuer
597fac2a7c make theme sorting case-insensitive (bug #481224)
2007-09-28  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_store_sort_func): make theme sorting
	case-insensitive (bug #481224)

svn path=/trunk/; revision=8140
2007-09-28 17:01:41 +00:00
Jens Granseuer
f4476707ff remove unused imguri property from GnomeWPItem
2007-09-23  Jens Granseuer  <jensgr@gmx.net>

	* gnome-wp-item.c: (gnome_wp_item_free), (gnome_wp_item_dup):
	* gnome-wp-item.h:
	* gnome-wp-xml.c: (gnome_wp_xml_load_xml): remove unused imguri property
	from GnomeWPItem

svn path=/trunk/; revision=8133
2007-09-23 13:08:09 +00:00
Jens Granseuer
a3c138e754 add support for dragging images from the background list (bug #150544)
2007-09-23  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_drag_received), (wp_drag_get_data),
	(desktop_init): add support for dragging images from the background list
	(bug #150544)

svn path=/trunk/; revision=8132
2007-09-23 12:23:26 +00:00
Jens Granseuer
1a3d33f75d reword the "theme engine" error message since we cannot really be sure it
2007-09-21  Jens Granseuer  <jensgr@gmx.net>

	* theme-installer.c: (gnome_theme_install_real): reword the "theme engine"
	error message since we cannot really be sure it is an engine (bug #435680)

svn path=/trunk/; revision=8130
2007-09-21 19:33:36 +00:00
Jens Granseuer
76f742ffbb unify "invalid theme" error messages and be a bit more verbose
2007-09-21  Jens Granseuer  <jensgr@gmx.net>

	* theme-installer.c: (gnome_theme_install_real),
	(transfer_done_cb), (gnome_theme_install_from_uri): unify "invalid theme"
	error messages and be a bit more verbose

svn path=/trunk/; revision=8129
2007-09-21 19:26:18 +00:00
Jens Granseuer
839c7da1e9 add a comment for translators (bug #473379)
2007-09-16  Jens Granseuer  <jensgr@gmx.net>

	* appearance-main.c: (main): add a comment for translators (bug #473379)

svn path=/trunk/; revision=8114
2007-09-16 15:39:33 +00:00
Jens Granseuer
981227eb06 don't set a fixed width for the toolbar button color label (bug #474317)
2007-09-16  Jens Granseuer  <jensgr@gmx.net>

	* data/appearance.glade: don't set a fixed width for the toolbar button
	color label (bug #474317)

svn path=/trunk/; revision=8113
2007-09-16 15:35:17 +00:00
Claude Paroz
5da914160e Correct translatable property value of Save As. Fixes #473810.
2007-09-09  Claude Paroz  <claude@2xlibre.net>

	* data/appearance.glade: Correct translatable property value of Save As.
	Fixes #473810.

svn path=/trunk/; revision=8075
2007-09-09 19:24:33 +00:00
Jens Granseuer
d36b3dbdd7 sync with upstream
2007-09-01  Jens Granseuer  <jensgr@gmx.net>

	* gedit-message-area.c: (gedit_message_area_init): sync with upstream

svn path=/trunk/; revision=8064
2007-09-01 14:04:38 +00:00
Jens Granseuer
c7c319f8af break out of the loop asap; use _prepend instead of _append
2007-09-01  Jens Granseuer  <jensgr@gmx.net>

	* appearance-font.c: (font_render_load), (cb_show_details): break out
	of the loop asap; use _prepend instead of _append

svn path=/trunk/; revision=8063
2007-09-01 10:19:47 +00:00
Jens Granseuer
d16f73873e don't define gconf_key as const and save a few casts
2007-08-31  Jens Granseuer  <jensgr@gmx.net>

	* appearance-font.c: (font_render_load), (setup_font_pair),
	(enum_group_load), (enum_group_create): don't define gconf_key as
	const and save a few casts

svn path=/trunk/; revision=8062
2007-08-31 17:20:22 +00:00
Jens Granseuer
326eeb16b7 don't leak the enum groups
2007-08-31  Jens Granseuer  <jensgr@gmx.net>

	* appearance-font.c: (enum_group_destroy), (cb_show_details),
	(font_init), (font_shutdown):
	* appearance.h: don't leak the enum groups

svn path=/trunk/; revision=8061
2007-08-31 17:00:38 +00:00
Gabor Kelemen
7d2d67441b This time really fix bug 470532 (gtk-delete stock id is marked for
2007-08-28  Gabor Kelemen  <kelemeng@gnome.hu>
	
	* data/appearance.glade: This time really fix bug 470532 (gtk-delete stock id is marked for
	translation)


svn path=/trunk/; revision=8054
2007-08-28 16:51:21 +00:00
Jens Granseuer
506db1fde6 don't leak the thumbnails
2007-08-27  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (update_thumbnail_in_treeview): don't leak the
	thumbnails

svn path=/trunk/; revision=8048
2007-08-27 21:19:26 +00:00
Jens Granseuer
68b8f230eb always generate thumbnails asynchronously. Mixing synchronous and
2007-08-27  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (update_in_treeview),
	(gtk_theme_thumbnail_cb), (metacity_theme_thumbnail_cb),
	(icon_theme_thumbnail_cb), (changed_on_disk_cb): always generate
	thumbnails asynchronously. Mixing synchronous and asynchronous
	generation just doesn't work (bug #469849)

svn path=/trunk/; revision=8047
2007-08-27 21:07:42 +00:00
Thomas Wood
744a7f170c Patch by: Gabor Kelemen <kelemeng@gnome.hu>
2007-08-27  Thomas Wood  <thos@gnome.org>

	Patch by: Gabor Kelemen <kelemeng@gnome.hu>

	* data/appearance.glade: Fix bug 470532 (gtk-delete stock id is marked for
	translation)

svn path=/trunk/; revision=8046
2007-08-27 11:12:40 +00:00
Jens Granseuer
1e5c9968e2 fix leaks (bug #469531)
2007-08-23  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_get_thumbnail_from_cache):
	* gnome-wp-item.c: (gnome_wp_item_update_description): fix leaks (bug
	#469531)

2007-08-23  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (gnome_theme_is_writable): cast to proper type
	* theme-thumbnail.c: (create_metacity_theme_pixbuf): free the metacity
	theme after use (bug #469531)

svn path=/trunk/; revision=8040
2007-08-23 19:02:28 +00:00
Jens Granseuer
ae74c50d9a simply set the upper bound of the DPI spin button to the maximum we
2007-08-23  Jens Granseuer  <jensgr@gmx.net>

	* appearance-font.c: (cb_show_details): simply set the upper bound of
	the DPI spin button to the maximum we consider reasonable. This is one
	way to make sure we don't get SIGFPE if for some reason
	gdk_screen_get_{width,height}_mm returns 0 (bug #469580)

svn path=/trunk/; revision=8039
2007-08-23 17:08:43 +00:00
Jens Granseuer
b0ad42f084 if no background image set, select "no wallpaper"
2007-08-22  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_select_after_realize): if no background
	image set, select "no wallpaper"

svn path=/trunk/; revision=8034
2007-08-22 17:16:02 +00:00
Jens Granseuer
bc7b719342 correct the item width and enable line wrapping for long theme names (bug
2007-08-14  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init):
	* data/appearance.glade: correct the item width and enable line
	wrapping for long theme names (bug #466405)

svn path=/trunk/; revision=8002
2007-08-14 18:59:03 +00:00
Jens Granseuer
91a555aa0c make sure we have a selection before trying to get the data (bug #465431)
2007-08-11  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (conv_from_widget_cb): make sure we have a
	selection before trying to get the data (bug #465431)

svn path=/trunk/; revision=7987
2007-08-11 13:17:31 +00:00
Jens Granseuer
6b148c2959 fix leak
2007-08-11  Jens Granseuer  <jensgr@gmx.net>

	* theme-installer.c: (gnome_theme_install_from_uri): fix leak

svn path=/trunk/; revision=7986
2007-08-11 12:47:44 +00:00
Jens Granseuer
7de103f0b6 restrict drag'n'drop installation to the theme tab instead of the entire
2007-08-09  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_drag_data_received_cb),
	(themes_init): restrict drag'n'drop installation to the theme tab
	instead of the entire window so lockdown works properly

	* theme-installer.c: (gnome_theme_install_from_uri),
	(gnome_theme_installer_run):
	* theme-installer.h: fix double-free and use-after-free

svn path=/trunk/; revision=7985
2007-08-09 21:00:28 +00:00
Jens Granseuer
c8dc660cf3 reenable theme lockdown
2007-08-09  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init): reenable theme lockdown

svn path=/trunk/; revision=7984
2007-08-09 19:57:48 +00:00
Jens Granseuer
08d807cfb4 tiny optimization
2007-08-09  Jens Granseuer  <jensgr@gmx.net>

	* gnome-wp-xml.c: (gnome_wp_xml_load_list),
	(gnome_wp_xml_save_list):
	* theme-installer.c: (gnome_theme_install_from_uri): tiny optimization

svn path=/trunk/; revision=7982
2007-08-08 22:07:28 +00:00
Jens Granseuer
159ede4aea revert r7973 because it broke color scheme notifications, and add a
2007-08-08  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (gtk_theme_changed): revert r7973 because it
	broke color scheme notifications, and add a comment
	* appearance-themes.c: (theme_setting_changed_cb), (themes_init):
	connect to some signals from GtkSettings instead of GConf

svn path=/trunk/; revision=7980
2007-08-08 21:32:01 +00:00
Jens Granseuer
5e58d70e8f shave off a number of unnecessary casts
2007-08-07  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_add_images), (wp_dragged_image),
	(desktop_init):
	* appearance-main.c: (main):
	* appearance-style.c: (update_color_buttons_from_settings),
	(check_color_schemes_enabled), (update_cursor_size_scale),
	(prepare_list), (style_init):
	* appearance-ui.c: (ui_init): shave off a number of unnecessary casts

svn path=/trunk/; revision=7975
2007-08-07 21:46:06 +00:00
Jens Granseuer
137138efa4 also remove code that we needed when the thumbnailer was still in-process
2007-08-07  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (gtk_theme_changed): also remove code that we
	needed when the thumbnailer was still in-process

svn path=/trunk/; revision=7973
2007-08-07 21:01:52 +00:00
Jens Granseuer
44eec9e2a3 remove stuff I forgot to delete
2007-08-07  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (color_button_clicked_cb): remove stuff I forgot
	to delete

svn path=/trunk/; revision=7970
2007-08-07 19:20:46 +00:00
Jens Granseuer
8cba2c1e8e make sure the color scheme has changed before writing to GConf and
2007-08-07  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (color_button_clicked_cb): make sure the color
	scheme has changed before writing to GConf and enabling the reset button

svn path=/trunk/; revision=7969
2007-08-07 16:48:02 +00:00
Jens Granseuer
197bc958af simplify (check_color_schemes_enabled): fix check for available symbolic
2007-08-07  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (update_color_buttons_from_string): simplify
	(check_color_schemes_enabled): fix check for available symbolic colors
	and make buttons for unsupported colors insensitive (bug #464081)
	(color_button_clicked_cb), (style_init): simplify

	* data/appearance.glade: name the color buttons exactly like their
	respective color so we don't need to keep two arrays around

svn path=/trunk/; revision=7968
2007-08-07 16:35:09 +00:00
Jens Granseuer
e0db21068c reinstate select-after-realize; it's still necessary
2007-08-05  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init): reinstate select-after-realize;
	it's still necessary

svn path=/trunk/; revision=7964
2007-08-05 21:32:12 +00:00
Jens Granseuer
b437efed11 Patch by: Dennis Cranston <dennis_cranston@yahoo.com>
2007-08-05  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Dennis Cranston <dennis_cranston@yahoo.com>

	* data/appearance.glade: Indent category contents, and other HIG
	spacing fixes for "Font Rendering Details" dialog (bug #463332)

svn path=/trunk/; revision=7963
2007-08-05 19:24:21 +00:00
Jens Granseuer
6c27578959 Based on a patch by: Dennis Cranston <dennis_cranston@yahoo.com>
2007-08-04  Jens Granseuer  <jensgr@gmx.net>

	Based on a patch by: Dennis Cranston <dennis_cranston@yahoo.com>

        * appearance-style.c: (update_cursor_size_scale) Toggle
        sensitivity of the cursor scale labels (bug #463442)

svn path=/trunk/; revision=7961
2007-08-04 20:11:56 +00:00
Denis Washington
5cfe0df8a6 Also load the "default" cursor theme as GnomeThemeCursorInfo so we know
2007-08-04  Denis Washington  <denisw@svn.gnome.org>

	* common/gnome-theme-info.c: (read_cursor_theme), (look_for_cursor_theme):
	Also load the "default" cursor theme as GnomeThemeCursorInfo so
	we know about the available sizes. (bug #462409)

	* appearance/appearance-style.c: (prepare_list):
	Only add a "Default Pointer" list item if there is
	no such GnomeThemeCursorInfo.

svn path=/trunk/; revision=7960
2007-08-04 13:05:24 +00:00
Jens Granseuer
f7bf24a1cf oops, remove left-over devel ifdef
2007-08-03  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_thumbnail_update): oops, remove
	left-over devel ifdef

svn path=/trunk/; revision=7957
2007-08-03 21:19:11 +00:00
Jens Granseuer
54d446ae88 use gdk_color_to_string instead of g_strdup_printf remove check for old
2007-08-03  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_color_changed): use gdk_color_to_string
	instead of g_strdup_printf
	* gnome-wp-xml.c: (gnome_wp_xml_load_xml),
	(gnome_wp_xml_load_list): remove check for old glib version that
	would result in bogus code, and save an unnecessary alloc

svn path=/trunk/; revision=7956
2007-08-03 21:02:47 +00:00
Jens Granseuer
b7ad0952dc use thumbnail factory to store and retrieve metatheme thumbs (bug #448968)
2007-08-03  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_props_load_wallpaper), (wp_add_image),
	(wp_scale_type_changed), (wp_shade_type_changed),
	(wp_update_preview), (wp_load_stuffs), (desktop_init),
	(desktop_shutdown):
	* appearance-main.c: (init_appearance_data),
	(main_window_response):
	* appearance-themes.c: (theme_get_mtime), (theme_thumbnail_update),
	(theme_get_thumbnail_from_cache), (theme_thumbnail_done_cb),
	(theme_thumbnail_generate):
	* appearance.h:
	* gnome-wp-xml.c: (gnome_wp_load_legacy), (gnome_wp_xml_load_xml):
	use thumbnail factory to store and retrieve metatheme thumbs
	(bug #448968)

svn path=/trunk/; revision=7955
2007-08-03 19:53:14 +00:00
Jens Granseuer
aa9ddd3739 reduce metatheme thumbnail size to 128x128 in preparation of using
2007-08-03  Jens Granseuer  <jensgr@gmx.net>

	* data/appearance.glade:
	* data/theme-thumbnailing.png: reduce metatheme thumbnail size to
	128x128 in preparation of using gnome-thumbnail-factory

2007-08-03  Jens Granseuer  <jensgr@gmx.net>

	* theme-thumbnail.c: reduce metatheme thumbnail size to 128x128

svn path=/trunk/; revision=7954
2007-08-03 19:49:32 +00:00
Jens Granseuer
379677ec2f simplify
2007-08-03  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (color_button_clicked_cb): simplify

svn path=/trunk/; revision=7953
2007-08-03 18:44:42 +00:00
Thomas Wood
5a24de992f Path by: Dennis Cranston <dennis_cranston@yahoo.com>
2007-08-01  Thomas Wood  <thos@gnome.org>

	Path by: Dennis Cranston <dennis_cranston@yahoo.com>

	* data/appearance.glade:  Add a few more mnemonics.  HIG capitalization 
	  fix for a checkbutton label.

svn path=/trunk/; revision=7943
2007-08-01 08:37:08 +00:00