From 4f1011fca3830688f6b986951c778a84467c857c Mon Sep 17 00:00:00 2001 From: James Henstridge Date: Sun, 25 Apr 1999 01:13:25 +0000 Subject: a wrapper for the new function. 1999-04-25 James Henstridge * 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 * 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. --- gtk.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk.py') 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): -- cgit v1.2.1