summaryrefslogtreecommitdiff
path: root/capplets/default-applications
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/default-applications')
-rw-r--r--capplets/default-applications/mate-da-capplet.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/capplets/default-applications/mate-da-capplet.c b/capplets/default-applications/mate-da-capplet.c
index c42aca02..4eb318a3 100644
--- a/capplets/default-applications/mate-da-capplet.c
+++ b/capplets/default-applications/mate-da-capplet.c
@@ -501,12 +501,16 @@ fill_combo_box(GtkIconTheme* theme, GtkComboBox* combo_box, GList* app_list, gch
/* Icon */
GIcon* icon = g_app_info_get_icon(item);
- gchar* icon_name = g_icon_to_string(icon);
-
- if (icon_name == NULL)
- {
- /* Default icon */
- icon_name = g_strdup("binary");
+ gchar* icon_name;
+
+ if (icon != NULL) {
+ icon_name = g_icon_to_string (icon);
+ if (icon_name == NULL) {
+ /* Default icon */
+ icon_name = g_strdup ("binary");
+ }
+ } else {
+ icon_name = g_strdup ("binary");
}
pixbuf = gtk_icon_theme_load_icon(theme, icon_name, 22, 0, NULL);