* src/PedView.py: Use the same font as used in the gtk style
svn: r5745
This commit is contained in:
parent
4f077081b8
commit
ef43c29ded
@ -1,3 +1,6 @@
|
||||
2006-01-13 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||
* src/PedView.py: Use the same font as used in the gtk style
|
||||
|
||||
2006-01-13 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
|
||||
* src/ObjectSelector/_ObjectSelectorWindow.py: layout improvements
|
||||
* src/ObjectSelector/_PersonPreviewFrame.py: layout improvements
|
||||
|
@ -148,6 +148,7 @@ class PersonBoxWidget_cairo( gtk.DrawingArea):
|
||||
def realize(self,widget):
|
||||
self.context = self.window.cairo_create()
|
||||
self.textlayout = self.context.create_layout()
|
||||
self.textlayout.set_font_description(self.get_style().font_desc)
|
||||
self.textlayout.set_text(self.text)
|
||||
s = self.textlayout.get_pixel_size()
|
||||
xmin = s[0] + 12
|
||||
@ -210,6 +211,13 @@ class PersonBoxWidget_cairo( gtk.DrawingArea):
|
||||
self.context.set_source_rgb( 0,0,0)
|
||||
self.context.show_layout( self.textlayout)
|
||||
|
||||
# text extents
|
||||
#self.context.set_source_rgba( 1,0,0,0.5)
|
||||
#s = self.textlayout.get_pixel_size()
|
||||
#self.context.set_line_width(1)
|
||||
#self.context.rectangle(5.5,4.5,s[0]-1,s[1]-1)
|
||||
#self.context.stroke()
|
||||
|
||||
#border
|
||||
if self.hightlight:
|
||||
self.context.set_line_width(5)
|
||||
|
Loading…
Reference in New Issue
Block a user