Commit graph

72 commits

Author SHA1 Message Date
Jens Granseuer
10e93c23ad unref the thumbnail image after passing it to the callback. Callers will
2008-04-20  Jens Granseuer  <jensgr@gmx.net>

	* theme-thumbnail.c: (message_from_child): unref the thumbnail image
	after passing it to the callback. Callers will have to ref it if they
	want to keep it until after the callback has returned

2008-04-20  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (update_thumbnail_in_treeview):
	* appearance-themes.c: (theme_thumbnail_update),
	(theme_thumbnail_generate): adapt to modified refcounting in the
	thumbnailer; thumbnails don't need to be unref'ed unless we explicitly
	retain a reference

svn path=/trunk/; revision=8661
2008-04-20 10:29:49 +00:00
Jens Granseuer
6cfdc46460 figure out where GTK+ expects its theme engines and make that info
2008-04-19  Jens Granseuer  <jensgr@gmx.net>

	* configure.in: figure out where GTK+ expects its theme engines and
	make that info available to interested capplets

2008-04-19  Jens Granseuer  <jensgr@gmx.net>

	* gtkrc-utils.c: (gtkrc_get_details): accept NULL for the
	symbolic_colors parameter if the caller doesn't want that information

2008-04-19  Jens Granseuer  <jensgr@gmx.net>

	* Makefile.am:
	* appearance-themes.c: (theme_validate),
	(theme_message_area_update), (themes_init):
	* appearance.h: show a warning message when the selected theme is
	incomplete (e.g. missing icon theme or gtk theme engine)

svn path=/trunk/; revision=8658
2008-04-19 10:30:34 +00:00
Thomas Wood
7716fbe14b Add a custom cell renderer for metatheme names to allow rounded corners on
2008-04-14  Thomas Wood  <thos@gnome.org>

	* Makefile.am:
	* appearance-themes.c: (themes_init):
	* caption-cellrenderer.c:
	* caption-cellrenderer.h:

	Add a custom cell renderer for metatheme names to allow rounded corners
	on the selection indicator. Fixes bug 500276.

svn path=/trunk/; revision=8652
2008-04-14 00:35:49 +00:00
Jens Granseuer
f70ad15ad5 Patch by: Patrick Wade <patrick.wade@sun.com>
2008-03-27  Jens Granseuer  <jensgr@gmx.net>

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

	* appearance-themes.c: (custom_font_cb),
	(theme_message_area_response_cb), (theme_message_area_update),
	(themes_init), (themes_shutdown):
	* appearance.h: allow the user to revert a font change proposed by a
	metatheme (bug #519065)

svn path=/trunk/; revision=8598
2008-03-27 19:29:13 +00:00
Luca Ferretti
1cbc2bd47d Read WindowTitleFont and DocumentsFont from meta-theme and use to set the
2007-12-21  Luca Ferretti  <elle.uca@libero.it>

	* appearance-themes.c: (theme_message_area_response_cb),
	(theme_message_area_update), (themes_init):
	* theme-util.h:
	Read WindowTitleFont and DocumentsFont from meta-theme
	and use to set the value for /apps/metacity/general/titlebar_font
	and /desktop/gnome/interface/document_font_name GConf keys.
	This closes bug #504250


svn path=/trunk/; revision=8341
2007-12-21 19:42:29 +00:00
Jens Granseuer
9e29ffc280 remove more redundant info from the theme changed callback
2007-11-11  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (handle_change_signal), (update_theme_index),
	(update_common_theme_dir_index):
	* gnome-theme-info.h: remove more redundant info from the theme changed
	callback

2007-11-11  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (changed_on_disk_cb):
	* appearance-themes.c: (theme_changed_on_disk_cb): adapt to modified
	theme change callback


2007-11-11  Jens Granseuer  <jensgr@gmx.net>

	* theme-method.c: (theme_changed_callback): adapt to callback change

svn path=/trunk/; revision=8276
2007-11-11 19:36:29 +00:00
Jens Granseuer
782dddf5fe Patch by: Joel Pfaff <joel.pfaff@gmail.com>
2007-11-01  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Joel Pfaff <joel.pfaff@gmail.com>

	* appearance-themes.c: (themes_init): fix build without libXcursor

svn path=/trunk/; revision=8246
2007-11-01 19:22:51 +00:00
Jens Granseuer
286cdd1fcd simplify some more code, and fix a crash when the cursor theme in GConf is
2007-10-29  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (gtk_theme_changed), (window_theme_changed),
	(icon_theme_changed), (update_cursor_size_scale),
	(cursor_theme_changed):
	* appearance-themes.c: (theme_selection_changed_cb):
	* theme-util.c: (theme_is_writable):
	* theme-util.h: simplify some more code, and fix a crash when the
	cursor theme in GConf is unset that I introduced in r8212

svn path=/trunk/; revision=8228
2007-10-28 23:01:09 +00:00
Jens Granseuer
3dcede807d Switch to using a common theme struct that includes a type descriptor so
2007-10-28  Jens Granseuer  <jensgr@gmx.net>

	Switch to using a common theme struct that includes a type descriptor
	so we can avoid many of the theme type casts. This should also make
	adding support for live cursor theme changes a little easier.

	* gnome-theme-info.c: (add_theme_to_hash_by_name),
	(remove_theme_from_hash_by_name), (get_theme_from_hash_by_name),
	(gnome_theme_compare), (gnome_theme_free),
	(add_default_cursor_theme), (gdk_pixbuf_from_xcursor_image),
	(read_cursor_theme), (look_for_cursor_theme),
	(read_current_cursor_font), (read_cursor_fonts),
	(handle_change_signal), (update_theme_index),
	(update_common_theme_dir_index), (gtk2_dir_changed),
	(keybinding_dir_changed), (metacity_dir_changed),
	(common_theme_dir_changed), (common_icon_theme_dir_changed),
	(add_common_theme_dir_monitor),
	(add_common_icon_theme_dir_monitor),
	(remove_common_theme_dir_monitor), (top_theme_dir_changed),
	(top_icon_theme_dir_changed), (real_add_top_theme_dir_monitor),
	(gnome_theme_info_new), (gnome_theme_info_free),
	(gnome_theme_info_find), (gnome_theme_info_find_all_helper),
	(gnome_theme_icon_info_new), (gnome_theme_icon_info_find),
	(gnome_theme_icon_info_find_all), (gnome_theme_cursor_info_new),
	(gnome_theme_cursor_info_find), (gnome_theme_cursor_info_find_all),
	(gnome_theme_meta_info_new), (gnome_theme_meta_info_free),
	(gnome_theme_meta_info_find), (gnome_theme_meta_info_find_all),
	(gnome_theme_color_scheme_parse), (gnome_theme_init):
	* gnome-theme-info.h: Use CursorThemeCommonInfo wherever possible,
	remove some unused code.

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

	* appearance-style.c: (changed_on_disk_cb):
	* appearance-themes.c: (theme_changed_on_disk_cb): adapt to changes in
	theme change notification

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

	* theme-method.c: (theme_changed_callback): adapt to modified
	callback signature

svn path=/trunk/; revision=8224
2007-10-28 15:35:21 +00:00
Jens Granseuer
dbd00f0edd reduce the number if XCURSOR ifdefs and get rid of the special treatment
2007-10-27  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (cursor_size_scale_value_changed_cb),
	(update_cursor_size_scale), (cursor_theme_changed), (prepare_list):
	* appearance-themes.c: (theme_load_from_gconf):
	* theme-util.h: reduce the number if XCURSOR ifdefs and get rid of the
	special treatment for the default cursor theme

2007-10-27  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (look_for_cursor_theme), (read_cursor_fonts),
	(gnome_theme_init): ensure we always have the "default" cursor theme in
	the list

svn path=/trunk/; revision=8214
2007-10-27 13:59:36 +00:00
Jens Granseuer
2ba498e0c2 move function here from common/
2007-10-27  Jens Granseuer  <jensgr@gmx.net>

	* theme-util.c: (theme_is_writable):
	* theme-util.h: move function here from common/

	* appearance-style.c: (gtk_theme_changed), (window_theme_changed),
	(icon_theme_changed), (cursor_theme_changed):
	* appearance-themes.c: (theme_selection_changed_cb): adapt callers

2007-10-27  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c (gnome_theme_is_writable):
	* gnome-theme-info.h: move this function to the appearance capplet

svn path=/trunk/; revision=8211
2007-10-27 11:29:11 +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
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
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
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
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
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
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
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
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
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
a215c9db04 use our custom cell renderer for metathemes, too, so the previews don't
2007-07-30  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init):
	* data/appearance.glade: use our custom cell renderer for metathemes,
	too, so the previews don't get shaded (bug #461198)

svn path=/trunk/; revision=7934
2007-07-30 16:54:37 +00:00
Jens Granseuer
d23fb65eb6 only create the custom theme entry when changes are made, and delete it
2007-07-29  Jens Granseuer  <jensgr@gmx.net>

	* data/appearance.glade:
	* appearance-themes.c: (theme_custom_cb):
	* theme-save.c: (save_dialog_response): only create the custom theme
	entry when changes are made, and delete it when the theme is saved.
	These changes obsolete the requirement for a modal details window.

svn path=/trunk/; revision=7928
2007-07-29 18:20:31 +00:00
Jens Granseuer
e831657b38 cope with unset GConf keys, and group GConf notifications
2007-07-29  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_message_area_update), (themes_init):
	cope with unset GConf keys, and group GConf notifications

svn path=/trunk/; revision=7924
2007-07-29 16:17:44 +00:00
Denis Washington
ad496d45ae _Really_ only show background/font suggestions if they haven't already
2007-07-29  Denis Washington  <denisw@svn.gnome.org>

	* appearance-themes.c: (theme_message_area_response_cb),
	(theme_message_area_update), (theme_selection_changed_cb),
	(background_or_font_changed), (themes_init):
	_Really_ only show background/font suggestions if they haven't
	already been applied.

svn path=/trunk/; revision=7923
2007-07-29 15:37:22 +00:00
Denis Washington
2f8351bca7 Only show background/font suggestions if they haven't already been
2007-07-29  Denis Washington  <denisw@svn.gnome.org>

	* appearance-themes.c: (theme_message_area_response_cb),
	(theme_message_area_update), (theme_selection_changed_cb):
	Only show background/font suggestions if they haven't already
	been applied.

svn path=/trunk/; revision=7922
2007-07-29 14:51:59 +00:00
Denis Washington
35872177c1 Added controls for applying suggested backgrounds and/or fonts from
2007-07-29  Denis Washington  <denisw@svn.gnome.org>

	* data/appearance.glade:
	* appearance-themes.c: (theme_message_area_response_cb),
	(theme_message_area_update), (theme_selection_changed_cb),
	(themes_init), (themes_shutdown):
	* gedit-message-area.[ch]:
	* theme-util.h:
	Added controls for applying suggested backgrounds and/or fonts from
	metathemes. Copied over some code from gedit for the message area
	(GeditMessageArea).

	* Makefile.am:
	Added gedit-message-area.[ch].

svn path=/trunk/; revision=7921
2007-07-29 13:56:10 +00:00
Jens Granseuer
323bb9f54d constify drag'n'drop data, remove unused variable, use G_N_ELEMENTS where
2007-07-27  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init): constify drag'n'drop data, remove
	unused variable, use G_N_ELEMENTS where applicable

svn path=/trunk/; revision=7905
2007-07-27 19:42:33 +00:00
Jens Granseuer
2e3a38749e remove workarounds for initialization problems in early versions of the
2007-07-27  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init, theme_postinit): remove workarounds
	for initialization problems in early versions of the capplet

svn path=/trunk/; revision=7904
2007-07-27 18:04:52 +00:00
Denis Washington
fcfef66efd Implement drag-and drop theme installation.
2007-07-27  Denis Washington  <dwashington@gmx.net>

	* appearanc-themes.c: (appearance_window_drag_data_received_cb),
	(themes_init):
	Implement drag-and drop theme installation.

svn path=/trunk/; revision=7902
2007-07-27 14:07:14 +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
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
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
8b934e5ed4 when reading current settings from gconf, get the color scheme from the
2007-07-24  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_load_from_gconf): when reading current
	settings from gconf, get the color scheme from the gtk theme if necessary
	to allow matching against themes retrieved via gnome-theme-info

svn path=/trunk/; revision=7879
2007-07-24 20:34:23 +00:00
Denis Washington
07341b7afc change the button order in themes tab. add an icon to Customize button.
2007-07-08  Denis Washington  <denisw@svn.gnome.org>

	* appearance.glade: change the button order in themes tab.
	* appearance-style.c: add an icon to Customize button.

svn path=/trunk/; revision=7835
2007-07-08 17:56:26 +00:00
Jens Granseuer
cfa7894480 ellipsize the "Save As" button
2007-07-05  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init):
	* appearance.glade: ellipsize the "Save As" button

svn path=/trunk/; revision=7830
2007-07-05 20:11:53 +00:00
Jens Granseuer
5ae27eac8f move "selection_mode" to glade file and remove hard-coded item width
2007-06-28  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (themes_init):
	* appearance.glade: move "selection_mode" to glade file and remove
	hard-coded item width

svn path=/trunk/; revision=7799
2007-06-28 20:07:34 +00:00
Jens Granseuer
ca722b9177 fix leaks, use g_list_foreach instead of open-coded loop
2007-06-28  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_store_sort_func), (themes_init): fix leaks,
	use g_list_foreach instead of open-coded loop

svn path=/trunk/; revision=7798
2007-06-28 18:33:54 +00:00
Denis Washington
c59e3c2811 Load the metatheme thumbnails in the order they are in the list.
2007-06-27  Denis Washington  <denisw@svn.gnome.org>

	* appearance-themes.c: (theme_list_sort_func, themes_init):
	Load the metatheme thumbnails in the order they are in the list.

svn path=/trunk/; revision=7787
2007-06-27 07:16:01 +00:00
Denis Washington
edd29cffe6 Make the Custom theme always the first in the list and make it's label
2007-06-27  Denis Washington  <denisw@svn.gnome.org>

	* appearance.h:
	* appearance-themes.c: (theme_list_sort_func, themes_init):
	Make the Custom theme always the first in the list and make it's label bold
	to diffentiate it from the other themes.

svn path=/trunk/; revision=7786
2007-06-27 06:54:49 +00:00
Jens Granseuer
68295d5106 ... and actually accept an empty color scheme setting as valid
2007-06-26  Jens Granseuer  <jensgr@gmx.net>

	* appearance-themes.c: (theme_is_equal): ... and actually accept an empty
	color scheme setting as valid

svn path=/trunk/; revision=7783
2007-06-26 18:27:39 +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
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