summaryrefslogtreecommitdiff
path: root/gtk.py
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>1999-04-25 01:13:25 +0000
committerJames Henstridge <jamesh@src.gnome.org>1999-04-25 01:13:25 +0000
commit4f1011fca3830688f6b986951c778a84467c857c (patch)
treea9cfff94ec7d1c65752f74e8126db56873eb6afa /gtk.py
parent787acd1aac13ba8748e1563ae4376162f454b060 (diff)
downloadpygtk-GNOME_PYTHON_1_0_2.tar.gz
a wrapper for the new function.PYGTK_0_6_0GNOME_PYTHON_1_0_2
1999-04-25 James Henstridge <james@daa.com.au> * gtk.py (GtkWidget.get_allocation): a wrapper for the new function. * gtkmodule.c: added a routine for getting the allocation of a widget. 1999-04-25 James Henstridge <james@daa.com.au> * pygnome/Makefile.am (EXTRA_DIST): added bookmarks-applet.py * pygnome/examples/bookmarks-applet.py: added another sample applet that demonstrates setting up context menu items. It basically reads in your Netscape 4.x bookmarks file, and puts the bookmarks into the context menu heirachy. It then uses gnome.url.show() to display the bookmark in the browser of the user's choice.
Diffstat (limited to 'gtk.py')
-rw-r--r--gtk.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk.py b/gtk.py
index f7d7c6dd..7039effb 100644
--- a/gtk.py
+++ b/gtk.py
@@ -311,6 +311,8 @@ class GtkWidget(GtkObject):
_gtk.gtk_widget_event(self._o, event)
def lock_accelerators(self):
_gtk.gtk_widget_lock_accelerators(self._o)
+ def get_allocation(self):
+ return _gtk.gtk_widget_get_allocation(self._o)
def get_ancestor(self, type):
return _obj2inst(_gtk.gtk_widget_get_ancestor(self._o, type))
def get_child_requisition(self):