summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-animation.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-animation.c')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-animation.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-animation.c b/gdk-pixbuf/gdk-pixbuf-animation.c
index 66a037c20..c8f2695e3 100644
--- a/gdk-pixbuf/gdk-pixbuf-animation.c
+++ b/gdk-pixbuf/gdk-pixbuf-animation.c
@@ -106,6 +106,13 @@ gdk_pixbuf_animation_init (GdkPixbufAnimation *animation)
}
static void
+noop_size_notify (gint *width,
+ gint *height,
+ gpointer data)
+{
+}
+
+static void
prepared_notify (GdkPixbuf *pixbuf,
GdkPixbufAnimation *anim,
gpointer user_data)
@@ -118,6 +125,16 @@ prepared_notify (GdkPixbuf *pixbuf,
*((GdkPixbufAnimation **)user_data) = anim;
}
+static void
+noop_updated_notify (GdkPixbuf *pixbuf,
+ int x,
+ int y,
+ int width,
+ int height,
+ gpointer user_data)
+{
+}
+
/**
* gdk_pixbuf_animation_new_from_file:
* @filename: (type filename): Name of file to load, in the GLib file
@@ -221,7 +238,7 @@ gdk_pixbuf_animation_new_from_file (const gchar *filename,
animation = NULL;
fseek (f, 0, SEEK_SET);
- context = image_module->begin_load (NULL, prepared_notify, NULL, &animation, error);
+ context = image_module->begin_load (noop_size_notify, prepared_notify, noop_updated_notify, &animation, error);
if (!context)
goto fail_begin_load;