* src/plugins/DefaultGramplets.py: improve (??) Pedigree Gramplet
	* src/DataViews/GrampletView.py: add a no-wrap method



svn: r10135
This commit is contained in:
Benny Malengier
2008-02-28 10:30:12 +00:00
parent 5f7c6c1c8a
commit e1cae1a3bc
3 changed files with 28 additions and 9 deletions

View File

@@ -282,6 +282,14 @@ class Gramplet(object):
def set_use_markup(self, value):
self.gui.set_use_markup(value)
def no_wrap(self):
"""
The view in gramplet should not wrap.
"""
self.gui.scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC,
gtk.POLICY_AUTOMATIC)
self.gui.textview.set_wrap_mode(gtk.WRAP_NONE)
# Other functions of the gramplet:
def load_data_to_text(self, pos=0):