0.99.7: gtk_window_configure_event: trivial bug



Here's the obvious patch.

/assar
--- gtk/gtkwindow.c	1998/03/15 07:26:37	1.1
+++ gtk/gtkwindow.c	1998/03/15 07:26:48
@@ -716,13 +716,14 @@
   g_return_val_if_fail (GTK_IS_WINDOW (widget), FALSE);
   g_return_val_if_fail (event != NULL, FALSE);
   
+  window = GTK_WINDOW (widget);
+
   /* If the window was merely moved, do nothing */
   if ((widget->allocation.width == event->width) &&
       (widget->allocation.height == event->height) &&
       (window->resize_count == 0))
     return FALSE;
   
-  window = GTK_WINDOW (widget);
   window->handling_resize = TRUE;
   
   allocation.x = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]