@matheusbsbs / matheus-bagliano / commits / 4e2e5647f2
Fork 0

gitview: Add some useful keybindings.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Aneesh Kumar K.V committed Jun 4, 2006 at 23:37 UTC 4e2e5647f23e2babcb188fd05eececbb261e2f17
2 files changed +21
contrib/gitview/gitview
+15
@@ -450,6 +450,9 @@ class GitView:
450 self.accel_group = gtk.AccelGroup()
451 self.window.add_accel_group(self.accel_group)
452 self.accel_group.connect_group(0xffc2, 0, gtk.ACCEL_LOCKED, self.refresh);
453 + self.accel_group.connect_group(0xffc1, 0, gtk.ACCEL_LOCKED, self.maximize);
454 + self.accel_group.connect_group(0xffc8, 0, gtk.ACCEL_LOCKED, self.fullscreen);
455 + self.accel_group.connect_group(0xffc9, 0, gtk.ACCEL_LOCKED, self.unfullscreen);
456
457 self.window.add(self.construct())
458
@@ -461,6 +464,18 @@ class GitView:
464 self.window.show()
465 return True
466
467 + def maximize(self, widget, event=None, *arguments, **keywords):
468 + self.window.maximize()
469 + return True
470 +
471 + def fullscreen(self, widget, event=None, *arguments, **keywords):
472 + self.window.fullscreen()
473 + return True
474 +
475 + def unfullscreen(self, widget, event=None, *arguments, **keywords):
476 + self.window.unfullscreen()
477 + return True
478 +
479 def get_bt_sha1(self):
480 """ Update the bt_sha1 dictionary with the
481 respective sha1 details """
contrib/gitview/gitview.txt
+6
@@ -26,8 +26,14 @@ OPTIONS
26 <args>
27 All the valid option for git-rev-list(1)
28 Key Bindings:
29 + F4:
30 + To maximize the window
31 F5:
32 To reread references.
33 + F11:
34 + Full screen
35 + F12:
36 + Leave full screen
37
38 EXAMPLES
39 ------