summaryrefslogtreecommitdiff
path: root/src/nautilus-files-view.c
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2021-12-22 20:12:16 +0000
committerAntónio Fernandes <antoniof@gnome.org>2021-12-31 11:01:40 +0000
commit88b3e193476660a8dcbf760acf0cbd86d900fe0a (patch)
treed811f735ece7bc09d75e8e9b3338b8639473e0e4 /src/nautilus-files-view.c
parentd68203161188a73776f87fe61b87f4f76c487e71 (diff)
downloadnautilus-88b3e193476660a8dcbf760acf0cbd86d900fe0a.tar.gz
icon-info: Remove unused or single-use API
The single-use functions can be dropped because: - in properties-window, we can just make and pass a GIcon. - in files-view, we can just use the NautilusFile method. There is a potential change in behavior in that files-view now may get the default icon. That's not a problem at all.
Diffstat (limited to 'src/nautilus-files-view.c')
-rw-r--r--src/nautilus-files-view.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index b464748c8..bcab2d8ec 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -4877,17 +4877,9 @@ static GdkPixbuf *
get_menu_icon_for_file (NautilusFile *file,
GtkWidget *widget)
{
- NautilusIconInfo *info;
- GdkPixbuf *pixbuf;
- int scale;
+ int scale = gtk_widget_get_scale_factor (widget);
- scale = gtk_widget_get_scale_factor (widget);
-
- info = nautilus_file_get_icon (file, 16, scale, 0);
- pixbuf = nautilus_icon_info_get_pixbuf_nodefault_at_size (info, NAUTILUS_LIST_ICON_SIZE_SMALL);
- g_object_unref (info);
-
- return pixbuf;
+ return nautilus_file_get_icon_pixbuf (file, 16, scale, 0);
}
static GList *