From 19b3cf28f44c3796be3013c08b0c23233d355c80 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 3 Jun 2024 02:27:32 +0200 Subject: [PATCH] volumes: obtain the correct icon size from the helper --- src/plugins/volumes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/volumes.c b/src/plugins/volumes.c index ea31515..d6fae99 100644 --- a/src/plugins/volumes.c +++ b/src/plugins/volumes.c @@ -306,8 +306,9 @@ static Volumes * _volumes_init(BrowserPluginHelper * helper) gtk_container_add(GTK_CONTAINER(volumes->window), volumes->view); /* icons */ icontheme = gtk_icon_theme_get_default(); - volumes->width = 24; - volumes->height = 24; + volumes->width = helper->get_icon_size(helper->browser, + BROWSER_VIEW_DETAILS); + volumes->height = volumes->width; gtk_icon_size_lookup(GTK_ICON_SIZE_BUTTON, &volumes->width, &volumes->height); for(i = 0; i < DP_COUNT; i++)