5357: Clipboard window doesn't remember its previous position

This commit is contained in:
Paul Franklin 2016-12-03 16:36:31 -08:00
parent cba583a486
commit 74aba1f6b4
2 changed files with 5 additions and 0 deletions

View File

@ -198,6 +198,8 @@ register('interface.citation-sel-height', 450)
register('interface.citation-sel-width', 600) register('interface.citation-sel-width', 600)
register('interface.citation-width', 600) register('interface.citation-width', 600)
register('interface.clipboard-height', 300) register('interface.clipboard-height', 300)
register('interface.clipboard-horiz-position', 100)
register('interface.clipboard-vert-position', 200)
register('interface.clipboard-width', 300) register('interface.clipboard-width', 300)
register('interface.dont-ask', False) register('interface.dont-ask', False)
register('interface.view-categories', register('interface.view-categories',

View File

@ -1385,10 +1385,13 @@ class ClipboardWindow(ManagedWindow):
self.width_key = 'interface.clipboard-width' self.width_key = 'interface.clipboard-width'
self.height_key = 'interface.clipboard-height' self.height_key = 'interface.clipboard-height'
self.horiz_position_key = 'interface.clipboard-horiz-position'
self.vert_position_key = 'interface.clipboard-vert-position'
self.top = Glade() self.top = Glade()
self.set_window(self.top.toplevel, None, None, msg=_("Clipboard")) self.set_window(self.top.toplevel, None, None, msg=_("Clipboard"))
self._set_size() self._set_size()
self._set_position()
self.clear_all_btn = self.top.get_object("btn_clear_all") self.clear_all_btn = self.top.get_object("btn_clear_all")
self.clear_btn = self.top.get_object("btn_clear") self.clear_btn = self.top.get_object("btn_clear")