Commit graph

49 commits

Author SHA1 Message Date
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
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
Jens Granseuer
147912ed01 fix cut'n'paste errors for the tooltip colors and use new color enum
2007-07-30  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (color_button_clicked_cb): fix cut'n'paste errors
	for the tooltip colors and use new color enum

	* data/appearance.glade: repair the mess glade3 made of the file

2007-07-30  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (gnome_theme_color_scheme_parse),
	(gnome_theme_color_scheme_equal):
	* gnome-theme-info.h: add symbolic colors enum and use it

svn path=/trunk/; revision=7936
2007-07-30 18:22:00 +00:00
Thomas Wood
e82c2b596e Add missing '\n'.
2007-07-30  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: (color_button_clicked_cb): Add missing '\n'.

svn path=/trunk/; revision=7935
2007-07-30 16:59:41 +00:00
Thomas Wood
12faf7f40e Add tooltip foreground and background colours to the list of recognised
2007-07-30  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: (update_color_buttons_from_string),
	(check_color_schemes_enabled), (color_button_clicked_cb),
	(style_init):
	* data/appearance.glade:

	Add tooltip foreground and background colours to the list of recognised
	symbolic colours.

2007-07-30  Thomas Wood  <thos@gnome.org>

	* gnome-theme-info.c: (gnome_theme_color_scheme_parse): Add tooltip foreground
	and background colours to the list of recognised symbolic colours.

svn path=/trunk/; revision=7933
2007-07-30 16:49:28 +00:00
Thomas Wood
23c161aa35 Prevent some memory leaks
2007-07-29  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: (cursor_theme_sort_func), (prepare_list),
	(style_init): Prevent some memory leaks

2007-07-29  Thomas Wood  <thos@gnome.org>

	* gnome-theme-apply.c: (gnome_meta_theme_set):
	* gtkrc-utils.c: (gtkrc_get_details), (gtkrc_get_color_scheme):

	Prevent some memory leaks

svn path=/trunk/; revision=7920
2007-07-29 13:05:29 +00:00
Denis Washington
2834baf127 Read a cursor theme's name from it's index.theme file if it has one.
2007-07-28  Denis Washington  <denisw@svn.gnome.org>

	* common/gnome-theme-info.h:
	* common/gnome-theme-info.c: (look_in_cursor_theme),
	(gnome_theme_cursor_info_free):
	Read a cursor theme's name from it's index.theme file if it has one.

	* appearance/appearance-style.c: (prepare_list):
	Show readable_name in cursor theme list instead of name.

svn path=/trunk/; revision=7914
2007-07-28 13:53:15 +00:00
Jens Granseuer
abd1b52762 move some utility code here from appearance
2007-07-26  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (gnome_theme_read_meta_theme),
	(gnome_theme_color_scheme_parse), (gnome_theme_color_scheme_equal):
	* gnome-theme-info.h:
	* gtkrc-utils.c: (str_nequal), (gtkrc_get_color_scheme),
	(gtkrc_get_color_scheme_for_theme):
	* gtkrc-utils.h: move some utility code here from appearance

	* gnome-theme-apply.c: (gnome_meta_theme_set): when applying a metatheme,
	check whether to set/unset the color scheme gconf key (should fix bug
	#421866)

svn path=/trunk/; revision=7897
2007-07-26 19:48:14 +00:00
Jens Granseuer
7eefc853d1 really unset the gconf key when reverting colors
2007-07-26  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (update_color_buttons_from_settings),
	(color_scheme_defaults_button_clicked_cb): really unset the gconf key
	when reverting colors

svn path=/trunk/; revision=7896
2007-07-26 19:04:44 +00:00
Jens Granseuer
e91260a58b make color scheme comparisons work much more reliably
2007-07-26  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (update_color_buttons_from_string),
	(update_color_buttons_from_settings):
	* appearance-themes.c: (theme_is_equal):
	* theme-util.c: (theme_parse_color_scheme),
	(theme_color_scheme_equal):
	* theme-util.h: make color scheme comparisons work much more reliably

svn path=/trunk/; revision=7893
2007-07-26 18:21:05 +00:00
Denis Washington
e7c179fa94 Fixed a bug introduced in my last commit which caused to make the button
2007-07-26  Denis Washington <denisw@svn.gnome.org>

	* data/appearance.glade:
	Fixed a bug introduced in my last commit which caused to make the
	button box appear above the cursors list in the theme details window.

	* appearance-style.c: (cursor_theme_sort_func), (prepare_list):
	Make "Default Pointer" always appear as first item in the list.

svn path=/trunk/; revision=7891
2007-07-26 17:10:12 +00:00
Denis Washington
78b4743519 Re-add basic support for cursor themes for X servers without the Xcursor
2007-07-26  Denis Washington <denisw@svn.gnome.org>

	* appearance/data/appearance.glade:
	* appearance/appearance-style.c: 
	* appearance/appearance-themes.c: (theme_load_from_gconf),
	(cursor_theme_changed), (prepare_list), (style_init):
	* appearance/theme-save.c: (write_theme_to_disk):
	* appearance/theme-util.h:
	* common/gnome-theme-apply.c: (gnome_meta_theme_set):
	* common/gnome-theme-info.c: 
(add_common_icon_theme_dir_monitor),
	(gnome_theme_init):
	* common/gnome-theme-info.h:
	Re-add basic support for cursor themes for X servers without the Xcursor
	extension, like the one on Solaris.

svn path=/trunk/; revision=7890
2007-07-26 16:15:35 +00:00
Denis Washington
016dabda52 Implement saving of the cursor theme name in metathemes, and add a
2007-07-25  Denis Washington <denisw@svn.gnome.org>

	* appearance-style.c: (prepare_list):
	* appearance-themes.c: (theme_load_from_gconf):
	* theme-save.c: (write_theme_to_disk):
	Implement saving of the cursor theme name in metathemes, and add a
	"Default Pointer" option to the cursor theme list in Theme Details.

svn path=/trunk/; revision=7885
2007-07-25 17:37:00 +00:00
Jens Granseuer
50718153a0 improve color scheme matching; simplify code; don't possibly unref cursor
2007-07-24  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (update_color_buttons_from_settings),
	(prepare_list), (style_init): improve color scheme matching; simplify
	code; don't possibly unref cursor thumbs twice; remove redundant color
	scheme initialization
	* appearance.glade: make theme details window modal to prevent the
	user from editing non-custom themes

svn path=/trunk/; revision=7874
2007-07-24 19:48:03 +00:00
Jens Granseuer
23ab89ba6a plug yet another leak
2007-07-08  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (cursor_size_scale_value_changed_cb): plug yet
	another leak

svn path=/trunk/; revision=7836
2007-07-08 19:07:40 +00:00
Jens Granseuer
386043886c don't allocate colors in the colormap (update_cursor_size_scale),
2007-07-05  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (update_color_buttons_from_string): don't allocate
	colors in the colormap
	(update_cursor_size_scale), (cursor_size_scale_value_changed_cb): don't
	crash if we have nothing but the default cursor theme

svn path=/trunk/; revision=7829
2007-07-05 20:00:50 +00:00
Denis Washington
ebc0ce56a4 Add cursor themes support.
2007-06-27  Denis Washington  <denisw@svn.gnome.org>

	* appearance.glade:
	* appearance-style.c: (cursor_size_scale_value_changed_cb), 
	(cursor_theme_changed), (prepare_list), (update_cursor_size_scale):
	* theme-util.h:
	Add cursor themes support.

svn path=/trunk/; revision=7824
2007-07-05 17:49:01 +00:00
Jens Granseuer
2f0a8f5b10 no need to reassign thumbnails inside the loop
2007-06-26  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (prepare_list):
	no need to reassign thumbnails inside the loop

	* appearance-themes.c: (theme_load_from_gconf), (theme_is_equal):
	consider NULL and "" equal for color schemes; also reshuffle
	functions a bit and fix the include list

svn path=/trunk/; revision=7782
2007-06-26 17:49:37 +00:00
Denis Washington
11756d2e52 Placeholder thumbnails for gtk+, metacity and icon themes.
2007-06-26  Denis Washington  <denisw@svn.gnome.org>

	* gtk-theme-thumbnailing.png:
	* icon-theme-thumbnailing.png:
	* window-theme-thumbnailing.png:
	Placeholder thumbnails for gtk+, metacity and icon themes.

	* Makefile.am: Add new files.

	* appearance.h:
	* appearance-style.h:
	* appearance-style.c: (style_init), (style_shutdown), (prepare_list):
	Use the new placeholder thumbnails for the details window's theme lists.

	* appearance-main.c: Call new style_shutdown ().

svn path=/trunk/; revision=7781
2007-06-26 14:45:57 +00:00
Jens Granseuer
359f1c2266 don't try to use uninitialized GdkPixbuf
2007-06-25  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (prepare_list): don't try to use uninitialized
	GdkPixbuf

svn path=/trunk/; revision=7778
2007-06-25 16:00:24 +00:00
Denis Washington
304ee0d357 Adjusted for the API changes in theme-thumbnail.c. Thumbnail requestes are
2007-06-25  Denis Washington  <denisw@svn.gnome.org>

	* appearance-themes.c:
	Adjusted for the API changes in theme-thumbnail.c. Thumbnail requestes are
	now directly queued by generate_*_async(), so do not maintain an own queue
	anymore.

	* appearance-style.c:
	Use the new asynchronous thumbnail generation functions, and replace all
	occurrences of "metacity_themes_list" with the correct "window_themes_list".

	* appearance.h:
	Remove "theme_queue", it is not needed anymore.

svn path=/trunk/; revision=7776
2007-06-25 15:22:45 +00:00
Jens Granseuer
277341fb0f rearranged functions (no code changes)
2007-06-23  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: rearranged functions (no code changes)

svn path=/trunk/; revision=7764
2007-06-23 14:22:45 +00:00
Jens Granseuer
68466d1c27 listen to on-disk theme changes in the details tabs, too
2007-06-23  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (add_to_treeview), (remove_from_treeview),
	(update_in_treeview), (changed_on_disk_cb), (style_init):
	* appearance-themes.c: (theme_select_name),
	(theme_set_custom_from_theme), (theme_changed_on_disk_cb),
	(theme_thumbnail_done_cb):
	* theme-installer.c: (gnome_theme_installer_run):
	* theme-util.c: (theme_find_in_model):
	* theme-util.h: listen to on-disk theme changes in the details tabs, too

svn path=/trunk/; revision=7762
2007-06-23 11:08:21 +00:00
Jens Granseuer
6a080d0e51 hook up the delete buttons
2007-06-22  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (gtk_theme_changed), (window_theme_changed),
	(icon_theme_changed), (generic_theme_delete),
	(gtk_theme_delete_cb), (window_theme_delete_cb),
	(icon_theme_delete_cb), (style_init), (prepare_list),
	(check_color_schemes_enabled): hook up the delete buttons

svn path=/trunk/; revision=7760
2007-06-22 18:25:21 +00:00
Denis Washington
7470581e75 Change the weight of the theme titles from bold to normal in the Theme
2007-06-17  Denis Washington  <denisw@svn.gnome.org>

	* appearance-style.c: (prepare_list):
	Change the weight of the theme titles from bold to normal in the Theme
	Details window's lists.

svn path=/trunk/; revision=7737
2007-06-17 15:21:20 +00:00
Jens Granseuer
dbc58d64cb add initial support for installing themes, includes support for packages
2007-06-16  Jens Granseuer  <jensgr@gmx.net>

	* Makefile.am:
	* appearance-style.c: (prepare_list):
	* appearance-themes.c: (theme_install_cb), (theme_delete_cb),
	(theme_details_changed_cb):
	* theme-installer.c: (cleanup_tmp_dir), (file_theme_type),
	(missing_utility_message_dialog), (transfer_done_tgz_tbz),
	(transfer_done_archive), (gnome_theme_install_real),
	(transfer_done_cb), (gnome_theme_install_from_uri),
	(gnome_theme_installer_run):
	* theme-installer.h: add initial support for installing themes,
	includes support for packages containing more than one theme
	(bug #409624)

svn path=/trunk/; revision=7730
2007-06-16 15:08:20 +00:00
Jens Granseuer
48dca61dd7 new files
2007-06-14  Jens Granseuer  <jensgr@gmx.net>

	* Makefile.am:
	* theme-util.c: (theme_delete), (theme_model_iter_last):
	* theme-util.h: new files

	* appearance.glade: default delete buttons to insensitive,
	change label for "Custom" key, adjust column ids for icon view

	* appearance-style.c: (style_init), (prepare_list),
	(update_color_buttons_from_settings), (theme_name_changed),
	(color_button_clicked_cb),
	(color_scheme_defaults_button_clicked_cb):
	* appearance-themes.c: (theme_get_selected_name),
	(theme_get_selected), (theme_select_iter), (theme_select_name),
	(theme_is_equal), (theme_set_custom_from_theme),
	(theme_changed_on_disk_cb), (theme_custom_cb), (theme_delete_cb),
	(theme_details_changed_cb), (theme_color_scheme_changed_cb),
	(theme_gconf_changed), (theme_postinit), (themes_init),
	(themes_shutdown):
	* appearance.h: improvements all around the block (metatheme
	deletion now working, and custom theme working much better)

svn path=/trunk/; revision=7725
2007-06-14 21:20:25 +00:00
Denis Washington
c5a8051080 Manually deal with gtk+ theme changes now that the theme thumbnailing code
2007-06-09  Denis Washington  <denisw@svn.gnome.org>

	* appearance-style.c: (theme_name_changed):
	Manually deal with gtk+ theme changes now that the theme thumbnailing
	code uses the default GtkSettings again.

svn path=/trunk/; revision=7721
2007-06-12 17:07:44 +00:00
Jens Granseuer
dcb6f5bd6f fix "reset to defaults" sensitivity for real listen to colour scheme
2007-06-10  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (style_init), (check_color_schemes_enabled):
	fix "reset to defaults" sensitivity for real
	* appearance-themes.c: (theme_color_scheme_changed_cb),
	(themes_init): listen to colour scheme changes as well

svn path=/trunk/; revision=7715
2007-06-10 20:29:08 +00:00
Jens Granseuer
a994bfc05d disable the "reset to defaults" button if the theme doesn't support custom
2007-06-10  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (check_color_schemes_enabled): disable the "reset
	to defaults" button if the theme doesn't support custom colours

svn path=/trunk/; revision=7714
2007-06-10 18:51:42 +00:00
Jens Granseuer
196cc925db we don't need the engine stuff, so don't retrieve it in the first place
2007-06-10  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (check_color_schemes_enabled): we don't need the
	engine stuff, so don't retrieve it in the first place

svn path=/trunk/; revision=7713
2007-06-10 18:15:06 +00:00
Jens Granseuer
a5189eddb9 fix passing and parsing of command line args
2007-06-10  Jens Granseuer  <jensgr@gmx.net>

	* appearance-main.c: (init_appearance_data), (main):
	* appearance.h: fix passing and parsing of command line args

	* appearance-style.c: (update_color_buttons_from_settings),
	(check_color_schemes_enabled): fix leaks

	* appearance.glade: revert response_id sillyness from last commit

svn path=/trunk/; revision=7711
2007-06-10 17:37:00 +00:00
Denis Washington
6c21c71036 Add all missing color schemes options from gnome-theme-manager, including
2007-06-09  Denis Washington  <denisw@svn.gnome.org>

	* appearance.glade:
	* appearance-style.c:
	Add all missing color schemes options from gnome-theme-manager, including a Reset To Defaults button.

svn path=/trunk/; revision=7708
2007-06-09 14:34:33 +00:00
Jens Granseuer
6bfc75101d don't destroy the window on "delete-event"
2007-06-06  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (style_response_cb), (style_init): don't
	destroy the window on "delete-event"

	* appearance-themes.c: (theme_load_from_gconf),
	(theme_thumbnail_generate), (theme_queue_for_thumbnail),
	(theme_get_selected), (theme_set_custom_from_selected),
	(theme_remove_custom), (theme_thumbnail_done_cb),
	(theme_selection_changed_cb), (theme_custom_cb),
	(theme_details_changed_cb), (themes_init): hook up more of the
	customization functionality; don't unref generated thumbnails
	because they are still held in a cache by the thumbnailer

svn path=/trunk/; revision=7696
2007-06-05 22:20:33 +00:00
Jens Granseuer
a84a68182a major resource handling fixup and initial bits for handling custom
2007-06-04  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (desktop_init), (desktop_shutdown):
	* appearance-desktop.h:
	* appearance-font.c: (font_init), (font_shutdown):
	* appearance-font.h:
	* appearance-main.c: (main_window_response), (main):
	* appearance-style.c: (style_init), (conv_to_widget_cb),
	(conv_from_widget_cb):
	* appearance-style.h:
	* appearance-themes.c:
	* appearance-themes.h:
	* appearance.h: major resource handling fixup and initial bits
	for handling custom metathemes

svn path=/trunk/; revision=7689
2007-06-04 20:23:47 +00:00
Jens Granseuer
47099c43e3 minor code simplification/cleanup
2007-05-28  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (style_init), (find_string_in_model),
	(conv_to_widget_cb), (update_color_buttons_from_string): minor
	code simplification/cleanup

svn path=/trunk/; revision=7670
2007-05-28 14:02:46 +00:00
Jens Granseuer
41c0f5b206 don't leak thumbnails
2007-05-25  Jens Granseuer  <jensgr@gmx.net>

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

svn path=/trunk/; revision=7662
2007-05-25 20:26:57 +00:00
Jens Granseuer
cfb2e71789 properly distinguish between theme name and theme label (currently only
2007-05-25  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (prepare_list), (conv_to_widget_cb),
	(conv_from_widget_cb): properly distinguish between theme name and
	theme label (currently only relevant for icon themes)

svn path=/trunk/; revision=7661
2007-05-25 20:22:44 +00:00
Denis Washington
70f7e8358f Revert the organization of the theme details dialog to the old (2.18)
* appearance.glade:
* appearance-style.c:
Revert the organization of the theme details dialog to the old (2.18) 
style again, but now with thumbnails for gtk+, metacity and icon themes.

svn path=/trunk/; revision=7654
2007-05-25 14:44:03 +00:00
Jens Granseuer
dae1952805 minor cleanup and getting rid of unnecessary casts
2007-05-16  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (prepare_combo), (find_string_in_model),
	(conv_to_widget_cb), (conv_from_widget_cb),
	(update_color_buttons_from_string), (color_button_clicked_cb):
	minor cleanup and getting rid of unnecessary casts

svn path=/trunk/; revision=7628
2007-05-16 16:48:59 +00:00
Thomas Wood
045ad61172 Connect up colour scheme monitor. Hide window on delete, rather than
2007-05-13  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: (prepare_combo): Connect up colour scheme monitor. Hide
	window on delete, rather than destroy. Add an item to the theme lists if the
	current theme is not present already.
	* appearance-themes.c: (theme_custom_cb): Add missing #include. Moved some
	code to appearance-style.c

svn path=/trunk/; revision=7620
2007-05-13 21:26:03 +00:00
Thomas Wood
64c8cbba68 Sort the items in the theme lists
2007-05-13  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: (prepare_combo): Sort the items in the theme lists

svn path=/trunk/; revision=7619
2007-05-13 20:24:14 +00:00
Thomas Wood
2717cd85e6 Add colour scheme functions
2007-05-13  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: Add colour scheme functions

svn path=/trunk/; revision=7615
2007-05-13 18:23:12 +00:00
Jens Granseuer
9b3abdb95d make sure that appearance.h (and thereby config.h) is included first;
2007-05-09  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: make sure that appearance.h (and thereby config.h)
	is included first; constify strings

	* gnome-wp-xml.c: (gnome_wp_xml_load_xml): fix leak

svn path=/trunk/; revision=7590
2007-05-09 19:50:39 +00:00
Thomas Wood
b0ea25cd5c Remove some unnecessary code.
2007-05-07  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: (conv_to_widget_cb), (prepare_combo): Remove some
	unnecessary code.

svn path=/trunk/; revision=7574
2007-05-07 22:29:37 +00:00
Thomas Wood
21b005ca5f Fix icon theme combo box
2007-05-07  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: (prepare_combo): Fix icon theme combo box

svn path=/trunk/; revision=7572
2007-05-07 22:18:48 +00:00
Thomas Wood
679410b323 Use GConfPropertyEditor for theme combo boxes
2007-05-07  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: (prepare_combo): Use GConfPropertyEditor for theme
	combo boxes

svn path=/trunk/; revision=7571
2007-05-07 22:00:05 +00:00
Thomas Wood
88c4cb5314 - Add files for Style tab - Implement changing gtk and metacity themes
2007-05-07  Thomas Wood  <thos@gnome.org>

	* Makefile.am:
	* appearance-main.c: (main):
	* appearance-style.c:
	* appearance-style.h:
	- Add files for Style tab
	- Implement changing gtk and metacity themes

	* appearance.glade: Change "Themes" to "Theme" and name some widgets

svn path=/trunk/; revision=7570
2007-05-07 19:09:24 +00:00