[sushi] audio: fix OSD toolbar positioning



commit 2557bd87ade4995f4060a48421d72aae87bda458
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Aug 10 15:37:08 2012 +0200

    audio: fix OSD toolbar positioning
    
    It wasn't properly expanding anymore in the allocated width.

 src/js/viewers/audio.js |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/js/viewers/audio.js b/src/js/viewers/audio.js
index c73a0f0..a6ccca4 100644
--- a/src/js/viewers/audio.js
+++ b/src/js/viewers/audio.js
@@ -260,11 +260,8 @@ AudioRenderer.prototype = {
         this._mainToolbar.show();
 
         this._toolbarActor = new GtkClutter.Actor({ contents: this._mainToolbar,
-                                                    opacity: 0});
-        this._toolbarActor.add_constraint(
-            new Clutter.BindConstraint({ source: this._actor,
-                                         coordinate: Clutter.BindCoordinate.WIDTH,
-                                         offset: -50 }));
+                                                    opacity: 0,
+                                                    x_expand: true });
 
         this._toolbarPlay = new Gtk.ToolButton({ icon_name: 'media-playback-pause-symbolic' });
         this._toolbarPlay.show();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]