diff options
| author | Joe Shaw <joe@ximian.com> | 2003-01-10 01:21:40 +0000 |
|---|---|---|
| committer | Joe Shaw <joeshaw@src.gnome.org> | 2003-01-10 01:21:40 +0000 |
| commit | 5d9395d407bd66ee9f5af6e4e405a5b7c5b2c75d (patch) | |
| tree | a51e3ca3c6d84a60d83e14a0599f7092fcb06795 | |
| parent | 818bf0420fc6d20e259150565f71e76f735fc787 (diff) | |
| download | pygtk-5d9395d407bd66ee9f5af6e4e405a5b7c5b2c75d.tar.gz | |
Wrap. The width and height are returned as a tuple.
2002-01-09 Joe Shaw <joe@ximian.com>
* gtk/gtk.override (_wrap_gtk_icon_size_lookup): Wrap. The width
and height are returned as a tuple.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | gtk/gtk.override | 22 |
2 files changed, 27 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2002-01-09 Joe Shaw <joe@ximian.com> + + * gtk/gtk.override (_wrap_gtk_icon_size_lookup): Wrap. The width + and height are returned as a tuple. + 2003-01-09 Joe Shaw <joe@ximian.com> * gtk/gtk.override (_wrap_gtk_file_selection_get_selections): diff --git a/gtk/gtk.override b/gtk/gtk.override index edc10021..76542a80 100644 --- a/gtk/gtk.override +++ b/gtk/gtk.override @@ -7145,6 +7145,28 @@ _wrap_gtk_file_selection_get_selections(PyGObject *self) return ret; } %% +override gtk_icon_size_lookup kwargs +static PyObject * +_wrap_gtk_icon_size_lookup(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "icon_size", NULL }; + PyObject *py_icon_size; + GtkIconSize icon_size; + gint width, height; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:icon_size_lookup", + kwlist, &py_icon_size)) + return NULL; + + if (pyg_enum_get_value(GTK_TYPE_ICON_SIZE, py_icon_size, + (gint *) &icon_size)) + return NULL; + + gtk_icon_size_lookup(icon_size, &width, &height); + + return Py_BuildValue("(ii)", width, height); +} +%% ignore-win32 GTK_TYPE_PLUG GTK_TYPE_SOCKET |
