* src/data/gramps.schemas: Add /apps/gramps/interface/size-checked key.

* src/GrampsCfg.py (get_screen_size_checked,
save_screen_size_checked): Add functions.
* src/gramps_main.py: Enable sidebar depending on the screen
if the screen size has not been checked yet.
* src/ChooseParents.py: Set the size request depending on the screen.
* src/Marriage.py: Set the size request depending on the screen.
* src/gramps.glade (marriageEditor): Unset the height request
for the event list.


svn: r3459
This commit is contained in:
Alex Roitman
2004-08-21 04:33:55 +00:00
parent e818e09ac0
commit 831a3adb99
4 changed files with 23 additions and 4 deletions

View File

@ -29,6 +29,7 @@ import string
#
#-------------------------------------------------------------------------
import gtk
import gtk.gdk
import gtk.glade
import gnome
import gobject
@ -142,6 +143,12 @@ class Marriage:
self.event_list = self.get_widget("marriageEventList")
if gtk.gdk.screen_height() > 700:
self.event_list.set_size_request(500,250)
else:
self.event_list.set_size_request(500,-1)
# widgets
self.complete = self.get_widget('complete')
self.date_field = self.get_widget("marriageDate")