Ticket #24: patch
| File patch, 2.1 kB (added by guest, 5 months ago) |
|---|
-
pygtkimageview/src/gtkimageview.c
old new 1226 1226 return Py_None; 1227 1227 } 1228 1228 1229 static PyObject * 1230 _wrap_gtk_image_view_damage_pixels(PyGObject *self, PyObject *args) 1231 { 1232 PyObject *prect; 1233 GdkRectangle rect; 1234 1235 if (!PyArg_ParseTuple(args, "O", &prect)) return NULL; 1236 pygdk_rectangle_from_pyobject(prect, &rect); 1237 gtk_image_view_damage_pixels(GTK_IMAGE_VIEW(self->obj), &rect); 1238 1239 Py_INCREF(Py_None); 1240 return Py_None; 1241 } 1242 1229 1243 static const PyMethodDef _PyGtkImageView_methods[] = { 1230 1244 { "get_viewport", (PyCFunction)_wrap_gtk_image_view_get_viewport, METH_NOARGS, 1231 1245 NULL }, … … 1273 1287 NULL }, 1274 1288 { "zoom_out", (PyCFunction)_wrap_gtk_image_view_zoom_out, METH_NOARGS, 1275 1289 NULL }, 1290 { "damage_pixels", (PyCFunction)_wrap_gtk_image_view_damage_pixels, METH_VARARGS, 1291 NULL }, 1276 1292 { NULL, NULL, 0, NULL } 1277 1293 }; 1278 1294
