Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.6, 0.7, and 0.7.1

hggtk: add 'Cancel' button to entry dialog

Changeset f905b1ec5679

Parent 3288b9f176ea

by TK Soh

Changes to one file · Browse files at f905b1ec5679 Showing diff from parent 3288b9f176ea Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​dialog.py Stacked
 
54
55
56
 
 
57
58
 
59
60
61
 
54
55
56
57
58
59
 
60
61
62
63
@@ -54,8 +54,10 @@
  :param respfunc: callback function for when dialog exits   :returns if respfunc returns dialog, else return response text   """ + buttons = (gtk.STOCK_OK, gtk.RESPONSE_OK, + gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)   dialog = gtk.Dialog(parent=parent, flags=gtk.DIALOG_MODAL, - buttons=(gtk.STOCK_OK, gtk.RESPONSE_OK)) + buttons=buttons)   dialog.set_title('TortoiseHg Prompt')   entry = gtk.Entry()   entry.set_text(default or '')