Merge lp:~muktupavels/compiz/force-icon-size into lp:compiz/0.9.13

Proposed by Alberts Muktupāvels
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 4161
Merged at revision: 4163
Proposed branch: lp:~muktupavels/compiz/force-icon-size
Merge into: lp:compiz/0.9.13
Diff against target: 39 lines (+9/-9)
1 file modified
compizconfig/ccsm/ccm/Utils.py (+9/-9)
To merge this branch: bzr merge lp:~muktupavels/compiz/force-icon-size
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Dmitry Shachnev Approve
Review via email: mp+349661@code.launchpad.net

Commit message

ccsm: force icon size.

Description of the change

Force icon size. Over-sized icons does not look good.

To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) :
review: Approve
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'compizconfig/ccsm/ccm/Utils.py'
2--- compizconfig/ccsm/ccm/Utils.py 2018-07-12 14:25:13 +0000
3+++ compizconfig/ccsm/ccm/Utils.py 2018-07-16 23:06:54 +0000
4@@ -78,26 +78,26 @@
5 try:
6 if type in (ImagePlugin, ImageCategory, ImageThemed):
7 pixbuf = None
8-
9+
10 if type == ImagePlugin:
11 name = "plugin-" + name
12 try:
13- pixbuf = IconTheme.load_icon (name, size, 0)
14+ pixbuf = IconTheme.load_icon (name, size, Gtk.IconLookupFlags.FORCE_SIZE)
15 except GObject.GError:
16- pixbuf = IconTheme.load_icon ("plugin-unknown", size, 0)
17-
18+ pixbuf = IconTheme.load_icon ("plugin-unknown", size, Gtk.IconLookupFlags.FORCE_SIZE)
19+
20 elif type == ImageCategory:
21 name = "plugins-" + name
22 try:
23- pixbuf = IconTheme.load_icon (name, size, 0)
24+ pixbuf = IconTheme.load_icon (name, size, Gtk.IconLookupFlags.FORCE_SIZE)
25 except GObject.GError:
26- pixbuf = IconTheme.load_icon ("plugins-unknown", size, 0)
27-
28+ pixbuf = IconTheme.load_icon ("plugins-unknown", size, Gtk.IconLookupFlags.FORCE_SIZE)
29+
30 else:
31- pixbuf = IconTheme.load_icon (name, size, 0)
32+ pixbuf = IconTheme.load_icon (name, size, Gtk.IconLookupFlags.FORCE_SIZE)
33
34 self.set_from_pixbuf (pixbuf)
35-
36+
37 elif type == ImageStock:
38 self.set_from_stock (name, size)
39 except GObject.GError as e:

Subscribers

People subscribed via source and target branches