Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco 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)
commit5cee6aa01db4162e9a5aba7a4a3729d23794de06 (patch)
tree1ebde210ee85cc83f2c08513d42b7849b9a520d1 /shell
parent07dd398e2245909c0111edfe845dd5c66559d47f (diff)
Hook the log viewer to F12
Diffstat (limited to 'shell')
-rw-r--r--shell/data/kbdconfig2
-rwxr-xr-xshell/sugar-log-viewer7
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()