Changes between Version 1 and Version 2 of Ticket #40, comment 10
- Timestamp:
- 11/14/11 16:30:59 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #40, comment 10
v1 v2 11 11 + def _sanitize_size_hints(self, size_hints): 12 12 + if size_hints is None: 13 + return None13 + return 14 14 + for attr in ["max_size", "min_size", "base_size", 15 15 + "resize_inc", "min_aspect", "max_aspect"]: … … 26 26 if owner is not None: 27 27 (allocated_w, allocated_h) = owner.window_size(self) 28 -hints = self.get_property("size-hints")28 hints = self.get_property("size-hints") 29 29 + self._sanitize_size_hints(hints) 30 30 size = wimpiggy.lowlevel.calc_constrained_size(allocated_w,