Re: Extension problem
- From: Carlos Soriano Sánchez <carlos soriano89 gmail com>
- To: Sam Bull <sam hacking sent com>
- Cc: gnome-shell-list <gnome-shell-list gnome org>
- Subject: Re: Extension problem
- Date: Wed, 27 Nov 2013 18:13:23 +0100
You need to add a layout manager for St.Widget, here's the patch:
--- /home/csoriano/Downloads/notesSam/view.js
+++ /home/csoriano/.local/share/gnome-shell/extensions/
notes sam sambull org/view.js
@@ -6,6 +6,7 @@
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const St =
imports.gi.St;
+const Clutter = imports.gi.Clutter;
const IconGrid = imports.ui.iconGrid;
const Main = imports.ui.main;
@@ -195,7 +196,7 @@
this._box.add_actor(this._title);
this._box.add_actor(this._entry);
- this.actor = new St.Widget();
+ this.actor = new St.Widget({ layout_manager: new Clutter.BinLayout() });
//this.actor.set_size(0,0)
this.actor.add_actor(this._box);
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]