8351: Allow gramplets detached from the dashboard to fill the window

This commit is contained in:
Nick Hall 2015-02-10 22:46:00 +00:00
parent a7e23c5a63
commit 18a22478c3

View File

@ -232,6 +232,7 @@ class GrampletWindow(ManagedWindow):
"""
self.title = gramplet.title + " " + _("Gramplet")
self.gramplet = gramplet
self.gramplet.scrolledwindow.set_vexpand(True)
self.gramplet.detached_window = self
# Keep track of what state it was in:
self.docked_state = gramplet.gstate
@ -295,6 +296,7 @@ class GrampletWindow(ManagedWindow):
"""
Dock the detached GrampletWindow back in the column from where it came.
"""
self.gramplet.scrolledwindow.set_vexpand(False)
self.gramplet.detached_window = None
self.gramplet.pane.detached_gramplets.remove(self.gramplet)
if self.docked_state == "minimized":