Skip to content

Commit

Permalink
Fix icon sizing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andreldm committed Aug 9, 2017
1 parent 9f7fe82 commit 8f51176
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thunar/thunar-icon-factory.c
Expand Up @@ -495,7 +495,7 @@ thunar_icon_factory_lookup_icon (ThunarIconFactory *factory,
else
{
/* check if the icon theme contains an icon of that name */
icon_info = gtk_icon_theme_lookup_icon (factory->icon_theme, name, size, 0);
icon_info = gtk_icon_theme_lookup_icon (factory->icon_theme, name, size, GTK_ICON_LOOKUP_FORCE_SIZE);
if (G_LIKELY (icon_info != NULL))
{
/* try to load the pixbuf from the icon info */
Expand Down
3 changes: 2 additions & 1 deletion thunar/thunar-shortcuts-icon-renderer.c
Expand Up @@ -237,7 +237,8 @@ thunar_shortcuts_icon_renderer_render (GtkCellRenderer *renderer,
gicon = thunar_device_get_icon (shortcuts_icon_renderer->device);

icon_info = gtk_icon_theme_lookup_by_gicon (icon_theme, gicon, cell_area->width,
GTK_ICON_LOOKUP_USE_BUILTIN);
GTK_ICON_LOOKUP_USE_BUILTIN |
GTK_ICON_LOOKUP_FORCE_SIZE);
g_object_unref (gicon);

/* try to load the icon */
Expand Down

0 comments on commit 8f51176

Please sign in to comment.