Don't open calendar if DateEntry is not editable

(transplanted from ad9c8341d2eef843a1f5046f23967e05e7f65d44)
This commit is contained in:
Cédric Krier committed 2012-11-07 12:42:49 +01:00
1 parent 722bfab657
commit f79bd986bf
1 file changed
+2
+2
View File
@@ -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,