diff --git a/src/Config/_GrampsConfigKeys.py b/src/Config/_GrampsConfigKeys.py index b8ed7aae8..3ab8f8062 100644 --- a/src/Config/_GrampsConfigKeys.py +++ b/src/Config/_GrampsConfigKeys.py @@ -127,6 +127,8 @@ PEDVIEW_TREESIZE = ('interface', 'pedview-tree-size', 1) PEDVIEW_LAYOUT = ('interface', 'pedview-layout', 1) PEDVIEW_SHOW_MARRIAGE= ('interface', 'pedview-show-marriage', 0) PEDVIEW_SHOW_IMAGES = ('interface', 'pedview-show-images', 0) +CLIPBOARD_WIDTH = ('interface', 'clipboard-width', 1) +CLIPBOARD_HEIGHT = ('interface', 'clipboard-height', 1) DATABASE_PATH = ('behavior', 'database-path', 2) FPREFIX = ('preferences', 'fprefix', 2) EPREFIX = ('preferences', 'eprefix', 2) @@ -272,6 +274,8 @@ default_value = { PERSON_SEL_HEIGHT : 450, MEDIA_SEL_WIDTH : 600, MEDIA_SEL_HEIGHT : 450, + CLIPBOARD_WIDTH : 300, + CLIPBOARD_HEIGHT : 300, FILTER : False, PEDVIEW_TREESIZE : 0, PEDVIEW_LAYOUT : 0, diff --git a/src/ScratchPad.py b/src/ScratchPad.py index 546d3c600..6f93a8c7e 100644 --- a/src/ScratchPad.py +++ b/src/ScratchPad.py @@ -51,6 +51,7 @@ from gtk import glade # #------------------------------------------------------------------------- import const +import Config import gen.lib import TreeTips import DateHandler @@ -1198,11 +1199,14 @@ class ScratchPadWindow(ManagedWindow.ManagedWindow): self.database_changed(self.dbstate.db) self.dbstate.connect('database-changed', self.database_changed) + self.width_key = Config.CLIPBOARD_WIDTH + self.height_key = Config.CLIPBOARD_HEIGHT self.glade_file = os.path.join(const.GLADE_DIR, "scratchpad.glade") self.top = glade.XML(self.glade_file,"scratch_pad","gramps") self.set_window(self.top.get_widget("scratch_pad"), None, None, msg=_("Clipboard")) + self._set_size() self.clear_all_btn = self.top.get_widget("btn_clear_all") self.clear_btn = self.top.get_widget("btn_clear")