[gnome-documents/wip/cosimoc/view-rework: 9/20] embed: use passed-in reference to toplevel window
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/cosimoc/view-rework: 9/20] embed: use passed-in reference to toplevel window
- Date: Mon, 8 Aug 2016 15:07:14 +0000 (UTC)
commit 5bfc9bfcf86f2d66efc1312f63d81fbc1fc4e859
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]