Don't open calendar if DateEntry is not editable
(transplanted from ad9c8341d2eef843a1f5046f23967e05e7f65d44)
This commit is contained in:
1 parent
722bfab657
commit
f79bd986bf
1 file changed
+2
@@ -266,6 +266,8 @@ class DateEntry(gtk.Entry):
|
||||
return False
|
||||
|
||||
def cal_open(self, *args):
|
||||
if not self.get_editable():
|
||||
return False
|
||||
parent = self.get_toplevel()
|
||||
dialog = gtk.Dialog(_('Date Selection'), parent,
|
||||
gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
|
||||
|
||||
Reference in new issue
Block a user