don't try to use uninitialized GdkPixbuf

2007-06-25  Jens Granseuer  <jensgr@gmx.net>

	* appearance-style.c: (prepare_list): don't try to use uninitialized
	GdkPixbuf

svn path=/trunk/; revision=7778
This commit is contained in:
Jens Granseuer 2007-06-25 16:00:24 +00:00 committed by Jens Granseuer
parent 1d865245f8
commit 359f1c2266
2 changed files with 6 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2007-06-25 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (prepare_list): don't try to use uninitialized
GdkPixbuf
2007-06-25 Denis Washington <denisw@svn.gnome.org>
* appearance-themes.c:

View file

@ -647,7 +647,6 @@ prepare_list (AppearanceData *data, GtkWidget *list, ThemeType type, GCallback c
{
const gchar *name = NULL;
const gchar *label = NULL;
GdkPixbuf *thumbnail;
GtkTreeIter i;
if (type == THEME_TYPE_GTK || type == THEME_TYPE_WINDOW) {
@ -682,17 +681,13 @@ prepare_list (AppearanceData *data, GtkWidget *list, ThemeType type, GCallback c
data,
NULL);
break;
default:
thumbnail = NULL;
break;
}
gtk_list_store_insert_with_values (store, &i, 0,
COL_THUMBNAIL, thumbnail,
COL_LABEL, label ? label : name,
COL_NAME, name, -1);
if (thumbnail)
g_object_unref (thumbnail);
}
g_list_free (themes);