Commit graph

292 commits

Author SHA1 Message Date
Jens Granseuer
7af0f3f05b move some utility code over to common
2007-07-26  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (update_color_buttons_from_string):
	* appearance-themes.c: (theme_load_from_gconf), (theme_is_equal):
	* theme-util.c: (theme_find_in_model):
	* theme-util.h: move some utility code over to common

svn path=/trunk/; revision=7898
2007-07-26 19:50:20 +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
Jens Granseuer
0b3d3935dd add a comment for translators (bug #460506)
2007-07-26  Jens Granseuer  <jensgr@gmx.net>

	* gnome-wp-item.c: (gnome_wp_item_update_description): add a comment
	for translators (bug #460506)

svn path=/trunk/; revision=7892
2007-07-26 17:37:04 +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
Thomas Wood
2a20516726 Patch by: Dennis Cranston <dennis_cranston@yahoo.com>
2007-07-25  Thomas Wood  <thos@gnome.org>

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

	* gnome-wp-item.c: (gnome_wp_item_update_description):Simplify tooltip
	descriptions.  Change "Location" to "Folder".  Do not overuse bold text.
	Closes bug 460111.

svn path=/trunk/; revision=7886
2007-07-25 20:10:16 +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
Thomas Wood
bb650ba152 Add makefile
2007-07-24  Thomas Wood  <thos@gnome.org>

	* data/Makefile.am: Add makefile

svn path=/trunk/; revision=7878
2007-07-24 20:09:06 +00:00
Thomas Wood
c8f9aee581 Add a data sub-directory for non-code items
2007-07-24  Thomas Wood  <thos@gnome.org>

	* data: Add a data sub-directory for non-code items

svn path=/trunk/; revision=7875
2007-07-24 19:54:51 +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
7ea1e18d5c bump all tooltips code to gtk 2.11.6
2007-07-23  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (desktop_init): bump all tooltips code to gtk
	2.11.6

svn path=/trunk/; revision=7868
2007-07-23 18:43:37 +00:00
Jens Granseuer
0e16486c79 Use new GTK+ convenience API for icon view tooltips. (#455985)
2007-07-12  Jens Granseuer  <jensgr@gmx.net>

        * appearance-desktop.c: Use new GTK+ convenience API for
        icon view tooltips.  (#455985)



svn path=/trunk/; revision=7867
2007-07-23 18:21:39 +00:00
Jens Granseuer
14ba88579a add option to add wallpapers via the command line (closes bug #456337)
2007-07-12  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_load_stuffs), (desktop_init),
	(desktop_shutdown):
	* appearance-desktop.h:
	* appearance-main.c: (main):
	* appearance.h: add option to add wallpapers via the command line
	(closes bug #456337)

svn path=/trunk/; revision=7853
2007-07-12 20:52:15 +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
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
04d06f42d6 fix leaks
2007-07-08  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_view_tooltip_cb): fix leaks

svn path=/trunk/; revision=7834
2007-07-08 17:52:41 +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
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
e146c38627 set an explicit item width for the metatheme icon view so overly long
2007-07-05  Denis Washington  <denisw@svn.gnome.org>

	* appearance.glade: set an explicit item width for the metatheme icon
	view so overly long names don't needlessly widen all items' 
width. Such
	names are wrapped now.

svn path=/trunk/; revision=7827
2007-07-05 18:00:55 +00:00
Denis Washington
1f9ed4e83a Silly me...
svn path=/trunk/; revision=7825
2007-07-05 17:50:40 +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
a2d38b7924 add explicit width_request to our icon views so we can use
2007-06-28  Jens Granseuer  <jensgr@gmx.net>

	* appearance.glade: add explicit width_request to our icon views so we
	can use GTK_POLICY_NEVER for horizontal scrollbars and still properly
	resize the window (part of bug #451585)

svn path=/trunk/; revision=7800
2007-06-28 21:39:22 +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
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
Denis Washington
4da29f5eb2 Fixed resize problems.
2007-06-25  Denis Washington  <denisw@svn.gnome.org>

	* appearance.glade: Fixed resize problems.

svn path=/trunk/; revision=7779
2007-06-25 18:05:49 +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
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
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
ad582ed926 use STOCK_DELETE instead of STOCK_OK in the confirmation dialog
2007-06-23  Jens Granseuer  <jensgr@gmx.net>

	* theme-util.c: (theme_delete): use STOCK_DELETE instead of STOCK_OK in
	the confirmation dialog

svn path=/trunk/; revision=7763
2007-06-23 12:55:38 +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
a25bb175c9 Tweak the metatheme icon view's margin and spacings to better fit to the
2007-06-22  Denis Washington  <denisw@svn.gnome.org>

	* appearance.glade:
	Tweak the metatheme icon view's margin and spacings to better fit to the
	new thumbnails.

	* theme-thumbnailing.png:
	Modernized and brought to the size of the new metatheme thumbnails.

svn path=/trunk/; revision=7759
2007-06-22 15:37:21 +00:00
Jens Granseuer
fed6891768 fix compiler warning
2007-06-18  Jens Granseuer  <jensgr@gmx.net>

	* theme-installer.c: (gnome_theme_install_real): fix compiler warning

svn path=/trunk/; revision=7743
2007-06-18 17:48:26 +00:00
Jens Granseuer
df1a48a5ab remove install buttons from individual detail pages and HIG-ify the
2007-06-18  Jens Granseuer  <jensgr@gmx.net>

	* appearance.glade: remove install buttons from individual detail pages
	and HIG-ify the "revert to defaults" label

svn path=/trunk/; revision=7742
2007-06-18 17:14:05 +00:00
Jens Granseuer
605992d0e7 just check for configure instead of configure.in since configure.ac is
2007-06-18  Jens Granseuer  <jensgr@gmx.net>

	* theme-installer.c: (file_theme_type): just check for configure
	instead of configure.in since configure.ac is valid as well; we still
	need a better way to identify engines...

svn path=/trunk/; revision=7741
2007-06-18 16:21:28 +00:00
Rodrigo Moya
baa992a9ef added the names of the pages to the help strings for --show-page argument.
2007-06-18  Rodrigo Moya <rodrigo@gnome-db.org>

	* appearance-main.c: added the names of the pages to the help strings
	for --show-page argument.

svn path=/trunk/; revision=7740
2007-06-18 12:29:52 +00:00
Jens Granseuer
a74694884b add --show-page option to specify the page with which to start
2007-06-17  Jens Granseuer  <jensgr@gmx.net>

	* appearance-main.c: (main):
	* appearance.glade: add --show-page option to specify the page with
	which to start

svn path=/trunk/; revision=7739
2007-06-17 15:58:24 +00:00
Denis Washington
45b4503f34 Added metadata tooltips to the thumbnails in the Background tab. Needs
2007-06-17  Denis Washington  <denisw@svn.gnome.org>

	* appearance-desktop.c: (desktop_init): (wp_view_tooltip_cb):
	* gnome-wp-item.c: (gnome_wp_item_update_description):
	Added metadata tooltips to the thumbnails in the Background tab.
	Needs GTK+ 2.11 to compile (but is surrounded with GTK_CHECK_VERSION()
	for compilation with older gtk+ versions).

svn path=/trunk/; revision=7738
2007-06-17 15:55:58 +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
cba96896bc make gnome-theme-installer work
2007-06-16  Jens Granseuer  <jensgr@gmx.net>

	* Makefile.am:
	* appearance-main.c: (init_appearance_data), (main):
	* gnome-theme-installer.desktop.in.in: make gnome-theme-installer
	work

svn path=/trunk/; revision=7731
2007-06-16 15:32:12 +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