Commit graph

209 commits

Author SHA1 Message Date
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
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
Thomas Wood
930245a60b - Fix theme installation (free called before last last use of a string) -
2007-07-29  Thomas Wood  <thos@gnome.org>

	* theme-installer.c: (file_theme_type), (gnome_theme_install_real):
	- Fix theme installation (free called before last last use of a string)
	- Update icon cache when installing icon themes (closes bug 355486)

svn path=/trunk/; revision=7919
2007-07-29 11:03:05 +00:00
Thomas Wood
d9683907b5 Fix mnemonics and Customize Theme window title. Closes bug 461255.
2007-07-29  Thomas Wood  <thos@gnome.org>

	* data/appearance.glade: Fix mnemonics and Customize Theme window title.
	Closes bug 461255.

svn path=/trunk/; revision=7918
2007-07-29 10:05:54 +00:00
Jens Granseuer
63f30c42f4 get rid of a number of unnecessary casts and the gtk version checks since
2007-07-28  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_view_tooltip_cb), (desktop_init):
	* data/appearance.glade: get rid of a number of unnecessary casts and the
	gtk version checks since we now depend on 2.11.6 unconditionally

svn path=/trunk/; revision=7915
2007-07-28 14:15:48 +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
Thomas Wood
0660969a64 Don't draw the selection indicator if width is -1
2007-07-28  Thomas Wood  <thos@gnome.org>

	* wp-cellrenderer.c: (cell_renderer_wallpaper_render): Don't draw the
	selection indicator if width is -1

svn path=/trunk/; revision=7912
2007-07-28 12:47:53 +00:00
Thomas Wood
1c73b3c809 c89 fix and add 1px border between selection indicator and contents
2007-07-28  Thomas Wood  <thos@gnome.org>

	* wp-cellrenderer.c: (cell_renderer_wallpaper_render): c89 fix and add 1px
	border between selection indicator and contents

svn path=/trunk/; revision=7911
2007-07-28 12:32:27 +00:00
Thomas Wood
c4b82d2716 Use cairo to draw the cell renderer selection
2007-07-28  Thomas Wood  <thos@gnome.org>

	* wp-cellrenderer.c: (cell_renderer_wallpaper_render): Use cairo to draw the
	cell renderer selection

svn path=/trunk/; revision=7910
2007-07-28 12:25:32 +00:00
Jens Granseuer
ef3bb7e92b fix cell renderer state logic to not be always on
2007-07-28  Jens Granseuer  <jensgr@gmx.net>

	* wp-cellrenderer.c: (cell_renderer_wallpaper_render):
	* wp-cellrenderer.h: fix cell renderer state logic to not be always on

svn path=/trunk/; revision=7909
2007-07-28 11:38:06 +00:00
Thomas Wood
f437b8f99d Add missing include
2007-07-28  Thomas Wood  <thos@gnome.org>

	* gnome-theme-info.h: Add missing include

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

	* theme-util.c: Add missing include

svn path=/trunk/; revision=7906
2007-07-28 10:53:57 +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
Denis Washington
2c3bcb8810 Moved to ../appearance/data/.
2007-07-27  Denis Washington  <denisw@svn.gnome.org>

	* mouse/cursor-*.pcf:
	* mouse/mouse-cursor-*.png:
	Moved to ../appearance/data/.

	* appearance/data/cursor-*.pcf:
	* appearance/data/mouse-cursor-*.png:
	Cursor fonts and thumbnails moved from gnome-mouse-properties.

	* appearance/data/Makefile.am:
	Install the new files.

svn path=/trunk/; revision=7901
2007-07-27 12:45:28 +00:00
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