From 7f8697fef2e4acde29f0f16cf3ad43f2de9ae2f8 Mon Sep 17 00:00:00 2001 From: Daniel Francis Date: Sun, 09 Sep 2012 00:25:33 +0000 Subject: Add some GObject properties --- diff --git a/sugarvte/vteview.py b/sugarvte/vteview.py index 395d2db..489476d 100644 --- a/sugarvte/vteview.py +++ b/sugarvte/vteview.py @@ -46,7 +46,7 @@ class View(Gtk.Widget, Gtk.Scrollable): 'paste-primary': (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, tuple())} __gproperties__ = {'word-chars' : (GObject.TYPE_PYOBJECT, 'word chars', '', - GObject.PARAM_READWRITE)} + GObject.PARAM_READWRITE),} char_width = 1 char_height = 2 char_ascent = 3 @@ -55,6 +55,7 @@ class View(Gtk.Widget, Gtk.Scrollable): underline_position = 1 strikethrough_position = 1 scroll_on_keystroke = True + bell_margin = 10 def __init__(self): GObject.GObject.__init__(self) @@ -63,6 +64,9 @@ class View(Gtk.Widget, Gtk.Scrollable): self.set_redraw_on_allocate(False) self.set_word_chars(None) + + audible_bell = GObject.property(type=bool, default=True) + allow_bold = GObject.property(type=bool, default=True) vadjustment = GObject.property(type=Gtk.Adjustment) hadjustment = GObject.property(type=Gtk.Adjustment) hscroll_policy = GObject.property(type=Gtk.ScrollablePolicy, default=Gtk.ScrollablePolicy.NATURAL) -- cgit v0.9.1