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 /tests/testgtk.c | |
parent | 6cff7051b16d99178c5320592e96c757597835e4 (diff) | |
download | gtk+-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 'tests/testgtk.c')
-rw-r--r-- | tests/testgtk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index 6e149dc5dc..335024b8d2 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -2758,6 +2758,10 @@ create_image (void) GdkBitmap *mask; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); + /* this is bogus for testing drawing when allocation < request, + * don't copy into real code + */ + gtk_window_set_policy (GTK_WINDOW (window), TRUE, TRUE, FALSE); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC(gtk_widget_destroyed), |