volumes: obtain the correct icon size from the helper

This commit is contained in:
Pierre Pronchery 2024-06-03 02:27:32 +02:00
parent 50e8f8fad3
commit 19b3cf28f4

View File

@ -306,8 +306,9 @@ static Volumes * _volumes_init(BrowserPluginHelper * helper)
gtk_container_add(GTK_CONTAINER(volumes->window), volumes->view); gtk_container_add(GTK_CONTAINER(volumes->window), volumes->view);
/* icons */ /* icons */
icontheme = gtk_icon_theme_get_default(); icontheme = gtk_icon_theme_get_default();
volumes->width = 24; volumes->width = helper->get_icon_size(helper->browser,
volumes->height = 24; BROWSER_VIEW_DETAILS);
volumes->height = volumes->width;
gtk_icon_size_lookup(GTK_ICON_SIZE_BUTTON, &volumes->width, gtk_icon_size_lookup(GTK_ICON_SIZE_BUTTON, &volumes->width,
&volumes->height); &volumes->height);
for(i = 0; i < DP_COUNT; i++) for(i = 0; i < DP_COUNT; i++)