aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@gmail.com>2006-05-27 15:55:32 +0530
committerJunio C Hamano <junkio@cox.net>2006-05-28 10:53:08 -0700
commit756944350d675bd3c08130df337b776f189ed752 (patch)
tree8a2478ca6faee9be605add51291b758ed771798a
parent034016391c475e98c38a9b715cd670b8b2d0c619 (diff)
downloadgit-756944350d675bd3c08130df337b776f189ed752.tar.gz
git-756944350d675bd3c08130df337b776f189ed752.tar.xz
gitview: Move the console error messages to message dialog
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xcontrib/gitview/gitview9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/gitview/gitview b/contrib/gitview/gitview
index c70853428..b836047cf 100755
--- a/contrib/gitview/gitview
+++ b/contrib/gitview/gitview
@@ -983,10 +983,15 @@ class GitView:
try:
self.treeview.set_cursor(self.index[revid])
except KeyError:
- print "Revision %s not present in the list" % revid
+ dialog = gtk.MessageDialog(parent=None, flags=0,
+ type=gtk.MESSAGE_WARNING, buttons=gtk.BUTTONS_CLOSE,
+ message_format=None)
+ dialog.set_markup("Revision <b>%s</b> not present in the list" % revid)
# revid == 0 is the parent of the first commit
if (revid != 0 ):
- print "Try running gitview without any options"
+ dialog.format_secondary_text("Try running gitview without any options")
+ dialog.run()
+ dialog.destroy()
self.treeview.grab_focus()