diff options
author | monsta <[email protected]> | 2016-01-27 18:07:08 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-27 18:07:08 +0300 |
commit | a216984f5db59375d906fbf1b4f9ca7b4b0b3cc3 (patch) | |
tree | 5344efcaa4abeb5079167a65aff0134078122ab1 /capplets/common/theme-thumbnail.c | |
parent | c90b9b5ab82229b0b615090331c0bd1f425c98b2 (diff) | |
download | mate-control-center-a216984f5db59375d906fbf1b4f9ca7b4b0b3cc3.tar.bz2 mate-control-center-a216984f5db59375d906fbf1b4f9ca7b4b0b3cc3.tar.xz |
common: use gtk_icon_theme_load_icon in both GTK+ builds
Diffstat (limited to 'capplets/common/theme-thumbnail.c')
-rw-r--r-- | capplets/common/theme-thumbnail.c | 19 |
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; } |