diff options
author | Jonathan Blandford <jrb@redhat.com> | 1999-11-10 21:06:40 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 1999-11-10 21:06:40 +0000 |
commit | 19b42c342f9e227d09ae7a6a6706c5e3e141856e (patch) | |
tree | e1568599ea52661580137d7e1b3f89bd34efbbf9 /gtk | |
parent | 16aa7c4316ef4b964c314a37dc0815d0a52db04f (diff) | |
download | gtk+-19b42c342f9e227d09ae7a6a6706c5e3e141856e.tar.gz |
emit the closed signal.
1999-11-10 Jonathan Blandford <jrb@redhat.com>
* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): emit the
closed signal.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gdk-pixbuf-loader.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gdk-pixbuf-loader.c b/gtk/gdk-pixbuf-loader.c index 73093c6cf0..627d8dcd71 100644 --- a/gtk/gdk-pixbuf-loader.c +++ b/gtk/gdk-pixbuf-loader.c @@ -403,4 +403,11 @@ gdk_pixbuf_loader_close (GdkPixbufLoader *loader) (* priv->image_module->stop_load) (priv->context); priv->closed = TRUE; + + gtk_signal_emit (GTK_OBJECT (loader), + pixbuf_loader_signals[CLOSED], + x, y, + /* sanity check in here. Defend against an errant loader */ + MIN (width, gdk_pixbuf_get_width (priv->pixbuf)), + MIN (height, gdk_pixbuf_get_height (priv->pixbuf))); } |