* src/DataViews/GrampletView.py (GrampletView.restore_gramplet):

Fixed restore minimized gramplet

2008-02-24  NOT Douglas S. Blank <dblank@cs.brynmawr.edu>


svn: r10106
This commit is contained in:
Doug Blank 2008-02-24 14:58:35 +00:00
parent cd756e5b13
commit a5b569d1dc
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,8 @@
2008-02-24 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DataViews/GrampletView.py (GrampletView.restore_gramplet):
Fixed restore minimized gramplet
2008-02-24 NOT Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/ViewManager.py:
* src/DbLoader.py:
Remove os.chdir, no longer needed for relative path

View File

@ -943,13 +943,14 @@ class GrampletView(PageView.PageView):
############### First kind: from current session
for gramplet in self.closed_gramplets:
if gramplet.title == name:
gramplet.state = "maximized"
#gramplet.state = "maximized"
self.closed_gramplets.remove(gramplet)
if self._popup_xy != None:
self.drop_widget(self.widget, gramplet,
self._popup_xy[0], self._popup_xy[1], 0)
else:
self.drop_widget(self.widget, gramplet, 0, 0, 0)
gramplet.set_state("maximized")
return
################ Second kind: from options
for opts in self.closed_opts: