[pygtk] Manually wrap GtkCellRenderer.get_alignment and GtkCellRenderer.get_padding
- From: Gian Mario Tagliaretti <gianmt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk] Manually wrap GtkCellRenderer.get_alignment and GtkCellRenderer.get_padding
- Date: Mon, 5 Apr 2010 20:06:04 +0000 (UTC)
commit a6c70981f84b0e8f24d004c6bd87c821e960cb67
Author: Gian Mario Tagliaretti <gianmt gnome org>
Date: Mon Apr 5 22:04:53 2010 +0200
Manually wrap GtkCellRenderer.get_alignment and GtkCellRenderer.get_padding
gtk/gtk.override | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtk.override b/gtk/gtk.override
index 3b7b86d..516e10f 100644
--- a/gtk/gtk.override
+++ b/gtk/gtk.override
@@ -8774,3 +8774,26 @@ _wrap_gtk_hsv_to_rgb(PyGObject *self, PyObject *args, PyObject *kwargs)
return Py_BuildValue("(ddd)", r, g, b);
}
+%%
+override gtk_cell_renderer_get_alignment noargs
+static PyObject *
+_wrap_gtk_cell_renderer_get_alignment(PyGObject *self)
+{
+ gfloat xalign, yalign;
+
+ gtk_cell_renderer_get_alignment(GTK_CELL_RENDERER(self->obj),
+ &xalign, &yalign);
+
+ return Py_BuildValue("(dd)", xalign, yalign);
+}
+%%
+override gtk_cell_renderer_get_padding noargs
+static PyObject *
+_wrap_gtk_cell_renderer_get_padding(PyGObject *self)
+{
+ gint xpad, ypad;
+
+ gtk_cell_renderer_get_padding(GTK_CELL_RENDERER(self->obj), &xpad, &ypad);
+
+ return Py_BuildValue("(ii)", xpad, ypad);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]