diff options
author | monsta <[email protected]> | 2015-12-07 12:20:29 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-12-07 12:20:29 +0300 |
commit | 3dc12cc51871cd495ac485a1363f29bb9c21cf4e (patch) | |
tree | 0e3de12d51285d242f5c689a3ef36c8cf6171c17 /capplets/about-me/mate-about-me.c | |
parent | 81350ad241877cd3e9f9dae52cdf98d27d56ca3c (diff) | |
download | mate-control-center-3dc12cc51871cd495ac485a1363f29bb9c21cf4e.tar.bz2 mate-control-center-3dc12cc51871cd495ac485a1363f29bb9c21cf4e.tar.xz |
about-me: avoid some assertions
Diffstat (limited to 'capplets/about-me/mate-about-me.c')
-rw-r--r-- | capplets/about-me/mate-about-me.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/capplets/about-me/mate-about-me.c b/capplets/about-me/mate-about-me.c index 8983df34..03d6331a 100644 --- a/capplets/about-me/mate-about-me.c +++ b/capplets/about-me/mate-about-me.c @@ -361,13 +361,11 @@ about_me_icon_theme_changed (GtkWindow *window, GtkIconInfo *icon; icon = gtk_icon_theme_lookup_icon (me->theme, "stock_person", 80, 0); - if (icon == NULL) { - g_debug ("Icon not found"); + if (icon != NULL) { + g_free (me->person); + me->person = g_strdup (gtk_icon_info_get_filename (icon)); + gtk_icon_info_free (icon); } - g_free (me->person); - me->person = g_strdup (gtk_icon_info_get_filename (icon)); - - gtk_icon_info_free (icon); if (me->have_image) e_image_chooser_set_from_file (E_IMAGE_CHOOSER (me->image_chooser), me->person); |