~ubuntu-branches/ubuntu/trusty/gnome-documents/trusty-proposed

« back to all changes in this revision

Viewing changes to src/embed.js

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-07-19 14:23:33 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120719142333-0gr0rqv0yu7vp8ny
Tags: 0.5.4-0ubuntu1
* New upstream release (LP: #1026423)
* debian/control:
  - Bump build-depends on libclutter-gtk-1.0-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        this._loaderCancellable = null;
50
50
        this._queryErrorId = 0;
51
51
 
 
52
        this.widget = new GtkClutter.Embed({ use_layout_size: true });
 
53
        this.widget.show();
 
54
 
52
55
        // the embed is a vertical ClutterBox
 
56
        let stage = this.widget.get_stage();
53
57
        this._overlayLayout = new Clutter.BinLayout();
54
58
        this.actor = new Clutter.Box({ layout_manager: this._overlayLayout });
 
59
        this.actor.add_constraint(
 
60
            new Clutter.BindConstraint({ coordinate: Clutter.BindCoordinate.SIZE,
 
61
                                         source: stage }));
 
62
        stage.add_actor(this.actor);
55
63
 
56
64
        this._contentsLayout = new Clutter.BoxLayout({ vertical: true });
57
65
        this._contentsActor = new Clutter.Box({ layout_manager: this._contentsLayout });