[gnome-documents/wip/cosimoc/view-rework: 17/28] embed: use passed-in reference to toplevel window



commit bb76020b87151d96fc0b97ef786de11047c1a92b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Jul 31 22:13:56 2016 -0700

    embed: use passed-in reference to toplevel window

 src/embed.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 3443d5a..d4b7612 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -55,9 +55,8 @@ const Embed = new Lang.Class({
         this.parent({ orientation: Gtk.Orientation.VERTICAL,
                       visible: true });
 
-        let toplevel = Application.application.get_windows()[0];
         this._titlebar = new Gtk.Grid({ visible: true });
-        toplevel.set_titlebar(this._titlebar);
+        this._window.set_titlebar(this._titlebar);
 
         // create the toolbar for selected items, it's hidden by default
         this._selectionToolbar = new Selections.SelectionToolbar();


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