summaryrefslogtreecommitdiff
path: root/pango.override
diff options
context:
space:
mode:
authorJohan Dahlin <zilch@src.gnome.org>2003-02-27 00:49:19 +0000
committerJohan Dahlin <zilch@src.gnome.org>2003-02-27 00:49:19 +0000
commitfb3c1c5c103e9874c5e171a017b18fa9d3b32623 (patch)
treef3cecbce540582a84953c980bf89d181a8fc2512 /pango.override
parentf832981c5b8623e8368a381101934050e715e36c (diff)
downloadpygtk-fb3c1c5c103e9874c5e171a017b18fa9d3b32623.tar.gz
Null is okay here. Fixes #106295 (John Finlay).
* gtk/gdk.defs (invalidate_rect): Null is okay here. Fixes #106295 (John Finlay). * gtk/gdk.override (_wrap_gdk_pixbuf_new_from_xpm_data): Impl. Fixes #106292 (John Finlay) * pango.override (_wrap_pango_layout_set_text): Impl. Fixes #106280 (John Finlay) * gtk/gtk.override: Added get implements for all TextAttribute fields. Fixes #106279 (John Finlay). * gtk/gtk-types.defs (TextAttributes): Added fields.
Diffstat (limited to 'pango.override')
-rw-r--r--pango.override16
1 files changed, 16 insertions, 0 deletions
diff --git a/pango.override b/pango.override
index 1da98624..e06a7fe1 100644
--- a/pango.override
+++ b/pango.override
@@ -989,3 +989,19 @@ _wrap_pango_tab_array_get_tabs(PyObject *self)
}
return ret;
}
+%%
+override pango_layout_set_text kwargs
+static PyObject *
+_wrap_pango_layout_set_text(PyGObject *self, PyObject *args, PyObject *kwargs)
+{
+ static char *kwlist[] = { "text", NULL };
+ char *text;
+ gint length;
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#:PangoLayout.set_text",
+ kwlist, &text, &length))
+ return NULL;
+ pango_layout_set_text(PANGO_LAYOUT(self->obj), text, length);
+ Py_INCREF(Py_None);
+ return Py_None;
+}