diff options
author | Johan Dahlin <johan@src.gnome.org> | 2006-01-19 19:12:11 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-01-19 19:12:11 +0000 |
commit | ec718aaf077d2fabe791cb6a00acfd12454ce4cc (patch) | |
tree | 1b8f1ffe104cc4ee4ec476faea244a69f546a897 /examples/gtk/widget.py | |
parent | 6b5a8a60c481e162f1947fb82992156b2155b5b1 (diff) | |
download | pygtk-ec718aaf077d2fabe791cb6a00acfd12454ce4cc.tar.gz |
Install examples
* examples/Makefile.am:
Install examples
* examples/gtk/widget.py:
Call unrealize too
* examples/gtk/scrollable.py:
Add example of a scrollable widget
Diffstat (limited to 'examples/gtk/widget.py')
-rw-r--r-- | examples/gtk/widget.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/gtk/widget.py b/examples/gtk/widget.py index 51e187e3..6cbfb72c 100644 --- a/examples/gtk/widget.py +++ b/examples/gtk/widget.py @@ -47,6 +47,9 @@ class PyGtkWidget(gtk.Widget): self.style.set_background(self.window, gtk.STATE_NORMAL) self.window.move_resize(*self.allocation) + def do_unrealize(self): + self.window.set_user_data(None) + def do_size_request(self, requisition): width, height = self.layout.get_size() requisition.width = width // pango.SCALE + BORDER_WIDTH*4 |