2008-02-28 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/DefaultGramplets.py: improve (??) Pedigree Gramplet * src/DataViews/GrampletView.py: add a no-wrap method svn: r10135
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user