Skip to content

Instantly share code, notes, and snippets.

View sander's full-sized avatar

Sander Dijkhuis sander

View GitHub Profile
$ PATH=bin:$PATH jhbuild shell
$ cd Broncode/gnome-shell/gnome-shell/src
$ DISPLAY=:0 ./gnome-shell
Traceback (most recent call last):
File "./gnome-shell", line 226, in <module>
kill_gnome_panel(gnome_panel_pid)
File "./gnome-shell", line 49, in kill_gnome_panel
"-p", pid], stdout=devnull, stderr=devnull)
File "/usr/lib/python2.5/subprocess.py", line 444, in call
$ ./gnome-shell -g
xauth: creating new authority file /tmp/gnome-shell.a1U7hM/database
[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing f
rom list!
[config/dbus] couldn't take over org.x.config: org.freedesktop.DBus.Error.Access
Denied (Connection ":1.46" is not allowed to own the service "org.x.config.displ
ay99" due to security policies in the configuration file)
unrecognised device identifier!
[ 0.453570] (EE) config/hal: NewInputDeviceRequest failed (2)
unrecognised device identifier!
Shell-1.0.gir:
<function name="get_vertical_gradient"
c:identifier="shell_global_get_vertical_gradient"
doc="Creates a vertical gradient actor.">
<return-value transfer-ownership="full">
<type name="Clutter.Actor" c:type="ClutterActor*"/>
</return-value>
<parameters>
<parameter name="top" transfer-ownership="none">
<type name="Clutter.Color" c:type="ClutterColor*"/>
/**
* shell_global_get_vertical_gradient:
*
* @top: the color at the top
* @bottom: the color at the bottom
*
* Creates a vertical gradient actor.
*
* Return value: a #ClutterCairoTexture actor with the gradient
*/
(gdb) bt
#0 0xb68ce560 in object_instance_new_resolve (context=0xa3229a0,
obj=0xa3c0a60, id=171127372, flags=0, objp=0xbf9824d8) at gi/object.c:392
#1 0xb6877351 in ?? () from /usr/lib/xulrunner-1.9.0.7/libmozjs.so
#2 0xb6877c33 in ?? () from /usr/lib/xulrunner-1.9.0.7/libmozjs.so
#3 0xb6877df9 in ?? () from /usr/lib/xulrunner-1.9.0.7/libmozjs.so
#4 0xb6876149 in ?? () from /usr/lib/xulrunner-1.9.0.7/libmozjs.so
#5 0xb68766ea in ?? () from /usr/lib/xulrunner-1.9.0.7/libmozjs.so
#6 0xb68a1fce in js_ValueToString ()
from /usr/lib/xulrunner-1.9.0.7/libmozjs.so
Panel.prototype = {
_init : function() {
let me = this;
let global = Shell.Global.get();
// Put the background under the panel within a group.
let group = new Clutter.Group();
// Create a box with the background and the shadow. The background
// is drawn using two gradient boxes. We let the backBox divide the
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());
}
});
From 363a209f8dfeab2f1290499d4d1071ec632c6d29 Mon Sep 17 00:00:00 2001
From: Sander Dijkhuis <sander.dijkhuis@gmail.com>
Date: Mon, 27 Apr 2009 14:21:39 +0200
Subject: [PATCH] Export window maximize and unmaximize methods
---
src/core/window-private.h | 4 ----
src/include/window.h | 4 ++++
2 files changed, 4 insertions(+), 4 deletions(-)
sander@lampje:~/gnome-shell/source/gnome-shell$ src/gnome-shell -r
Windowmanager waarschuwing:Log level 16: invalid (NULL) pointer instance
Windowmanager waarschuwing:Log level 8: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Windowmanager waarschuwing:Log level 16: invalid (NULL) pointer instance
Windowmanager waarschuwing:Log level 8: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Windowmanager waarschuwing:Log level 16: invalid (NULL) pointer instance
Windowmanager waarschuwing:Log level 8: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
JS ERROR: !!! WARNING: 'assignment to undeclared variable iconPath'
JS ERROR: !!! WARNING: file '/home/sander/gnome-shell/source/gnome-shell/js/ui/genericDisplay.js' line 89 exception 0 number 156
JS ERROR: !!! Exception was: Error: Argument 'text' (type utf8) may not be null
sander@lampje:~/gnome-shell/source/gnome-shell$ src/gnome-shell -r
Windowmanager waarschuwing:Log level 16: invalid (NULL) pointer instance
Windowmanager waarschuwing:Log level 8: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Windowmanager waarschuwing:Log level 16: invalid (NULL) pointer instance
Windowmanager waarschuwing:Log level 8: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Windowmanager waarschuwing:Log level 16: invalid (NULL) pointer instance
Windowmanager waarschuwing:Log level 8: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
JS ERROR: !!! WARNING: 'assignment to undeclared variable iconPath'
JS ERROR: !!! WARNING: file '/home/sander/gnome-shell/source/gnome-shell/js/ui/genericDisplay.js' line 89 exception 0 number 156
JS ERROR: !!! Exception was: Error: Argument 'text' (type utf8) may not be null