Make clipboard remember its dimensions
svn: r12433
This commit is contained in:
parent
22b0e556dd
commit
528c2aa2a5
@ -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)
|
||||
@ -270,6 +272,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,
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user