* 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:
parent
cd756e5b13
commit
a5b569d1dc
@ -1,4 +1,8 @@
|
|||||||
2008-02-24 Douglas S. Blank <dblank@cs.brynmawr.edu>
|
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/ViewManager.py:
|
||||||
* src/DbLoader.py:
|
* src/DbLoader.py:
|
||||||
Remove os.chdir, no longer needed for relative path
|
Remove os.chdir, no longer needed for relative path
|
||||||
|
@ -943,13 +943,14 @@ class GrampletView(PageView.PageView):
|
|||||||
############### First kind: from current session
|
############### First kind: from current session
|
||||||
for gramplet in self.closed_gramplets:
|
for gramplet in self.closed_gramplets:
|
||||||
if gramplet.title == name:
|
if gramplet.title == name:
|
||||||
gramplet.state = "maximized"
|
#gramplet.state = "maximized"
|
||||||
self.closed_gramplets.remove(gramplet)
|
self.closed_gramplets.remove(gramplet)
|
||||||
if self._popup_xy != None:
|
if self._popup_xy != None:
|
||||||
self.drop_widget(self.widget, gramplet,
|
self.drop_widget(self.widget, gramplet,
|
||||||
self._popup_xy[0], self._popup_xy[1], 0)
|
self._popup_xy[0], self._popup_xy[1], 0)
|
||||||
else:
|
else:
|
||||||
self.drop_widget(self.widget, gramplet, 0, 0, 0)
|
self.drop_widget(self.widget, gramplet, 0, 0, 0)
|
||||||
|
gramplet.set_state("maximized")
|
||||||
return
|
return
|
||||||
################ Second kind: from options
|
################ Second kind: from options
|
||||||
for opts in self.closed_opts:
|
for opts in self.closed_opts:
|
||||||
|
Loading…
Reference in New Issue
Block a user