* 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 10b30bf57e
commit 4a41bfa1a0
4 changed files with 23 additions and 4 deletions

View File

@ -68,6 +68,16 @@
Set both ancestor and descendant filters to be inclusive.
* src/plugins/Ancestors.py (person_name): Use translated name type.
* 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.
2004-08-20 Tim Waugh <twaugh@redhat.com>
* src/RelLib.py (Event.are_equal): Fixed comparison with None.

View File

@ -42,6 +42,7 @@ import os
#
#-------------------------------------------------------------------------
import gtk.glade
import gtk.gdk
import gnome
#-------------------------------------------------------------------------
@ -126,6 +127,7 @@ class ChooseParents:
self.father_rel = self.glade.get_widget("frel")
self.prel = self.glade.get_widget("prel_combo")
self.title = self.glade.get_widget("chooseTitle")
self.father_list = self.glade.get_widget("father_list")
self.mother_list = self.glade.get_widget("mother_list")
self.flabel = self.glade.get_widget("flabel")
self.mlabel = self.glade.get_widget("mlabel")
@ -135,6 +137,10 @@ class ChooseParents:
self.build_father_list()
self.build_mother_list()
if gtk.gdk.screen_height() > 700:
self.father_list.set_size_request(-1,150)
self.mother_list.set_size_request(-1,150)
for (f,mr,fr) in self.person.get_parent_family_handle_list():
if f == self.family:
self.mother_rel.set_text(_(mr))
@ -167,14 +173,12 @@ class ChooseParents:
self.top.show()
def build_father_list(self):
self.father_list = self.glade.get_widget("father_list")
self.father_selection = self.father_list.get_selection()
self.father_selection.connect('changed',self.father_list_select_row)
self.add_columns(self.father_list)
self.redrawf()
def build_mother_list(self):
self.mother_list = self.glade.get_widget("mother_list")
self.mother_selection = self.mother_list.get_selection()
self.mother_selection.connect('changed',self.mother_list_select_row)
self.add_columns(self.mother_list)

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")

View File

@ -13520,8 +13520,6 @@ Other</property>
<child>
<widget class="GtkTreeView" id="marriageEventList">
<property name="width_request">500</property>
<property name="height_request">250</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">True</property>