summaryrefslogtreecommitdiff
path: root/pango.override
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2002-11-16 13:17:31 +0000
committerJames Henstridge <jamesh@src.gnome.org>2002-11-16 13:17:31 +0000
commitcc6ee7a654e3bc5c9bdc2a52d0b60f059949cd6c (patch)
tree3b2f4f1c68a111093ea449c900e25eccb3240fde /pango.override
parentb6c54d9c083f705d564b9045b5c6be024d68f38a (diff)
downloadpygtk-cc6ee7a654e3bc5c9bdc2a52d0b60f059949cd6c.tar.gz
fix up calls to pyg_enum_get_value() so that it doesn't throw an exception
2002-11-16 James Henstridge <james@daa.com.au> * pango.override: fix up calls to pyg_enum_get_value() so that it doesn't throw an exception when it shouldn't. (_wrap_pango_layout_get_pixel_extents): call get_pixel_extents() like it is supposed to. Fixes bug #93569.
Diffstat (limited to 'pango.override')
-rw-r--r--pango.override16
1 files changed, 8 insertions, 8 deletions
diff --git a/pango.override b/pango.override
index b4b592b5..1da98624 100644
--- a/pango.override
+++ b/pango.override
@@ -272,7 +272,7 @@ _wrap_pango_attr_style_new(PyObject *self, PyObject *args, PyObject *kwargs)
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:PangoAttrStyle", kwlist,
&py_style))
return NULL;
- if (!pyg_enum_get_value(PANGO_TYPE_STYLE, py_style, (gint *)&style))
+ if (pyg_enum_get_value(PANGO_TYPE_STYLE, py_style, (gint *)&style))
return NULL;
return pypango_attr_new(pango_attr_style_new(style));
@@ -289,7 +289,7 @@ _wrap_pango_attr_weight_new(PyObject *self, PyObject *args, PyObject *kwargs)
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:PangoAttrWeight", kwlist,
&py_weight))
return NULL;
- if (!pyg_enum_get_value(PANGO_TYPE_WEIGHT, py_weight, (gint *)&weight))
+ if (pyg_enum_get_value(PANGO_TYPE_WEIGHT, py_weight, (gint *)&weight))
return NULL;
return pypango_attr_new(pango_attr_weight_new(weight));
@@ -306,7 +306,7 @@ _wrap_pango_attr_variant_new(PyObject *self, PyObject *args, PyObject *kwargs)
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:PangoAttrVariant",
kwlist, &py_variant))
return NULL;
- if (!pyg_enum_get_value(PANGO_TYPE_VARIANT, py_variant, (gint *)&variant))
+ if (pyg_enum_get_value(PANGO_TYPE_VARIANT, py_variant, (gint *)&variant))
return NULL;
return pypango_attr_new(pango_attr_variant_new(variant));
@@ -323,7 +323,7 @@ _wrap_pango_attr_stretch_new(PyObject *self, PyObject *args, PyObject *kwargs)
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:PangoAttrStretch",
kwlist, &py_stretch))
return NULL;
- if (!pyg_enum_get_value(PANGO_TYPE_STRETCH, py_stretch, (gint *)&stretch))
+ if (pyg_enum_get_value(PANGO_TYPE_STRETCH, py_stretch, (gint *)&stretch))
return NULL;
return pypango_attr_new(pango_attr_stretch_new(stretch));
@@ -359,8 +359,8 @@ _wrap_pango_attr_underline_new(PyObject *self, PyObject *args,PyObject *kwargs)
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:PangoAttrUnderline",
kwlist, &py_underline))
return NULL;
- if (!pyg_enum_get_value(PANGO_TYPE_UNDERLINE, py_underline,
- (gint *)&underline))
+ if (pyg_enum_get_value(PANGO_TYPE_UNDERLINE, py_underline,
+ (gint *)&underline))
return NULL;
return pypango_attr_new(pango_attr_underline_new(underline));
@@ -876,8 +876,8 @@ _wrap_pango_layout_get_pixel_extents(PyGObject *self)
{
PangoRectangle ink_rect, logical_rect;
- pango_layout_get_extents(PANGO_LAYOUT(self->obj),
- &ink_rect, &logical_rect);
+ pango_layout_get_pixel_extents(PANGO_LAYOUT(self->obj),
+ &ink_rect, &logical_rect);
return Py_BuildValue("((iiii)(iiii))",
ink_rect.x, ink_rect.y,