Commit graph

27 commits

Author SHA1 Message Date
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
13c68a2e1e - Remove seperate color scheme saving UI - Add support for
2007-01-19  Thomas Wood  <thos@gnome.org>

	* gnome-theme-details.c: (update_color_scheme_tab), (color_select),
	(toggle_color_scheme_key):
	* gnome-theme-manager.c: (free_all), (load_meta_themes),
	(meta_theme_setup_info), (meta_theme_selection_changed),
	(update_themes_from_disk), (add_custom_row_to_meta_theme),
	(themes_equal), (update_settings_from_gconf_idle),
	(update_settings_from_gconf), (gtk_theme_key_changed),
	(setup_dialog):
	* gnome-theme-save.c: (write_theme_to_disk):
	* theme-properties.glade:

	- Remove seperate color scheme saving UI
	- Add support for gtk-color-scheme key in metatheme info

2007-01-19  Thomas Wood  <thos@gnome.org>

	* gnome-theme-apply.c: (gnome_meta_theme_set):
	* gnome-theme-info.c: (gnome_theme_read_meta_theme),
	(gnome_theme_meta_info_new), (gnome_theme_meta_info_free),
	(gnome_theme_meta_info_print), (gnome_theme_meta_info_compare):
	* gnome-theme-info.h:

	Add support for saving and applying the gtk-color-scheme key

svn path=/trunk/; revision=7152
2007-01-19 01:33:26 +00:00
Thomas Wood
a90379247b Applied patch from Priit Laes <amd@store20.com>. Fixes bug 349471 (Crash
2007-01-11  Thomas Wood  <thos@gnome.org>

	* gnome-theme-info.c: (update_common_theme_dir_index): Applied patch
	from Priit Laes <amd@store20.com>. Fixes bug 349471 (Crash on manually
	changing the icon theme name).

svn path=/trunk/; revision=7071
2007-01-06 23:34:20 +00:00
Christian Persch
d9df99ccc6 Fixes #393117
2007-01-05  Christian Persch <chpe@gnome.org>

	Fixes #393117

	* gnome-theme-info.c (read_icon_theme): fixed leak.

svn path=/trunk/; revision=7043
2007-01-05 13:11:46 +00:00
Kjartan Maraas
564a9d03aa Huge cleanup. Individual ChangeLogs have info. Closing bug #320157. ANSIfy
2005-11-14  Kjartan Maraas  <kmaraas@gnome.org>

	* */*: Huge cleanup. Individual ChangeLogs have info.
	Closing bug #320157.
	* libkbddraw/keyboard-drawing.h: ANSIfy some function declarations.
2005-11-14 15:18:09 +00:00
Muktha
5201e26525 Update the desktop font in addition to the application font when 'apply
2005-10-11  Muktha  <muktha.narayan@wipro.com>

        * gnome-theme-info.h:
	* gnome-theme-manager.h:
	* gnome-theme-manager.c (apply_font_clicked):
        * gnome-theme-info.c (gnome_theme_read_meta_theme)
        (gnome_theme_meta_info_free) (gnome_theme_meta_info_print)
        (gnome_theme_meta_info_compare): Update the desktop font in
        addition to the application font when 'apply font' in large print
        themes is selected. Fixes #123551.
2005-10-11 11:27:36 +00:00
Shakti Sen
45b672f60f Do not add the Icon Theme if the key 'Hidden' is 'true' in the index.theme
2005-03-02  Shakti Sen  <shprasad@novell.com>

        * gnome-theme-info.c (read_icon_theme): Do not add the Icon Theme if
        the key 'Hidden' is 'true' in the index.theme file.

        Fixes bug #168348
2005-05-22 16:13:45 +00:00
Sebastien Bacher
12e01119d8 patch by Kjartan Maraas <kmaraas@gnome.org>, remove a load of leaks and
2005-02-08  Sebastien Bacher  <seb128@debian.org>

	* gnome-theme-installer.c: (file_theme_type), (transfer_done_cb),
	(install_dialog_response), (gnome_theme_installer_run):
	patch by Kjartan Maraas <kmaraas@gnome.org>, remove a load of leaks
	and make sure newly installed themes show up in the relevant lists
	without having to close/open the dialog again (Closes: #166267).

2005-02-08  Sebastien Bacher  <seb128@debian.org>

	* gnome-keyboard-properties-xkb.c: (setup_xkb_tabs):
	* gnome-keyboard-properties-xkblt.c: (def_group_in_gconf_changed):
	patch by Kjartan Maraas <kmaraas@gnome.org>, some code cleanups
	(Closes: #166267).

2005-02-08  Sebastien Bacher  <seb128@debian.org>

	* eggcellrendererkeys.c: (egg_cell_renderer_keys_start_editing):
	patch by Kjartan Maraas <kmaraas@gnome.org>, some code cleanups
        (Closes: #166267).

2005-02-08  Sebastien Bacher  <seb128@debian.org>

	* main.c: (wrap_in_label):
        patch by Kjartan Maraas <kmaraas@gnome.org>, some code cleanups
        (Closes: #166267).

2005-02-08  Sebastien Bacher  <seb128@debian.org>

	* gnome-theme-info.c: (update_common_theme_dir_index):
	* theme-thumbnail.c: (create_image):
	patch by Kjartan Maraas <kmaraas@gnome.org>, move to use GtkIconTheme
	and remove a load of leaks in the theme manager code (Closes: #166267).
2005-02-08 22:42:10 +00:00
Kjartan Maraas
ae7e92ad37 Revert the previous two commits. It looks like the fix in gnome-vfs to
2005-02-03  Kjartan Maraas  <kmaraas@gnome.org>

	* gnome-theme-info.c: (update_theme_index),
	(top_theme_dir_changed), (top_icon_theme_dir_changed),
	(real_add_top_theme_dir_monitor): Revert the previous
	two commits. It looks like the fix in gnome-vfs to make
	sure gnome_vfs_uri_extract_short_name() doesn't return
	NULL was what we really needed. Please retest to see if
	you can still reproduce the crashes in the theme-manager
	after this change and with the latest gnome-vfs from CVS.
2005-02-03 00:07:37 +00:00
Kjartan Maraas
8740debbb8 More bandaids for test purposes.
2005-02-02  Kjartan Maraas  <kmaraas@gnome.org>

	* gnome-theme-info.c: (update_theme_index),
	(real_add_top_theme_dir_monitor): More bandaids for test
	purposes.
2005-02-02 08:42:45 +00:00
Kjartan Maraas
454c13566a Try to fix bug #149236 by not freeing stuff already being free'd by the
2005-01-27  Kjartan Maraas  <kmaraas@gnome.org>

	* gnome-theme-info.c: (top_theme_dir_changed),
	(top_icon_theme_dir_changed), (real_add_top_theme_dir_monitor):
	Try to fix bug #149236 by not freeing stuff already being free'd
	by the hash destroy_func. It will leak a bit more, but that can
	be fixed later. Please test this and report success in the report
	mentioned above.
2005-01-27 03:14:14 +00:00
Paolo Borelli
3c53e1ee00 fix leak, patch by Kjartan Maaras. (#153595).
2004-10-17  Paolo Borelli  <pborelli@katamail.com>

	* capplets/common/activate-settings-daemon.c: fix leak, patch by
	Kjartan Maaras. (#153595).

	approved by jrb.
2004-10-17 17:32:05 +00:00
Ross Burton
99955d6bab Handle theme directories which are symlinks, fixing #111990 2003-05-01 14:31:33 +00:00
Kjartan Maraas
60980d0fe5 Merge from stable branch 2003-04-29 17:52:40 +00:00
Andrew Sobala
44966951d1 s/read_meta_theme/gnome_theme_read_meta_theme/; enable the reading of
2003-03-27  Andrew Sobala  <aes@gnome.org>

        * gnome-theme-info.c: (gnome_theme_read_meta_theme),
        (update_common_theme_dir_index):
        s/read_meta_theme/gnome_theme_read_meta_theme/; enable the reading of
        themes that just use [X-GNOME-Metatheme] without pretending to be a
        .desktop file
        * gnome-theme-info.h: exposed gnome_theme_read_meta_theme
2003-03-27 20:51:43 +00:00
Jonathan Blandford
bd160edddf Patch from Kjartan Maraas to fix a bunch of leaks.
Thu Feb 13 18:51:37 2003  Jonathan Blandford  <jrb@redhat.com>

        * capplets/common/gconf-property-editor.c: (gconf_peditor_new):
        * capplets/common/gnome-theme-info.c: (read_meta_theme),
        (update_theme_index), (update_common_theme_dir_index),
        (top_theme_dir_changed), (top_icon_theme_dir_changed),
        (add_common_theme_dir_monitor), (real_add_top_theme_dir_monitor):
        * capplets/default-applications/gnome-default-applications-properti
        es.c: (initialize_default_applications), (read_editor),
        (read_terminal):
        * capplets/file-types/mime-edit-dialog.c: (fill_dialog):
        * capplets/file-types/mime-type-info.c: (load_all_mime_types):
        * capplets/file-types/mime-types-model.c:
        (mime_types_model_get_value):
        * capplets/font/main.c: (font_render_get_gconf), (enum_group_load):
        * capplets/mouse/gnome-mouse-properties.c: (read_cursor_font),
        (cursor_changed):
        * capplets/theme-switcher/gnome-theme-details.c:
        (window_theme_selection_changed):
        * capplets/theme-switcher/gnome-theme-manager.c:
        (meta_theme_selection_changed):
        * capplets/theme-switcher/theme-thumbnail.c:
        (generate_theme_thumbnail):
        * libsounds/sound-properties.c: (sound_properties_add_directory),
        (sound_properties_add_file):
        * libsounds/sound-view.c: (compare_func):
        * libwindow-settings/gnome-window-manager.c:
        (gnome_window_manager_new): Patch from Kjartan Maraas to fix a
        bunch of leaks.
2003-02-14 00:02:50 +00:00
Kjartan Maraas
6f99d98345 Fix a glaring bug that caused the theme descriptions etc not to be
2003-02-03  Kjartan Maraas  <kmaraas@gnome.org>

	* gnome-theme-info.c (read_meta_theme): Fix a glaring bug
	that caused the theme descriptions etc not to be localised.
2003-02-03 21:13:14 +00:00
Jonathan Blandford
7d8899ba2e call correctly in all the right places.
Wed Jan 15 20:16:21 2003  Jonathan Blandford  <jrb@redhat.com>

	* gnome-theme-info.c (remove_data_from_hash_by_name): call
	correctly in all the right places.

	* gnome-theme-manager.c (gnome_theme_manager_tree_sort_func):
	remove this unneeded sort func.

	* gnome-theme-details.c (setup_tree_view): use the right sort
	function.
2003-01-16 01:16:36 +00:00
Jonathan Blandford
f28c52f3f3 capplets/common/gnome-theme-info.[ch]: Total rewrite. Fam now works correctly.
capplets/keybindings/*: use new theme code.
capplets/theme-switcher/*: use new theme code.
2003-01-13 20:21:28 +00:00
Jonathan Blandford
8eccb7d29b correctly merge disk updates and the current setup.
Thu Jan  2 08:57:54 2003  Jonathan Blandford  <jrb@gnome.org>

	* gnome-theme-manager.c: correctly merge disk updates and the
	current setup.

	* TODO: Add a TODO
2003-01-02 13:58:58 +00:00
Seth Nickell
4f04912bb6 Update icon theme directory code so it looks in PREFIX/share/icons rather
2002-12-28  Seth Nickell  <snickell@stanford.edu>

	* Makefile.am:
	* gnome-theme-info.c: (gnome_theme_info_init):

	Update icon theme directory code so it looks in
	PREFIX/share/icons rather than PREFIX/share/theme,
	as per freedesktop icon spec.
2002-12-28 23:54:37 +00:00
Jonathan Blandford
628bc1ce2c New file. Really saves now. Doesn't notice when a new metatheme is added,
Fri Dec  6 16:54:14 2002  Jonathan Blandford  <jrb@redhat.com>

	* gnome-theme-save-data.c: New file.  Really saves now.  Doesn't
	notice when a new metatheme is added, though.

Fri Dec  6 16:13:54 2002  Jonathan Blandford  <jrb@redhat.com>

	* gnome-theme-info.c (top_theme_dir_changed_callback): I know C.
	Really, I do.
2002-12-06 21:56:37 +00:00
Jonathan Blandford
9d0a2117d8 sync 2002-11-27 00:03:37 +00:00
Jonathan Blandford
ea7ff3f5c3 forgot this 2002-11-14 22:26:09 +00:00
Jonathan Blandford
341038ca77 Change the file format a bunch.
Tue Nov  5 15:48:33 2002  Jonathan Blandford  <jrb@gnome.org>

	* gnome-theme-info.c: Change the file format a bunch.

Tue Nov  5 15:48:20 2002  Jonathan Blandford  <jrb@gnome.org>

	* gnome-theme-manager.c (read_themes): make more robust.
2002-11-05 20:49:44 +00:00
Jonathan Blandford
9405d72d2f Rewrote to handle metathemes and icon themes. The WM stuff was previously
Fri Nov  1 11:01:16 2002  Jonathan Blandford  <jrb@gnome.org>

	* gnome-theme-manager.c: Rewrote to handle metathemes and icon
	themes.  The WM stuff was previously broken, too.

	* gnome-theme-installer.[ch]: Extract this code out to it's own
	file.

Fri Nov  1 11:03:34 2002  Jonathan Blandford  <jrb@gnome.org>

	* gnome-theme-info.[ch]: Moved theme-common, and gave more
	features.
2002-11-01 16:09:43 +00:00