Merge lp:~gue5t/midori/hidpiTabs into lp:~midori/midori/hidpiTabs

Proposed by gue5t gue5t
Status: Merged
Merged at revision: 7019
Proposed branch: lp:~gue5t/midori/hidpiTabs
Merge into: lp:~midori/midori/hidpiTabs
Diff against target: 12 lines (+1/-1)
1 file modified
midori/midori-notebook.vala (+1/-1)
To merge this branch: bzr merge lp:~gue5t/midori/hidpiTabs
Reviewer Review Type Date Requested Status
Midori Devs Pending
Review via email: mp+283729@code.launchpad.net

Commit message

Scale both larger- and smaller-than-expected tab icons

Description of the change

Change the logic to scale both larger and smaller icons to the size we want. This seems to fix all the pages I tried, including about:blank, https://duckduckgo.com/, http://gnome.org/, etc.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'midori/midori-notebook.vala'
2--- midori/midori-notebook.vala 2015-08-10 02:44:13 +0000
3+++ midori/midori-notebook.vala 2016-01-23 20:40:13 +0000
4@@ -111,7 +111,7 @@
5 // Apply scale factor which is only automatically applied on ThemedIcon
6 icon_width *= scale;
7 icon_height *= scale;
8- if (pixbuf.width > icon_width || pixbuf.height > icon_height)
9+ if (pixbuf.width != icon_width || pixbuf.height != icon_height)
10 return pixbuf.scale_simple (icon_width, icon_height, Gdk.InterpType.BILINEAR);
11 }
12 return icon;

Subscribers

People subscribed via source and target branches

to all changes: