diff options
author | Havoc Pennington <hp@redhat.com> | 2001-04-18 19:56:48 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-04-18 19:56:48 +0000 |
commit | c01a1c7363ec11353f3b87d5a9fdec96b5b15a30 (patch) | |
tree | 5167c4694ef9e6eee3d24ed48bd416af77ef51c1 /gtk/gtkimage.c | |
parent | 6cff7051b16d99178c5320592e96c757597835e4 (diff) | |
download | gdk-pixbuf-c01a1c7363ec11353f3b87d5a9fdec96b5b15a30.tar.gz |
allow shrinking the image window to test that we clip to allocation.
2001-04-18 Havoc Pennington <hp@redhat.com>
* tests/testgtk.c (create_image): allow shrinking the image window
to test that we clip to allocation.
* gtk/gtkimage.c (gtk_image_expose): clip to allocation,
#9845
* gtk/gtkenums.h: move GtkWrapMode in here, #50472
Diffstat (limited to 'gtk/gtkimage.c')
-rw-r--r-- | gtk/gtkimage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index 03f5fe0b6..81f0debc1 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -790,9 +790,9 @@ gtk_image_expose (GtkWidget *widget, area = event->area; - if (gdk_rectangle_intersect (&image_bound, &area, &intersection)) + if (gdk_rectangle_intersect (&area, &widget->allocation, &area) && + gdk_rectangle_intersect (&image_bound, &area, &image_bound)) { - switch (image->storage_type) { case GTK_IMAGE_PIXMAP: |