Commit graph

26 commits

Author SHA1 Message Date
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
122df3a8d0 implement theme saving
2007-06-24  Jens Granseuer  <jensgr@gmx.net>

	* Makefile.am:
	* appearance-themes.c: (theme_selection_changed_cb),
	(theme_save_cb), (themes_init), (themes_shutdown):
	* appearance.glade:
	* appearance.h:
	* theme-save.c:
	* theme-save.h:
	* theme-util.h: implement theme saving

svn path=/trunk/; revision=7771
2007-06-24 11:04:27 +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
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
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
8ccc187c76 add initial lockdown bits from theme-manager, delete button sensitivity
2007-06-07  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (is_locked_down),
	(theme_changed_on_disk_cb), (theme_selection_changed_cb),
	(themes_init): add initial lockdown bits from theme-manager,
	delete button sensitivity updates, and preliminary support
	for reacting to metatheme changes

svn path=/trunk/; revision=7704
2007-06-07 19:11:36 +00:00
Jens Granseuer
893ab11dd0 update for changes in thumbnailer API
2007-06-06  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_thumbnail_generate),
	(theme_queue_for_thumbnail), (theme_thumbnail_done_cb): update
	for changes in thumbnailer API

svn path=/trunk/; revision=7701
2007-06-06 16:25:25 +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
f5fe47e66e add capplets/appearance/gnome-theme-package.xml to generated files
2007-06-05  Jens Granseuer  <jensgr@gmx.net>

	* configure.in: add capplets/appearance/gnome-theme-package.xml
	to generated files

	* capplets/appearance/Makefile.am:
	* capplets/appearance/gnome-theme-package.xml.in: move theme
	package mime type over from the theme-manager (closes bug #444336)

svn path=/trunk/; revision=7693
2007-06-05 18:32:05 +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
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
Jens Granseuer
91e5a65efa unref the thumbnail when we're done with it
2007-05-13  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_thumbnail_func): unref the thumbnail when
	we're done with it

svn path=/trunk/; revision=7618
2007-05-13 19:33:50 +00:00
Thomas Wood
0b671b7b69 Don't free data we don't own. Prevents crash when changing themes.
2007-05-13  Thomas Wood  <thos@gnome.org>

	* appearance-themes.c: (theme_thumbnail_func): Don't free data we don't own.
	Prevents crash when changing themes.

svn path=/trunk/; revision=7617
2007-05-13 19:30:35 +00:00
Jens Granseuer
fc7b01eb53 fix asynchronous thumbnail generation
2007-05-13  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init), (theme_thumbnail_generate),
	(theme_thumbnail_func): fix asynchronous thumbnail generation

svn path=/trunk/; revision=7616
2007-05-13 19:12:37 +00:00
Jens Granseuer
916f12d16e refix button name, too
2007-05-13  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init): refix button name, too

svn path=/trunk/; revision=7613
2007-05-13 16:55:14 +00:00
Jens Granseuer
d693498c6f fix gcc 2 build again (bad thos)
2007-05-13  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init): fix gcc 2 build again (bad thos)

svn path=/trunk/; revision=7612
2007-05-13 16:35:57 +00:00
Thomas Wood
a0e3a8b48d Use asynchronous methods to generate thumbnails.
2007-05-13  Thomas Wood  <thos@gnome.org>

	* appearance-themes.c: (themes_init), (theme_changed_func): Use asynchronous
	methods to generate thumbnails.

svn path=/trunk/; revision=7610
2007-05-13 16:21:54 +00:00
Jens Granseuer
150a7cdbf6 update button name, declare variables at beginning of block fix button
2007-05-13  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init): update button name, declare
	variables at beginning of block
	* appearance.glade: fix button group assignment (again)

svn path=/trunk/; revision=7608
2007-05-13 15:59:00 +00:00
Thomas Wood
33aded2641 - Sort metathemes icon view - Apply theme on selection change - Use theme
2007-05-13  Thomas Wood  <thos@gnome.org>

	* appearance-themes.c: (themes_init), (theme_changed_func),
	(theme_selection_changed_cb), (theme_custom_cb):
	- Sort metathemes icon view
	- Apply theme on selection change
	- Use theme name rather than display name to apply theme

svn path=/trunk/; revision=7606
2007-05-13 15:37:13 +00:00
Thomas Wood
ff9e869641 Move style tab into new window
2007-05-13  Thomas Wood  <thos@gnome.org>

	* appearance-main.c: (init_appearance_data):
	* appearance-themes.c: (themes_init), (theme_activated_cb):
	* appearance.glade:

	Move style tab into new window

svn path=/trunk/; revision=7605
2007-05-13 15:20:18 +00:00
Jens Granseuer
6262a9fb4f change Open button label to Install...
2007-05-09  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init):
	* appearance.glade: change Open button label to Install...

svn path=/trunk/; revision=7591
2007-05-09 20:34:25 +00:00
Thomas Wood
207ce87995 Remove WID() macro, which has an incompatible definition in
2007-05-04  Thomas Wood  <thos@gnome.org>

	* appearance-desktop.c: (wp_add_images), (wp_dragged_image),
	(desktop_init):
	* appearance-main.c: (main):
	* appearance-themes.c: (themes_init):
	* appearance-ui.c: (set_toolbar_style), (set_have_icons),
	(ui_init):
	* appearance.h:
	Remove WID() macro, which has an incompatible definition in capplet-utils.h

svn path=/trunk/; revision=7549
2007-05-04 17:11:12 +00:00
Thomas Wood
af3c712e63 Use readable name rather than file name in themes list
2007-05-04  Thomas Wood  <thos@gnome.org>

	* appearance-themes.c: (themes_init): Use readable name rather than file name
	in themes list

svn path=/trunk/; revision=7548
2007-05-04 17:07:05 +00:00
Thomas Wood
068d417c59 Add license headers
2007-04-30  Thomas Wood  <thos@gnome.org>

	* appearance-main.c:
	* appearance-themes.c:
	* appearance-themes.h:
	* appearance.h:

	Add license headers


svn path=/trunk/; revision=7520
2007-04-30 16:51:31 +00:00
Thomas Wood
b98e469088 Add some code for a new appearance capplet
2007-04-30  Thomas Wood  <thos@gnome.org>

	* capplets/appearance/Makefile.am:
	* capplets/appearance/appearance-main.c:
	* capplets/appearance/appearance-themes.c:
	* capplets/appearance/appearance-themes.h:
	* capplets/appearance/appearance.glade:
	* capplets/appearance/appearance.h:

	Add some code for a new appearance capplet

svn path=/trunk/; revision=7518
2007-04-30 14:33:05 +00:00