From: Aneesh Kumar K.V Date: Sat, 27 May 2006 10:25:32 +0000 (+0530) Subject: gitview: Move the console error messages to message dialog X-Git-Tag: v1.4.0-rc1~51 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=756944350d675bd3c08130df337b776f189ed752;p=git.git gitview: Move the console error messages to message dialog Signed-off-by: Junio C Hamano --- diff --git a/contrib/gitview/gitview b/contrib/gitview/gitview index c7085342..b836047c 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 %s 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()