Commit graph

208 commits

Author SHA1 Message Date
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
Denis Washington
b608a53acb Prevent cursor themes from being recognized as icon themes.
2007-07-28  Denis Washington  <denisw@svn.gnome.org>

	* gnome-theme-info.c: (read_icon_theme):
	Prevent cursor themes from being recognized as icon themes.

svn path=/trunk/; revision=7913
2007-07-28 13:05:59 +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
307679f2e2 connect to the GtkTreeViewSelection::changed signal instead of
2007-07-26  Jens Granseuer  <jensgr@gmx.net>

	* gconf-property-editor.c: (peditor_tree_view_widget_changed),
	(gconf_peditor_new_tree_view): connect to the GtkTreeViewSelection::changed
	signal instead of GtkTreeView::cursor_changed, so we actually get notified
	whenever the selection changes

svn path=/trunk/; revision=7899
2007-07-26 21:13:45 +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
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
2126b49c6e ChangeLog whitespace fix.
svn path=/trunk/; revision=7884
2007-07-25 17:31:25 +00:00
Denis Washington
ce7f03bdc3 Add support for cursor theme names saved in metathemes.
2007-07-25  Denis Washington <denisw@svn.gnome.org>

  * gnome-theme-info.h:
  * gnome-theme-info.c: (gnome_theme_read_meta_theme):
  * gnome-theme-apply.c: (gnome_meta_theme_set):
  Add support for cursor theme names saved in metathemes.

svn path=/trunk/; revision=7883
2007-07-25 17:30:21 +00:00
Denis Washington
222d100c2d Fix abug introduced by the changes in revision 7856 which caused cursor
2007-07-25  Denis Washington <denisw@svn.gnome.org>

	* gnome-theme-info.c: (add_common_icon_theme_dir_monitor),
	(look_for_cursor_theme):
	Fix abug introduced by the changes in revision 7856 which caused
	cursor themes to not being found anymore.

svn path=/trunk/; revision=7882
2007-07-25 15:43:51 +00:00
Jens Granseuer
2286497f8e general cleanup and leak-plugging add cursor theme info
2007-07-13  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (gdk_pixbuf_from_xcursor_image),
	(look_for_cursor_theme), (add_common_icon_theme_dir_monitor),
	(gnome_theme_cursor_info_new): general cleanup and leak-plugging
	* gnome-theme-test.c: (main): add cursor theme info

svn path=/trunk/; revision=7856
2007-07-13 18:32:25 +00:00
Frederic Crozat
e62cc67971 Fix crash when no cursor is specified in theme (fixes bug #455952).
2007-07-13  Frederic Crozat  <fcrozat@mandriva.com>

        * gnome-theme-info.c: (look_for_cursor_theme):
        Fix crash when no cursor is specified in theme (fixes bug #455952).


svn path=/trunk/; revision=7854
2007-07-13 07:35:29 +00:00
Jens Granseuer
fa41845299 include gdk-pixbuf.h (fixes bug #454634)
2007-07-08  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.h: include gdk-pixbuf.h (fixes bug #454634)

svn path=/trunk/; revision=7833
2007-07-08 15:23:08 +00:00
Denis Washington
df0060e59d Silly me...
svn path=/trunk/; revision=7826
2007-07-05 17:51:07 +00:00
Denis Washington
bbee377d3f Add support for cursor themes (GnomeThemeCursorInfo); probably still a bit
2007-07-01  Denis Washington  <denisw@svn.gnome.org>

	* gnome-theme-info.[ch]:
	Add support for cursor themes (GnomeThemeCursorInfo); probably still a bit
	rough around the edges, but it works.

svn path=/trunk/; revision=7823
2007-07-05 17:43:09 +00:00
Jens Granseuer
2d521a0b6e add safeguards for NULL values (closes bug #441036)
2007-07-01  Jens Granseuer  <jensgr@gmx.net>

	* gconf-property-editor.c: (peditor_string_value_changed),
	(peditor_color_value_changed): add safeguards for NULL values (closes
	bug #441036)

svn path=/trunk/; revision=7810
2007-07-01 15:01:23 +00:00
Jens Granseuer
87fb51d921 compare the string from the widget against the converted gconf value, not
2007-06-29  Jens Granseuer  <jensgr@gmx.net>

	* gconf-property-editor.c: (peditor_string_value_changed): compare the
	string from the widget against the converted gconf value, not the
	unmodified one

svn path=/trunk/; revision=7807
2007-06-29 20:53:25 +00:00
Michael Terry
6b9550b491 use icon theme for app icons, bug #450777
svn path=/trunk/; revision=7784
2007-06-26 23:29:58 +00:00
Denis Washington
443068f132 Remove redundant newline in ChangeLog.
svn path=/trunk/; revision=7775
2007-06-25 15:11:22 +00:00
Denis Washington
4ac577360b Generate all types of thumbnails in a seperate process, not just those for
2007-06-25  Denis Washington  <denisw@svn.gnome.org>

	* theme-thumbnail.[ch]:
	Generate all types of thumbnails in a seperate process, not just those for
	metathemes.

svn path=/trunk/; revision=7774
2007-06-25 15:10:21 +00:00
Denis Washington
34adc6a2db Make metatheme thumbnails original-sized and add check box + radio button.
2007-06-22  Denis Washington  <denisw@svn.gnome.org>

	* theme-thumbnail.c: (create_image):
	Make metatheme thumbnails original-sized and add check box + radio button.

svn path=/trunk/; revision=7758
2007-06-22 15:32:44 +00:00
Jens Granseuer
33dd3f654a fix function signatures
2007-06-20  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (gnome_theme_icon_info_find,
	gnome_theme_is_writable):
	* gnome-theme-info.h: fix function signatures

svn path=/trunk/; revision=7754
2007-06-20 20:14:18 +00:00
Jens Granseuer
4d5c158170 remove obsolete files
2007-06-18  Jens Granseuer  <jensgr@gmx.net>

	* Makefile.am: remove obsolete files

svn path=/trunk/; revision=7745
2007-06-18 17:56:39 +00:00
Jens Granseuer
556f49a625 plug leak fix comment
2007-06-12  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (gnome_theme_icon_info_free): plug leak
	* theme-thumbnail.c: (message_from_child): fix comment

svn path=/trunk/; revision=7722
2007-06-12 20:57:39 +00:00
Denis Washington
3b1d45c537 Stop the GdkDisplay mess and let gnome-appearance-properties handle gtk+
2007-06-09  Denis Washington  <denisw@svn.gnome.org>

	* theme-thumbnail.c: (generate_gtk_theme_thumbnail):
	Stop the GdkDisplay mess and let gnome-appearance-properties handle
	gtk+ theme changes manually instead.

svn path=/trunk/; revision=7720
2007-06-12 17:05:17 +00:00
Jens Granseuer
934b33e8c7 make it possible to skip engine information if we're not interested and
2007-06-10  Jens Granseuer  <jensgr@gmx.net>

	* gtkrc-utils.c: (gtkrc_get_details), (gtkrc_get_color_scheme):
	make it possible to skip engine information if we're not interested
	and fix a warning

svn path=/trunk/; revision=7712
2007-06-10 18:10:38 +00:00
Jens Granseuer
19cfd08b3d add some more checks so we don't try to strcmp NULL strings (fixes bug
2007-06-10  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-apply.c: (gnome_meta_theme_set): add some more checks so
	we don't try to strcmp NULL strings (fixes bug #445908)

svn path=/trunk/; revision=7710
2007-06-10 17:22:16 +00:00
Denis Washington
f4ee5fb273 Fix the appearance capplet windows not reacting to gtk+ theme changes.
2007-06-09  Denis Washington  <denisw@svn.gnome.org>

	* theme-thumbnail.c: (generate_gtk_theme_thumbnail):
	Fix the appearance capplet windows not reacting to gtk+ theme changes.

svn path=/trunk/; revision=7707
2007-06-09 14:17:58 +00:00
Jens Granseuer
7144393cbc modify the theme change callback to return more useful information and add
2007-06-07  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (handle_change_signal),
	(gnome_theme_is_writable),
	(gnome_theme_info_register_theme_change):
	* gnome-theme-info.h:
	modify the theme change callback to return more useful
	information and add a function to determine whether a given
	theme is writable

svn path=/trunk/; revision=7703
2007-06-07 19:08:19 +00:00
Jens Granseuer
5a510b1c3f remove obsolete files
2007-06-06  Jens Granseuer  <jensgr@gmx.net>

	* Bonobo_Control_Capplet_generic.oaf.in:
	* wrapper-script.in: remove obsolete files

svn path=/trunk/; revision=7700
2007-06-06 16:24:17 +00:00
Jens Granseuer
94e474bcd7 remove caching from the thumbnailer since all of the current users work
2007-06-06  Jens Granseuer  <jensgr@gmx.net>

	* theme-thumbnail.c: (message_from_child),
	(generate_theme_thumbnail), (generate_theme_thumbnail_async),
	(theme_thumbnail_factory_init):
	* theme-thumbnail.h: remove caching from the thumbnailer since
	all of the current users work around it anyway, and resources
	aren't managed properly

svn path=/trunk/; revision=7699
2007-06-06 16:22:51 +00:00
Jens Granseuer
f7873f1304 some more house-keeping
2007-06-06  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (safe_strcmp), (get_data_from_hash_by_name),
	(read_icon_theme), (handle_change_signal), (update_theme_index),
	(gnome_theme_meta_info_compare):
	* gnome-theme-info.h: some more house-keeping

svn path=/trunk/; revision=7698
2007-06-06 16:05:55 +00:00
Jens Granseuer
e57c99d8e0 add a parameter to circumvent the internal thumbnail cache to the
2007-06-06  Jens Granseuer  <jensgr@gmx.net>

	* theme-thumbnail.c: (generate_theme_thumbnail_async):
	* theme-thumbnail.h: add a parameter to circumvent the internal
	thumbnail cache to the asynchronous generator

svn path=/trunk/; revision=7695
2007-06-05 22:16:51 +00:00
Jens Granseuer
76d0c77d85 simplify, clean up, and fix a few leaks
2007-05-30  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (safe_strcmp), (add_data_to_hash_by_name),
	(handle_change_signal), (update_common_theme_dir_index),
	(gtk2_dir_changed), (keybinding_dir_changed),
	(metacity_dir_changed), (common_theme_dir_changed),
	(common_icon_theme_dir_changed), (top_theme_dir_changed),
	(top_icon_theme_dir_changed), (real_add_top_theme_dir_monitor),
	(gnome_theme_info_find_by_type_helper),
	(gnome_theme_info_find_by_type),
	(gnome_theme_icon_info_find_all_helper),
	(gnome_theme_icon_info_find_all), (gnome_theme_icon_info_compare),
	(gnome_theme_meta_info_new),
	(gnome_theme_meta_info_find_all_helper),
	(gnome_theme_meta_info_find_all), (gnome_theme_meta_info_compare),
	(gnome_theme_info_register_theme_change): simplify, clean up, and fix
	a few leaks

svn path=/trunk/; revision=7677
2007-05-29 23:17:39 +00:00
Jens Granseuer
6fc827db4d recognize both "gtk-color-scheme" and "gtk_color_scheme" (fixes thumbnail
2007-05-29  Jens Granseuer  <jensgr@gmx.net>

	* gtkrc-utils.c: (gtkrc_get_color_scheme): recognize both
	"gtk-color-scheme" and "gtk_color_scheme" (fixes thumbnail generation
	for e.g. the Mist metatheme)

svn path=/trunk/; revision=7676
2007-05-29 19:20:07 +00:00
Jens Granseuer
8ad25db4a1 remove property editor for the deprecated GtkOptionMenu, now that all
2007-05-28  Jens Granseuer  <jensgr@gmx.net>

	* gconf-property-editor.c:
	* gconf-property-editor.h: remove property editor for the deprecated
	GtkOptionMenu, now that all users are upgraded to GtkComboBox

svn path=/trunk/; revision=7674
2007-05-28 20:19:32 +00:00
Jens Granseuer
bd8a7ca464 drop unnecessary strlen (generate_theme_thumbnail_async): save some casts
2007-05-28  Jens Granseuer  <jensgr@gmx.net>

	* theme-thumbnail.c: (generate_theme_thumbnail): drop unnecessary strlen
	(generate_theme_thumbnail_async): save some casts
	(generate_gtk_theme_thumbnail): don't leak the theme name

svn path=/trunk/; revision=7671
2007-05-28 18:56:22 +00:00
Jens Granseuer
f86808e954 add a "readable_name" property for icon themes, and make sure "name"
2007-05-25  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (read_icon_theme):
	* gnome-theme-info.h:
	add a "readable_name" property for icon themes, and make sure "name"
	points to the internal theme name

svn path=/trunk/; revision=7660
2007-05-25 20:16:10 +00:00
Denis Washington
729d77ed0e Make gtk+ theme previews more compact.
2007-05-25  Denis Washington  <denisw@svn.gnome.org>

	* theme-thumbnail.c:
	Make gtk+ theme previews more compact.

svn path=/trunk/; revision=7659
2007-05-25 18:14:11 +00:00
Denis Washington
4fe155f858 Add functions to generate thumbnails for specific types of themes, for
* theme-thumbnail.[ch]:
Add functions to generate thumbnails for specific types of themes, for 
instance a metacity theme thumbnail.


svn path=/trunk/; revision=7653
2007-05-25 14:35:52 +00:00
Denis Washington
8babb52619 Scroll to new selected cell if the gconf value changes.
* gconf-property-editor.c: (peditor_tree_view_widget_changed):
Scroll to new selected cell if the gconf value changes.

svn path=/trunk/; revision=7651
2007-05-24 15:05:51 +00:00
Jens Granseuer
c1a2b46553 make sure we always return a copy of the window manager name, not a static
2007-05-23  Jens Granseuer  <jensgr@gmx.net>

	* wm-common.c: (wm_common_get_current_window_manager): make sure we
	always return a copy of the window manager name, not a static string
	(fixes bug #439244)

svn path=/trunk/; revision=7650
2007-05-23 17:30:07 +00:00
Jens Granseuer
8e4cd52704 don't call gconf_value_free with a NULL value
2007-05-19  Jens Granseuer  <jensgr@gmx.net>

	* gconf-property-editor.c: (peditor_tree_view_widget_changed):
	don't call gconf_value_free with a NULL value

svn path=/trunk/; revision=7638
2007-05-19 12:46:42 +00:00
Jens Granseuer
9bc2394d4e add a property editor for GtkTreeView and fix crashes with all peditors if
2007-05-18  Jens Granseuer  <jensgr@gmx.net>

	* gconf-property-editor.c: (peditor_boolean_value_changed),
	(peditor_integer_value_changed), (peditor_string_value_changed),
	(peditor_color_value_changed), (peditor_select_menu_value_changed),
	(peditor_combo_box_value_changed),
	(peditor_select_radio_value_changed),
	(peditor_numeric_range_value_changed),
	(peditor_font_value_changed), (peditor_image_value_changed),
	(gconf_peditor_new_select_radio_with_enum),
	(peditor_tree_view_value_changed),
	(peditor_tree_view_widget_changed), (gconf_peditor_new_tree_view):
	* gconf-property-editor.h: add a property editor for GtkTreeView
	and fix crashes with all peditors if the requested key is not
	available

svn path=/trunk/; revision=7636
2007-05-18 18:55:39 +00:00
Jens Granseuer
60bf46d133 fix memory leaks
2007-05-09  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (gnome_theme_read_meta_theme):
	* gtkrc-utils.c: (gtkrc_find_named), (gtkrc_get_color_scheme): fix
	memory leaks

	* gnome-theme-test.c: (main): init g_thread

svn path=/trunk/; revision=7589
2007-05-09 19:48:03 +00:00
Jens Granseuer
d3cad0bcbe constify a number of function arguments
2007-05-09  Jens Granseuer  <jensgr@gmx.net>

	* gconf-property-editor.c: (gconf_peditor_new),
	(gconf_peditor_new_boolean), (gconf_peditor_new_integer_valist),
	(gconf_peditor_new_integer), (gconf_peditor_new_string_valist),
	(gconf_peditor_new_string), (gconf_peditor_new_filename),
	(gconf_peditor_new_color), (gconf_peditor_new_select_menu),
	(gconf_peditor_new_select_menu_with_enum),
	(gconf_peditor_new_combo_box),
	(gconf_peditor_new_combo_box_with_enum),
	(gconf_peditor_new_select_radio),
	(gconf_peditor_new_numeric_range), (gconf_peditor_new_font),
	(gconf_peditor_new_enum_toggle), (gconf_peditor_new_image),
	(gconf_peditor_new_select_radio_with_enum):
	* gconf-property-editor.h: constify a number of function arguments

svn path=/trunk/; revision=7588
2007-05-09 18:52:47 +00:00
Jens Granseuer
8ae230b9ae add support for unsetting GConf values if the conversion handlers return
2007-05-08  Jens Granseuer  <jensgr@gmx.net>

	* gconf-property-editor.c: (peditor_set_gconf_value),
	(peditor_combo_box_widget_changed):
	add support for unsetting GConf values if the conversion handlers return
	null, and use it for the combo box editor

svn path=/trunk/; revision=7573
2007-05-07 22:28:48 +00:00
Jens Granseuer
76b657073e add GConfPropertyEditor support for GtkComboBox
2007-05-01  Jens Granseuer  <jensgr@gmx.net>

	* gconf-property-editor.c: (peditor_combo_box_value_changed),
	(peditor_combo_box_widget_changed), (gconf_peditor_new_combo_box),
	(gconf_peditor_new_combo_box_with_enum):
	* gconf-property-editor.h: add GConfPropertyEditor support for GtkComboBox

svn path=/trunk/; revision=7532
2007-05-01 16:33:19 +00:00
Thomas Wood
bc8e3ee007 Don't try and open null filenames Reset the gtk_color_scheme after a
2007-03-04  Thomas Wood  <thos@gnome.org>

	* gnome-theme-info.c: (gnome_theme_read_meta_theme): Don't try and open null
	filenames
	* theme-thumbnail.c: (message_from_capplet): Reset the gtk_color_scheme after
	a thumbnail has been generated.

svn path=/trunk/; revision=7359
2007-03-04 18:28:57 +00:00
Thomas Wood
3a4bd9578d Move gtkrc-utils from capplets/theme-switcher to capplets/common.
2007-03-04  Thomas Wood  <thos@gnome.org>

	* Makefile.am:
	* gtkrc-utils.c: (gtkrc_get_details):
	* gtkrc-utils.h:
	Move gtkrc-utils from capplets/theme-switcher to capplets/common.

	* gnome-theme-info.c: (gnome_theme_read_meta_theme): Search the gtkrc for
	the colour scheme if none was found in the metatheme file. Fixes a problem
	when comparing two metathemes which only differ by the colour scheme setting.


svn path=/trunk/; revision=7356
2007-03-04 17:17:47 +00:00
Thomas Wood
4a33f799ef Set the gtk-color-scheme even if it is blank. Set the gtk-color-scheme
2007-02-28  Thomas Wood  <thos@gnome.org>

	* gnome-theme-apply.c: (gnome_meta_theme_set): Set the gtk-color-scheme even
	if it is blank.
	* theme-thumbnail.c: (create_image), (handle_bytes),
	(generate_theme_thumbnail), (generate_theme_thumbnail_async),
	(theme_thumbnail_factory_init): Set the gtk-color-scheme when creating the
	thumbnail.

svn path=/trunk/; revision=7344
2007-02-28 09:18:24 +00:00