{"thread":{"id":"4305","subject":"gitview: Move the console error messages to message dialog","startedAt":"2006-05-27T10:25:32Z","lastAt":"2006-05-27T10:25:32Z","messageCount":1,"participants":["Aneesh Kumar K.V"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"20787","messageId":"4478291C.7000507@gmail.com","threadId":"4305","inReplyTo":null,"subject":"gitview: Move the console error messages to message dialog","fromName":"Aneesh Kumar K.V","fromEmail":"aneesh.kumar@gmail.com","sentAt":"2006-05-27T10:25:32Z","receivedAt":"2006-05-27T10:25:32Z","isPatch":false,"sender":{"key":"aneesh.kumar@gmail.com","avatar":"https://gravatar.com/avatar/0621fc0b2f14ead1e9024382f16053a808c148596da30c1b92572fa075621f68?d=mp&s=160"},"body":"\n\ngitview: Move the console error messages to message dialog\n\nThis changes display the error/warning info using message dialog\nrather than printing them using print\n\nSigned-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>\n---\n contrib/gitview/gitview |    9 +++++++--\n 1 files changed, 7 insertions(+), 2 deletions(-)\n\ndiff --git a/contrib/gitview/gitview b/contrib/gitview/gitview\nindex c708534..b836047 100755\n--- a/contrib/gitview/gitview\n+++ b/contrib/gitview/gitview\n@@ -983,10 +983,15 @@ class GitView:\n \t\ttry:\n \t\t\tself.treeview.set_cursor(self.index[revid])\n \t\texcept KeyError:\n-\t\t\tprint \"Revision %s not present in the list\" % revid\n+\t\t\tdialog = gtk.MessageDialog(parent=None, flags=0,\n+\t\t\t\t\ttype=gtk.MESSAGE_WARNING, buttons=gtk.BUTTONS_CLOSE,\n+\t\t\t\t\tmessage_format=None)\n+\t\t\tdialog.set_markup(\"Revision <b>%s</b> not present in the list\" % revid)\n \t\t\t# revid == 0 is the parent of the first commit\n \t\t\tif (revid != 0 ):\n-\t\t\t\tprint \"Try running gitview without any options\"\n+\t\t\t\tdialog.format_secondary_text(\"Try running gitview without any options\")\n+\t\t\tdialog.run()\n+\t\t\tdialog.destroy()\n \n \t\tself.treeview.grab_focus()\n \n-- \n1.3.3.g4d548-dirty\n\n"}]}