Commit graph

2158 commits

Author SHA1 Message Date
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
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
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
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
Jens Granseuer
3aaf0a7472 remove obsolete files remove leftover bits from bug #386413 to make
2007-06-02  Jens Granseuer  <jensgr@gmx.net>

	* at-startup-session.c:
	* at-startup-session.h: remove obsolete files
	* main.c: (at_enable_toggled): remove leftover bits from bug
	#386413 to make distcheck pass

svn path=/trunk/; revision=7682
2007-06-02 12:02:22 +00:00
Jens Granseuer
d64a72b4b3 fix duplicate mnemonic
2007-05-30  Jens Granseuer  <jensgr@gmx.net>

	* appearance.glade: fix duplicate mnemonic

svn path=/trunk/; revision=7679
2007-05-30 17:36:26 +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
47099c43e3 minor code simplification/cleanup
2007-05-28  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (style_init), (find_string_in_model),
	(conv_to_widget_cb), (update_color_buttons_from_string): minor
	code simplification/cleanup

svn path=/trunk/; revision=7670
2007-05-28 14:02:46 +00:00
Jens Granseuer
8f81487cea remove fonts, theme, and ui capplets from the build and purge some
2007-05-28  Jens Granseuer  <jensgr@gmx.net>

	* configure.in:
	* capplets/Makefile.am: remove fonts, theme, and ui capplets from the build
	and purge some obsolete stuff from configure.in

svn path=/trunk/; revision=7666
2007-05-28 12:05:12 +00:00
Jens Granseuer
b5d7092ee9 and don't use gtk_timeout_remove, either..
2007-05-27  Jens Granseuer  <jensgr@gmx.net>

	* pipeline-tests.c: (user_test_pipeline): and don't use
	gtk_timeout_remove, either..

svn path=/trunk/; revision=7665
2007-05-27 19:12:12 +00:00
Jens Granseuer
d66e29fc59 use g_timeout_add() instead of the deprecated gtk_timeout_add() set non-0
2007-05-27  Jens Granseuer  <jensgr@gmx.net>

	* pipeline-tests.c: (user_test_pipeline): use g_timeout_add() instead
	of the deprecated gtk_timeout_add()
	* sound-properties.glade: set non-0 pulse step for the progress bar to
	actually make it move (fixes bug #441587)

svn path=/trunk/; revision=7664
2007-05-27 18:50:41 +00:00
Jens Granseuer
41c0f5b206 don't leak thumbnails
2007-05-25  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (prepare_list): don't leak thumbnails

svn path=/trunk/; revision=7662
2007-05-25 20:26:57 +00:00
Jens Granseuer
cfb2e71789 properly distinguish between theme name and theme label (currently only
2007-05-25  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (prepare_list), (conv_to_widget_cb),
	(conv_from_widget_cb): properly distinguish between theme name and
	theme label (currently only relevant for icon themes)

svn path=/trunk/; revision=7661
2007-05-25 20:22:44 +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
f9e6d4c508 Add theme-thumbnailing.png to Makefile.am.
2007-05-25  Denis Washington  <denisw@svn.gnome.org>

	* theme-thumbnailing.png:
	Add theme-thumbnailing.png to Makefile.am.

svn path=/trunk/; revision=7658
2007-05-25 17:49:38 +00:00
Denis Washington
82a2c1f64d Added as it is used by appearance-themes.c
2007-05-25  Denis Washington  <denisw@svn.gnome.org>

	* theme-thumbnailing.png:
	Added as it is used by appearance-themes.c

svn path=/trunk/; revision=7656
2007-05-25 15:25:20 +00:00
Denis Washington
339c2f5307 Fix button order in theme details dialog again.
2007-05-25  Denis Washington  <denisw@svn.gnome.org>

	* appearance.glade: Fix button order in theme details dialog 
again.

svn path=/trunk/; revision=7655
2007-05-25 14:50:32 +00:00
Denis Washington
70f7e8358f Revert the organization of the theme details dialog to the old (2.18)
* appearance.glade:
* appearance-style.c:
Revert the organization of the theme details dialog to the old (2.18) 
style again, but now with thumbnails for gtk+, metacity and icon themes.

svn path=/trunk/; revision=7654
2007-05-25 14:44:03 +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
29c6ddb8cc surivive XRandR returning weird results for some dual-screen setups. This
2007-05-22  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (get_current_resolution): surivive XRandR returning weird
	results for some dual-screen setups. This fixes the crash in bug
	#356520, but a proper fix for handling this situation is still
	necessary, unless this is just a driver/X bug...

svn path=/trunk/; revision=7646
2007-05-22 17:46:43 +00:00
Sergey V. Udaltsov
f8aa7cb87b properly building gobject
svn path=/trunk/; revision=7640
2007-05-19 13:36:22 +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
Sergey V. Udaltsov
23839961ae make things buildable with libxklavier 3.2
svn path=/trunk/; revision=7637
2007-05-19 11:27:06 +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
Sergey V. Udaltsov
a0b8e6e3e2 Adding optional vendor combo
svn path=/trunk/; revision=7634
2007-05-17 22:23:00 +00:00
Jens Granseuer
dae1952805 minor cleanup and getting rid of unnecessary casts
2007-05-16  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (prepare_combo), (find_string_in_model),
	(conv_to_widget_cb), (conv_from_widget_cb),
	(update_color_buttons_from_string), (color_button_clicked_cb):
	minor cleanup and getting rid of unnecessary casts

svn path=/trunk/; revision=7628
2007-05-16 16:48:59 +00:00
Denis Washington
c5b68b203c Minor code cleanup.
* appearance-desktop.c: (desktop_init): Minor code cleanup.

svn path=/trunk/; revision=7627
2007-05-16 16:35:28 +00:00
Denis Washington
c2ac13ab3b re-enable drag-and-drop for the wallpaper list.
* appearance-desktop.c: (desktop_init): re-enable drag-and-drop for the 
wallpaper list.

svn path=/trunk/; revision=7626
2007-05-16 16:15:45 +00:00
Jens Granseuer
5d5877c4f4 fix button order, remove redundant receives_default, don't mark stock
2007-05-14  Jens Granseuer  <jensgr@gmx.net>

	* appearance.glade: fix button order, remove redundant receives_default,
	don't mark stock labels translatable, and other minor cleanups

svn path=/trunk/; revision=7622
2007-05-14 17:58:01 +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
Thomas Wood
64c8cbba68 Sort the items in the theme lists
2007-05-13  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: (prepare_combo): Sort the items in the theme lists

svn path=/trunk/; revision=7619
2007-05-13 20:24:14 +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
Thomas Wood
2717cd85e6 Add colour scheme functions
2007-05-13  Thomas Wood  <thos@gnome.org>

	* appearance-style.c: Add colour scheme functions

svn path=/trunk/; revision=7615
2007-05-13 18:23:12 +00:00
Jens Granseuer
3f22b2e8b3 fix duplicate mnemonic
2007-05-13  Jens Granseuer  <jensgr@gmx.net>

	* appearance.glade: fix duplicate mnemonic

svn path=/trunk/; revision=7614
2007-05-13 16:59:24 +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
Jens Granseuer
2e4c1f2e64 use predefined GTK constants for reponse ids
2007-05-13  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (appearance_window_response):
	* appearance.glade: use predefined GTK constants for reponse ids

svn path=/trunk/; revision=7611
2007-05-13 16:26:33 +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
55f1e82094 now we parse the entire glade file at startup, there's no need to reparse
2007-05-13  Jens Granseuer  <jensgr@gmx.net>

	* appearance-font.c: (cb_details_response), (cb_show_details):
	now we parse the entire glade file at startup, there's no need to
	reparse it for the font details dialog

svn path=/trunk/; revision=7609
2007-05-13 16:20:17 +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
Jens Granseuer
ab26956b2e don't leak the WPItems
2007-05-13  Jens Granseuer  <jensgr@gmx.net>

	* gnome-wp-item.c: (gnome_wp_item_free): don't leak the WPItems

svn path=/trunk/; revision=7607
2007-05-13 15:41:30 +00:00