* src/DataViews/_PersonView.py: add non-functioning (for now) clear

button
	* src/Config/_GrampsGconfKeys.py: get_default fix


svn: r6642
This commit is contained in:
Don Allingham 2006-05-13 05:36:55 +00:00
parent 9aa8094b00
commit 1f96447335
3 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,7 @@
2006-05-12 Don Allingham <don@gramps-project.org>
* src/DataViews/_PersonView.py: add non-functioning (for now) clear
button
* src/Config/_GrampsGconfKeys.py: get_default fix
* src/GrampsCfg.py: add revert option for colors
* src/Config/_GrampsGconfKeys.py: added get_default
* src/Config/_GrampsIniKeys.py: added get_default

View File

@ -152,4 +152,4 @@ def sync():
def get_default(key):
token = "/apps/gramps/%s/%s" % (key[0],key[1])
return client.get_default_from_schema(token)
return client.get_default_from_schema(token).get_string()

View File

@ -243,6 +243,9 @@ class PersonView(PageView.PersonNavView):
self.apply_btn = gtk.Button(stock=gtk.STOCK_FIND)
self.apply_btn.connect('clicked', self.filter_clicked)
self.clear_btn = gtk.Button(stock=gtk.STOCK_CLEAR)
self.clear_btn.connect('clicked', self.clear_clicked)
table.set_col_spacing(0,6)
table.set_col_spacing(1,6)
@ -292,11 +295,19 @@ class PersonView(PageView.PersonNavView):
table.attach(self.filter_regex, 2, 3, 8, 9, xoptions=gtk.FILL,
yoptions=0)
table.attach(self.apply_btn, 2, 3, 9, 10, xoptions=0,
hbox = gtk.HBox()
hbox.add(self.apply_btn)
hbox.add(self.clear_btn)
hbox.show()
table.attach(hbox, 2, 3, 9, 10, xoptions=gtk.FILL,
yoptions=0)
return table
def clear_clicked(self,obj):
print "clear"
def filter_clicked(self, obj):
name = self.filter_name.get_text().strip()
gid = self.filter_id.get_text().strip()