Make clipboard remember its dimensions
svn: r12432
This commit is contained in:
parent
507e9ec8d6
commit
0b3cbc5c12
@ -127,6 +127,8 @@ PEDVIEW_TREESIZE = ('interface', 'pedview-tree-size', 1)
|
|||||||
PEDVIEW_LAYOUT = ('interface', 'pedview-layout', 1)
|
PEDVIEW_LAYOUT = ('interface', 'pedview-layout', 1)
|
||||||
PEDVIEW_SHOW_MARRIAGE= ('interface', 'pedview-show-marriage', 0)
|
PEDVIEW_SHOW_MARRIAGE= ('interface', 'pedview-show-marriage', 0)
|
||||||
PEDVIEW_SHOW_IMAGES = ('interface', 'pedview-show-images', 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)
|
DATABASE_PATH = ('behavior', 'database-path', 2)
|
||||||
FPREFIX = ('preferences', 'fprefix', 2)
|
FPREFIX = ('preferences', 'fprefix', 2)
|
||||||
EPREFIX = ('preferences', 'eprefix', 2)
|
EPREFIX = ('preferences', 'eprefix', 2)
|
||||||
@ -272,6 +274,8 @@ default_value = {
|
|||||||
PERSON_SEL_HEIGHT : 450,
|
PERSON_SEL_HEIGHT : 450,
|
||||||
MEDIA_SEL_WIDTH : 600,
|
MEDIA_SEL_WIDTH : 600,
|
||||||
MEDIA_SEL_HEIGHT : 450,
|
MEDIA_SEL_HEIGHT : 450,
|
||||||
|
CLIPBOARD_WIDTH : 300,
|
||||||
|
CLIPBOARD_HEIGHT : 300,
|
||||||
FILTER : False,
|
FILTER : False,
|
||||||
PEDVIEW_TREESIZE : 0,
|
PEDVIEW_TREESIZE : 0,
|
||||||
PEDVIEW_LAYOUT : 0,
|
PEDVIEW_LAYOUT : 0,
|
||||||
|
@ -51,6 +51,7 @@ from gtk import glade
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
|
import Config
|
||||||
import gen.lib
|
import gen.lib
|
||||||
import TreeTips
|
import TreeTips
|
||||||
import DateHandler
|
import DateHandler
|
||||||
@ -1198,11 +1199,14 @@ class ScratchPadWindow(ManagedWindow.ManagedWindow):
|
|||||||
self.database_changed(self.dbstate.db)
|
self.database_changed(self.dbstate.db)
|
||||||
self.dbstate.connect('database-changed', self.database_changed)
|
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.glade_file = os.path.join(const.GLADE_DIR, "scratchpad.glade")
|
||||||
|
|
||||||
self.top = glade.XML(self.glade_file,"scratch_pad","gramps")
|
self.top = glade.XML(self.glade_file,"scratch_pad","gramps")
|
||||||
self.set_window(self.top.get_widget("scratch_pad"),
|
self.set_window(self.top.get_widget("scratch_pad"),
|
||||||
None, None, msg=_("Clipboard"))
|
None, None, msg=_("Clipboard"))
|
||||||
|
self._set_size()
|
||||||
|
|
||||||
self.clear_all_btn = self.top.get_widget("btn_clear_all")
|
self.clear_all_btn = self.top.get_widget("btn_clear_all")
|
||||||
self.clear_btn = self.top.get_widget("btn_clear")
|
self.clear_btn = self.top.get_widget("btn_clear")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user