Merge lp:~cimi/unity/fix-window-decorations-ambiance-maverick into lp:unity

Proposed by Andrea Cimitan
Status: Merged
Merged at revision: 518
Proposed branch: lp:~cimi/unity/fix-window-decorations-ambiance-maverick
Merge into: lp:unity
Diff against target: 30 lines (+1/-8)
1 file modified
unity-private/panel/panel-window-buttons.vala (+1/-8)
To merge this branch: bzr merge lp:~cimi/unity/fix-window-decorations-ambiance-maverick
Reviewer Review Type Date Requested Status
Neil J. Patel (community) Approve
Review via email: mp+35861@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Neil J. Patel (njpatel) wrote :

Looks good. Approved and merged!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'unity-private/panel/panel-window-buttons.vala'
--- unity-private/panel/panel-window-buttons.vala 2010-08-26 09:57:15 +0000
+++ unity-private/panel/panel-window-buttons.vala 2010-09-17 18:21:03 +0000
@@ -197,13 +197,11 @@
197 public class WindowButton : Ctk.Button197 public class WindowButton : Ctk.Button
198 {198 {
199 public static const string AMBIANCE = "/usr/share/themes/Ambiance/metacity-1";199 public static const string AMBIANCE = "/usr/share/themes/Ambiance/metacity-1";
200 public static const string AMBIANCE_BETA = "/usr/share/themes/Ambiance-maverick-beta/metacity-1";
201200
202 public string filename { get; construct; }201 public string filename { get; construct; }
203 public Clutter.Actor bg;202 public Clutter.Actor bg;
204203
205 private bool using_beta = false;204 private int icon_size = 19;
206 private int icon_size = 18;
207 private string directory = AMBIANCE;205 private string directory = AMBIANCE;
208206
209 public WindowButton (string filename)207 public WindowButton (string filename)
@@ -213,11 +211,6 @@
213211
214 construct212 construct
215 {213 {
216 if (using_beta = FileUtils.test (AMBIANCE_BETA, FileTest.EXISTS))
217 {
218 icon_size = 19;
219 directory = AMBIANCE_BETA;
220 }
221 try {214 try {
222 bg = new Ctk.Image.from_filename (icon_size,215 bg = new Ctk.Image.from_filename (icon_size,
223 directory +216 directory +