Re: [gtk-list] Re: bug in gtkwindow.c in 0.99.7




here is the patch in diff -C3 format:
------
*** gtk+-0.99.7/gtk/gtkwindow.c	Sat Mar 14 19:14:08 1998
--- gtk+-0.99.7.ok/gtk/gtkwindow.c	Thu Mar 19 08:45:50 1998
***************
*** 716,728 ****
    g_return_val_if_fail (GTK_IS_WINDOW (widget), FALSE);
    g_return_val_if_fail (event != NULL, FALSE);
    
    /* 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;
--- 716,729 ----
    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->handling_resize = TRUE;
    
    allocation.x = 0;

--------------------------------------------------------------------
Pierre HANSER                                        Alcatel Telecom
 Tel:    +33 3 88 67 65 27         1, route du Docteur A. Schweitzer
 Fax:    +33 3 88 67 77 25           F-67408 ILLKIRCH Cedex - FRANCE

 Email:  Pierre.Hanser@sxb.bsf.alcatel.fr



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