summaryrefslogtreecommitdiff
path: root/contrib/gitview
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-06-05 18:10:20 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-06-05 18:10:20 -0700
commitc49b5a3c891e34f6fea9f73847322e9447db91df (patch)
tree9ecc71e83c169bf60936afc01029dce3c50bb1e6 /contrib/gitview
parentFix earlier mismerges. (diff)
parentgit alias: try alias last. (diff)
downloadtgif-c49b5a3c891e34f6fea9f73847322e9447db91df.tar.xz
Merge branch 'js/alias' into next
* js/alias: git alias: try alias last. If you have a config containing something like this: builtin-push: don't pass --thin to HTTP transport pack-objects: improve path grouping heuristics. rev-list: fix process_tree() conversion. Fix typo in tutorial-2.txt Fix Documentation/everyday.txt: Junio's workflow Add example xinetd(8) configuration to Documentation/everyday.txt read-tree: fix eye-candy. gitview: Add some useful keybindings.
Diffstat (limited to 'contrib/gitview')
-rwxr-xr-xcontrib/gitview/gitview15
-rw-r--r--contrib/gitview/gitview.txt6
2 files changed, 21 insertions, 0 deletions
diff --git a/contrib/gitview/gitview b/contrib/gitview/gitview
index b836047cf3..3b6bdceeeb 100755
--- a/contrib/gitview/gitview
+++ b/contrib/gitview/gitview
@@ -450,6 +450,9 @@ class GitView:
self.accel_group = gtk.AccelGroup()
self.window.add_accel_group(self.accel_group)
self.accel_group.connect_group(0xffc2, 0, gtk.ACCEL_LOCKED, self.refresh);
+ self.accel_group.connect_group(0xffc1, 0, gtk.ACCEL_LOCKED, self.maximize);
+ self.accel_group.connect_group(0xffc8, 0, gtk.ACCEL_LOCKED, self.fullscreen);
+ self.accel_group.connect_group(0xffc9, 0, gtk.ACCEL_LOCKED, self.unfullscreen);
self.window.add(self.construct())
@@ -461,6 +464,18 @@ class GitView:
self.window.show()
return True
+ def maximize(self, widget, event=None, *arguments, **keywords):
+ self.window.maximize()
+ return True
+
+ def fullscreen(self, widget, event=None, *arguments, **keywords):
+ self.window.fullscreen()
+ return True
+
+ def unfullscreen(self, widget, event=None, *arguments, **keywords):
+ self.window.unfullscreen()
+ return True
+
def get_bt_sha1(self):
""" Update the bt_sha1 dictionary with the
respective sha1 details """
diff --git a/contrib/gitview/gitview.txt b/contrib/gitview/gitview.txt
index e3bc4f46c2..6924df286e 100644
--- a/contrib/gitview/gitview.txt
+++ b/contrib/gitview/gitview.txt
@@ -26,8 +26,14 @@ OPTIONS
<args>
All the valid option for git-rev-list(1)
Key Bindings:
+ F4:
+ To maximize the window
F5:
To reread references.
+ F11:
+ Full screen
+ F12:
+ Leave full screen
EXAMPLES
------