plug-ins: Silence deprecation warning about rsvg_handle_set_size_callback
This commit is contained in:
parent
d025b02823
commit
eaa472158c
1 changed files with 5 additions and 0 deletions
|
|
@ -984,11 +984,16 @@ load_rsvg_pixbuf (RsvgHandle *handle,
|
|||
src += gdk_pixbuf_get_rowstride (pixbuf);
|
||||
}
|
||||
#else
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
|
||||
vals.resolution = resolution;
|
||||
vals.width = width;
|
||||
vals.height = height;
|
||||
rsvg_handle_set_size_callback (handle, load_set_size_callback, (gpointer) &vals, NULL);
|
||||
pixbuf = rsvg_handle_get_pixbuf (handle);
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
return pixbuf;
|
||||
|
|
|
|||
Loading…
Reference in a new issue