Ticket #24: patch

File patch, 2.1 kB (added by guest, 5 months ago)
  • pygtkimageview/src/gtkimageview.c

    old new  
    12261226    return Py_None; 
    12271227} 
    12281228 
     1229static 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 
    12291243static const PyMethodDef _PyGtkImageView_methods[] = { 
    12301244    { "get_viewport", (PyCFunction)_wrap_gtk_image_view_get_viewport, METH_NOARGS, 
    12311245      NULL }, 
     
    12731287      NULL }, 
    12741288    { "zoom_out", (PyCFunction)_wrap_gtk_image_view_zoom_out, METH_NOARGS, 
    12751289      NULL }, 
     1290    { "damage_pixels", (PyCFunction)_wrap_gtk_image_view_damage_pixels, METH_VARARGS, 
     1291      NULL }, 
    12761292    { NULL, NULL, 0, NULL } 
    12771293}; 
    12781294