diff options
author | Corey Berla <corey@berla.me> | 2023-04-08 02:36:32 +0000 |
---|---|---|
committer | Corey Berla <corey@berla.me> | 2023-04-08 02:36:32 +0000 |
commit | fc979dd1339c95f2f0485768d02346f6f7b446df (patch) | |
tree | 9d95d756ae7eea1fe70c67dcb2882058a5c2a362 | |
parent | f7ccb4e731a337a757d234e5a738a549282ac6b5 (diff) | |
download | nautilus-revert-049bfe97.tar.gz |
Revert "grid-cell, name-cell: Don't add missing emblems"revert-049bfe97
This reverts commit 049bfe9792e2ec6d0c435a8baa89bb81d2769ed4
-rw-r--r-- | src/nautilus-grid-cell.c | 10 | ||||
-rw-r--r-- | src/nautilus-name-cell.c | 10 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/nautilus-grid-cell.c b/src/nautilus-grid-cell.c index 59b5a33c1..cef43664b 100644 --- a/src/nautilus-grid-cell.c +++ b/src/nautilus-grid-cell.c @@ -99,7 +99,6 @@ update_emblems (NautilusGridCell *self) g_autoptr (NautilusViewItem) item = NULL; NautilusFile *file; GtkWidget *child; - GtkIconTheme *theme; g_autolist (GIcon) emblems = NULL; item = nautilus_view_cell_get_item (NAUTILUS_VIEW_CELL (self)); @@ -112,18 +111,9 @@ update_emblems (NautilusGridCell *self) gtk_box_remove (GTK_BOX (self->emblems_box), child); } - theme = gtk_icon_theme_get_for_display (gdk_display_get_default ()); emblems = nautilus_file_get_emblem_icons (file); for (GList *l = emblems; l != NULL; l = l->next) { - if (!gtk_icon_theme_has_gicon (theme, l->data)) - { - g_autofree gchar *icon_string = g_icon_to_string (l->data); - g_warning ("Failed to add emblem. ā%sā not found in the icon theme", - icon_string); - continue; - } - gtk_box_append (GTK_BOX (self->emblems_box), gtk_image_new_from_gicon (l->data)); } diff --git a/src/nautilus-name-cell.c b/src/nautilus-name-cell.c index bdcfcc2c7..3316ebbb5 100644 --- a/src/nautilus-name-cell.c +++ b/src/nautilus-name-cell.c @@ -184,7 +184,6 @@ update_emblems (NautilusNameCell *self) g_autoptr (NautilusViewItem) item = NULL; NautilusFile *file; GtkWidget *child; - GtkIconTheme *theme; g_autolist (GIcon) emblems = NULL; item = nautilus_view_cell_get_item (NAUTILUS_VIEW_CELL (self)); @@ -197,18 +196,9 @@ update_emblems (NautilusNameCell *self) gtk_box_remove (GTK_BOX (self->emblems_box), child); } - theme = gtk_icon_theme_get_for_display (gdk_display_get_default ()); emblems = nautilus_file_get_emblem_icons (file); for (GList *l = emblems; l != NULL; l = l->next) { - if (!gtk_icon_theme_has_gicon (theme, l->data)) - { - g_autofree gchar *icon_string = g_icon_to_string (l->data); - g_warning ("Failed to add emblem. ā%sā not found in the icon theme", - icon_string); - continue; - } - gtk_box_append (GTK_BOX (self->emblems_box), gtk_image_new_from_gicon (l->data)); } |