8351: Allow gramplets detached from the dashboard to fill the window
This commit is contained in:
parent
a7e23c5a63
commit
18a22478c3
@ -232,6 +232,7 @@ class GrampletWindow(ManagedWindow):
|
|||||||
"""
|
"""
|
||||||
self.title = gramplet.title + " " + _("Gramplet")
|
self.title = gramplet.title + " " + _("Gramplet")
|
||||||
self.gramplet = gramplet
|
self.gramplet = gramplet
|
||||||
|
self.gramplet.scrolledwindow.set_vexpand(True)
|
||||||
self.gramplet.detached_window = self
|
self.gramplet.detached_window = self
|
||||||
# Keep track of what state it was in:
|
# Keep track of what state it was in:
|
||||||
self.docked_state = gramplet.gstate
|
self.docked_state = gramplet.gstate
|
||||||
@ -295,6 +296,7 @@ class GrampletWindow(ManagedWindow):
|
|||||||
"""
|
"""
|
||||||
Dock the detached GrampletWindow back in the column from where it came.
|
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.detached_window = None
|
||||||
self.gramplet.pane.detached_gramplets.remove(self.gramplet)
|
self.gramplet.pane.detached_gramplets.remove(self.gramplet)
|
||||||
if self.docked_state == "minimized":
|
if self.docked_state == "minimized":
|
||||||
|
Loading…
Reference in New Issue
Block a user