diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-16 13:29:32 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-16 13:29:32 (GMT) |
commit | 5cee6aa01db4162e9a5aba7a4a3729d23794de06 (patch) | |
tree | 1ebde210ee85cc83f2c08513d42b7849b9a520d1 /shell | |
parent | 07dd398e2245909c0111edfe845dd5c66559d47f (diff) |
Hook the log viewer to F12
Diffstat (limited to 'shell')
-rw-r--r-- | shell/data/kbdconfig | 2 | ||||
-rwxr-xr-x | shell/sugar-log-viewer | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/shell/data/kbdconfig b/shell/data/kbdconfig index 415c69f..f834087 100644 --- a/shell/data/kbdconfig +++ b/shell/data/kbdconfig @@ -5,3 +5,5 @@ <Alt>n=next <Alt>p=prev <Alt>c=close + +F12=!sugar-log-viewer diff --git a/shell/sugar-log-viewer b/shell/sugar-log-viewer index 0a5eb55..4408b20 100755 --- a/shell/sugar-log-viewer +++ b/shell/sugar-log-viewer @@ -46,6 +46,12 @@ class LogBuffer(gtk.TextBuffer): return True window = gtk.Window() +window.set_default_size(gtk.gdk.screen_width() * 3 / 4, + gtk.gdk.screen_height() * 3 / 4) + +window.realize() +window.window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG) + scrolled = gtk.ScrolledWindow() scrolled.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) @@ -58,6 +64,7 @@ textview.show() window.add(scrolled) scrolled.show() + window.show() gtk.main() |