Skip to content

Instantly share code, notes, and snippets.

@sander
Created April 27, 2009 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sander/102441 to your computer and use it in GitHub Desktop.
Save sander/102441 to your computer and use it in GitHub Desktop.
THE CODE:
this.window = new Breadcrumb("Window", this);
this.window.connect("activate", function(o) {
let global = Shell.Global.get();
let window = global.screen.get_display().get_focus_window();
if (window) {
let compositor = global.screen.get_display().get_compositor();
compositor.maximize_window(window, window.get_rect());
}
});
this.actor.append(this.window.button, Big.BoxPackFlags.EXPAND);
THE ERROR:
JS ERROR: !!! Exception in callback for signal: activate
JS ERROR: !!! message = 'Unhandled GType void releasing SYMBOL GArgument'
JS ERROR: !!! lineNumber = '0'
JS ERROR: !!! fileName = 'gjs_throw'
JS ERROR: !!! stack = 'Error("Unhandled GType void releasing SYMBOL GArgument")@:0
("Unhandled GType void releasing SYMBOL GArgument")@gjs_throw:0
@:0
([object Object])@/home/sander/gnome-shell/source/gnome-shell/js/ui/breadcrumbs.js:85
_emit("activate")@/home/sander/gnome-shell/install/share/gjs-1.0/signals.js:124
([object Object])@/home/sander/gnome-shell/source/gnome-shell/js/ui/breadcrumbs.js:122
()@/home/sander/gnome-shell/source/gnome-shell/js/ui/breadcrumbs.js:245
([object _private_Big_Box],[object _private_Clutter_Event])@/home/sander/gnome-shell/source/gnome-shell/js/ui/breadcrumbs.js:207
THE INTROSPECTION DATA:
<method name="maximize_window"
c:identifier="meta_compositor_maximize_window">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="window" transfer-ownership="none">
<type name="Window" c:type="MetaWindow*"/>
</parameter>
<parameter name="window_rect" transfer-ownership="none">
<type name="Rectangle" c:type="MetaRectangle*"/>
</parameter>
</parameters>
</method>
[...]
<record name="Rectangle" c:type="MetaRectangle">
<field name="x" writable="1">
<type name="int" c:type="int"/>
</field>
<field name="y" writable="1">
<type name="int" c:type="int"/>
</field>
<field name="width" writable="1">
<type name="int" c:type="int"/>
</field>
<field name="height" writable="1">
<type name="int" c:type="int"/>
</field>
<method name="to_string" c:identifier="meta_rectangle_to_string">
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment