summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--capplets/common/theme-thumbnail.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c
index 537e25c8..4376ef0f 100644
--- a/capplets/common/theme-thumbnail.c
+++ b/capplets/common/theme-thumbnail.c
@@ -224,23 +224,16 @@ create_folder_icon (char *icon_theme_name)
#endif
}
- g_object_unref (icon_theme);
- g_free (example_icon_name);
-
- /* render the icon to the thumbnail */
if (folder_icon == NULL)
{
- GtkWidget *dummy;
- dummy = gtk_label_new ("");
-
- folder_icon = gtk_widget_render_icon (dummy,
- GTK_STOCK_MISSING_IMAGE,
- GTK_ICON_SIZE_DIALOG,
- NULL);
-
- gtk_widget_destroy (dummy);
+ folder_icon = gtk_icon_theme_load_icon (icon_theme,
+ "image-missing",
+ 48, 0, NULL);
}
+ g_object_unref (icon_theme);
+ g_free (example_icon_name);
+
return folder_icon;
}