diff options
author | zhuyaliang <[email protected]> | 2023-03-23 16:43:50 +0800 |
---|---|---|
committer | Luke from DC <[email protected]> | 2023-04-05 09:54:17 +0000 |
commit | 1b316395e529c3af334953eb0bd8908aebc29bab (patch) | |
tree | a03387f9c7b1ba5321e279b9f0dd645d4de70ba8 | |
parent | e424eb21db35129aee934aa528bddff0869b7a38 (diff) | |
download | engrampa-1b316395e529c3af334953eb0bd8908aebc29bab.tar.bz2 engrampa-1b316395e529c3af334953eb0bd8908aebc29bab.tar.xz |
Fix icon missing when compressing files with the right mouse button
-rw-r--r-- | src/dlg-batch-add.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dlg-batch-add.c b/src/dlg-batch-add.c index 7d78e65..364b100 100644 --- a/src/dlg-batch-add.c +++ b/src/dlg-batch-add.c @@ -394,13 +394,18 @@ archive_type_combo_box_changed_cb (GtkComboBox *combo_box, const char *mime_type; int idx = gtk_combo_box_get_active (combo_box); char *icon_name; + char *content_type; mime_type = mime_type_desc[data->supported_types[idx]].mime_type; - if ((icon_name = g_content_type_get_generic_icon_name (mime_type)) != NULL) { + content_type = g_content_type_from_mime_type (mime_type); + if ((icon_name = g_content_type_get_generic_icon_name (content_type)) != NULL) { gtk_image_set_from_icon_name (GTK_IMAGE (GET_WIDGET ("archive_icon_image")), icon_name, GTK_ICON_SIZE_DIALOG); + g_free (icon_name); } + + g_free (content_type); update_sensitivity_for_mime_type (data, mime_type); } |