Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitview: Move the console error messages to message dialog
author
Aneesh Kumar K.V
<aneesh.kumar@gmail.com>
Sat, 27 May 2006 10:25:32 +0000
(15:55 +0530)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 28 May 2006 17:53:08 +0000
(10:53 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/gitview/gitview
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0340163
)
diff --git
a/contrib/gitview/gitview
b/contrib/gitview/gitview
index c7085342863a2b9b7c37040e26bae8c0686fe1c8..b836047cf34715909470049a24febdd8f966eaab 100755
(executable)
--- a/
contrib/gitview/gitview
+++ b/
contrib/gitview/gitview
@@
-983,10
+983,15
@@
class GitView:
try:
self.treeview.set_cursor(self.index[revid])
except KeyError:
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 ):
# 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()
self.treeview.grab_focus()