~umang/indicator-stickynotes/trunk

« back to all changes in this revision

Viewing changes to gui.py

  • Committer: Umang Varma
  • Date: 2012-06-05 05:51:49 UTC
  • Revision ID: git-v1:642b6a22fb7dae75d6a22bf6d8a874794e4fbd7c
Hide all shouldn't mess up position/size

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
        return True
82
82
 
83
83
    def properties(self):
84
 
        return {"position":self.winMain.get_position(),
 
84
        prop = {"position":self.winMain.get_position(),
85
85
                "size":self.winMain.get_size(), "locked":self.locked}
 
86
        if not self.winMain.get_visible():
 
87
            prop["position"] = self.note.properties.get("position", (10, 10))
 
88
            prop["size"] = self.note.properties.get("size", (200, 200))
 
89
        return prop
86
90
 
87
91
    def save(self, *args):
88
92
        self.note.noteset.save()