diff options
author | monsta <[email protected]> | 2017-12-24 16:09:20 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-12-24 16:09:20 +0300 |
commit | 06ea37eef0faa41cdcfbb1ee278ff26778ce7fd7 (patch) | |
tree | 3807ce004a7257e2c466983a75df5250de07ddb0 | |
parent | f0e8a4529f08c43a6d7d6fb7501ac7d83342ae2e (diff) | |
download | mate-control-center-06ea37eef0faa41cdcfbb1ee278ff26778ce7fd7.tar.bz2 mate-control-center-06ea37eef0faa41cdcfbb1ee278ff26778ce7fd7.tar.xz |
libslab: restore missing variable initialization
it got lost after https://github.com/mate-desktop/mate-control-center/commit/9169a1d5d4d5ac5d8a14bc021be09a0a80eb9996
-rw-r--r-- | libslab/mate-utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libslab/mate-utils.c b/libslab/mate-utils.c index 90dd9320..8dafe11a 100644 --- a/libslab/mate-utils.c +++ b/libslab/mate-utils.c @@ -56,7 +56,8 @@ load_image_by_id (GtkImage * image, GtkIconSize size, const gchar * image_id) icon_theme = gtk_icon_theme_get_default (); pixbuf = gtk_icon_theme_load_icon (icon_theme, id, width, 0, NULL); - if (pixbuf != NULL) { + icon_exists = (pixbuf != NULL); + if (icon_exists) { gtk_image_set_from_pixbuf (image, pixbuf); g_object_unref (pixbuf); } |