xpra icon
Bug tracker and wiki

Changes between Version 1 and Version 2 of Ticket #40, comment 10


Ignore:
Timestamp:
11/14/11 16:30:59 (9 years ago)
Author:
Antoine Martin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40, comment 10

    v1 v2  
    1111+    def _sanitize_size_hints(self, size_hints):
    1212+        if size_hints is None:
    13 +            return  None
     13+            return
    1414+        for attr in ["max_size", "min_size", "base_size",
    1515+                    "resize_inc", "min_aspect", "max_aspect"]:
     
    2626         if owner is not None:
    2727             (allocated_w, allocated_h) = owner.window_size(self)
    28 -            hints = self.get_property("size-hints")
     28             hints = self.get_property("size-hints")
    2929+            self._sanitize_size_hints(hints)
    3030             size = wimpiggy.lowlevel.calc_constrained_size(allocated_w,