diff options
author | Gian Mario Tagliaretti <gianmt@src.gnome.org> | 2007-07-27 21:21:20 +0000 |
---|---|---|
committer | Gian Mario Tagliaretti <gianmt@src.gnome.org> | 2007-07-27 21:21:20 +0000 |
commit | 9824131cb4304db20a5c6a5e998aa9a4198d48c7 (patch) | |
tree | 1ea29827c34e5a5698c504b98ae419efbf1e1e43 /gtk/gtk.override | |
parent | 9d5e4a742039fa36184bf404cf06ef4721eb5c60 (diff) | |
download | pygtk-9824131cb4304db20a5c6a5e998aa9a4198d48c7.tar.gz |
wrap gtk.CellLayout.get_cell and alllow None in gtk_entry_set_cursor_hadjustment
svn path=/trunk/; revision=2864
Diffstat (limited to 'gtk/gtk.override')
-rw-r--r-- | gtk/gtk.override | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gtk/gtk.override b/gtk/gtk.override index 88cb370b..737d199b 100644 --- a/gtk/gtk.override +++ b/gtk/gtk.override @@ -8371,3 +8371,25 @@ _wrap_gtk_scale_button_set_icons(PyGObject *self, PyObject *args, PyObject *kwar Py_INCREF(Py_None); return Py_None; } +%% +override gtk_cell_layout_get_cells noargs +static PyObject * +_wrap_gtk_cell_layout_get_cells(PyGObject *self) +{ + PyObject *py_cells; + GList *cells, *l; + + py_cells = PyList_New(0); + + cells = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(self->obj)); + + for (l = cells; l; l = l->next) + { + PyObject *item = pygobject_new((GObject *)l->data); + PyList_Append(py_cells, item); + Py_DECREF(item); + } + g_list_free(cells); + + return py_cells; +} |