~ubuntu-branches/ubuntu/quantal/gnome-documents/quantal

« back to all changes in this revision

Viewing changes to src/mainWindow.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
                                                  window_position: Gtk.WindowPosition.CENTER,
50
50
                                                  hide_titlebar_when_maximized: true,
51
51
                                                  title: _("Documents") });
52
 
        this._clutterEmbed = new GtkClutter.Embed();
53
 
        this.window.add(this._clutterEmbed);
54
 
        this._clutterEmbed.show();
55
 
 
56
 
        let stage = this._clutterEmbed.get_stage();
57
52
 
58
53
        // apply the last saved window size and position
59
54
        let size = Global.settings.get_value('window-size');
90
85
                                      Lang.bind(this, this._onFullscreenChanged));
91
86
 
92
87
        this._embed = new Embed.Embed();
93
 
        this._embed.actor.add_constraint(
94
 
            new Clutter.BindConstraint({ coordinate: Clutter.BindCoordinate.SIZE,
95
 
                                         source: stage }));
96
 
        stage.add_actor(this._embed.actor);
 
88
        this.window.add(this._embed.widget);
97
89
    },
98
90
 
99
91
    _saveWindowGeometry: function() {