simplify some more code, and fix a crash when the cursor theme in GConf is

2007-10-29  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (gtk_theme_changed), (window_theme_changed),
	(icon_theme_changed), (update_cursor_size_scale),
	(cursor_theme_changed):
	* appearance-themes.c: (theme_selection_changed_cb):
	* theme-util.c: (theme_is_writable):
	* theme-util.h: simplify some more code, and fix a crash when the
	cursor theme in GConf is unset that I introduced in r8212

svn path=/trunk/; revision=8228
This commit is contained in:
Jens Granseuer 2007-10-28 23:01:09 +00:00 committed by Jens Granseuer
parent 194de56db9
commit 286cdd1fcd
5 changed files with 18 additions and 9 deletions

View file

@ -26,12 +26,11 @@
#include <string.h>
gboolean
theme_is_writable (const gpointer theme, ThemeType type)
theme_is_writable (const gpointer theme)
{
GnomeThemeCommonInfo *info = theme;
GnomeVFSResult vfs_result;
GnomeVFSFileInfo *vfs_info;
const gchar *theme_path;
gboolean writable;
if (info == NULL || info->path == NULL)