+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
+
Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
+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
+
Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
+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
+
Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
+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
+
Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
+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
+
Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
+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
+
Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
+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
+
Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
GTK_WINDOW_POPUP
} GtkWindowType;
+/* Text wrap */
+typedef enum
+{
+ GTK_WRAP_NONE,
+ GTK_WRAP_CHAR,
+ GTK_WRAP_WORD
+} GtkWrapMode;
+
/* How to sort */
typedef enum
{
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:
typedef struct _GtkTextBTreeNode GtkTextBTreeNode;
typedef struct _GtkTextTagTable GtkTextTagTable;
-typedef enum
-{
- GTK_WRAP_NONE,
- GTK_WRAP_CHAR,
- GTK_WRAP_WORD
-} GtkWrapMode;
-
typedef struct _GtkTextAttributes GtkTextAttributes;
#define GTK_TYPE_TEXT_TAG (gtk_text_tag_get_type ())
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),