Set and save window dimensions for Child Ref editor
svn: r11906
This commit is contained in:
parent
4530bd5cb9
commit
f5681c0168
@ -2,7 +2,7 @@
|
|||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2006-2007 Donald N. Allingham
|
# Copyright (C) 2006-2007 Donald N. Allingham
|
||||||
# Copyright (C) 2008 Gary Burton
|
# Copyright (C) 2008-2009 Gary Burton
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -88,6 +88,8 @@ EVENT_HEIGHT = ('interface', 'event-height', 1)
|
|||||||
EVENT_WIDTH = ('interface', 'event-width', 1)
|
EVENT_WIDTH = ('interface', 'event-width', 1)
|
||||||
EVENT_REF_HEIGHT = ('interface', 'event-ref-height', 1)
|
EVENT_REF_HEIGHT = ('interface', 'event-ref-height', 1)
|
||||||
EVENT_REF_WIDTH = ('interface', 'event-ref-width', 1)
|
EVENT_REF_WIDTH = ('interface', 'event-ref-width', 1)
|
||||||
|
CHILD_REF_HEIGHT = ('interface', 'child-ref-height', 1)
|
||||||
|
CHILD_REF_WIDTH = ('interface', 'child-ref-width', 1)
|
||||||
PLACE_HEIGHT = ('interface', 'place-height', 1)
|
PLACE_HEIGHT = ('interface', 'place-height', 1)
|
||||||
PLACE_WIDTH = ('interface', 'place-width', 1)
|
PLACE_WIDTH = ('interface', 'place-width', 1)
|
||||||
REPO_HEIGHT = ('interface', 'repo-height', 1)
|
REPO_HEIGHT = ('interface', 'repo-height', 1)
|
||||||
@ -220,6 +222,8 @@ default_value = {
|
|||||||
EVENT_WIDTH : 600,
|
EVENT_WIDTH : 600,
|
||||||
EVENT_REF_HEIGHT : 450,
|
EVENT_REF_HEIGHT : 450,
|
||||||
EVENT_REF_WIDTH : 600,
|
EVENT_REF_WIDTH : 600,
|
||||||
|
CHILD_REF_HEIGHT : 450,
|
||||||
|
CHILD_REF_WIDTH : 600,
|
||||||
PLACE_HEIGHT : 450,
|
PLACE_HEIGHT : 450,
|
||||||
PLACE_WIDTH : 650,
|
PLACE_WIDTH : 650,
|
||||||
REPO_HEIGHT : 450,
|
REPO_HEIGHT : 450,
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2000-2006 Donald N. Allingham
|
# Copyright (C) 2000-2006 Donald N. Allingham
|
||||||
|
# 2009 Gary Burton
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -49,6 +50,7 @@ import const
|
|||||||
from _EditSecondary import EditSecondary
|
from _EditSecondary import EditSecondary
|
||||||
from gen.lib import NoteType
|
from gen.lib import NoteType
|
||||||
import Errors
|
import Errors
|
||||||
|
import Config
|
||||||
|
|
||||||
from DisplayTabs import SourceEmbedList, NoteTab
|
from DisplayTabs import SourceEmbedList, NoteTab
|
||||||
from widgets import MonitoredDataType, PrivacyButton
|
from widgets import MonitoredDataType, PrivacyButton
|
||||||
@ -86,6 +88,8 @@ class EditChildRef(EditSecondary):
|
|||||||
childref, callback)
|
childref, callback)
|
||||||
|
|
||||||
def _local_init(self):
|
def _local_init(self):
|
||||||
|
self.width_key = Config.CHILD_REF_WIDTH
|
||||||
|
self.height_key = Config.CHILD_REF_HEIGHT
|
||||||
self.top = glade.XML(const.GLADE_FILE, "cref_edit","gramps")
|
self.top = glade.XML(const.GLADE_FILE, "cref_edit","gramps")
|
||||||
self.set_window(self.top.get_widget("cref_edit"),
|
self.set_window(self.top.get_widget("cref_edit"),
|
||||||
self.top.get_widget("title"),
|
self.top.get_widget("title"),
|
||||||
|
Loading…
Reference in New Issue
Block a user