Update of /cvsroot/htoolkit/port/src/cbits/GTK
In directory sc8-pr-cvs1:/tmp/cvs-serv28222/src/cbits/GTK
Modified Files:
Window.c
Log Message:
Bugfix
Index: Window.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Window.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** Window.c 17 Oct 2003 23:22:55 -0000 1.40
--- Window.c 20 Oct 2003 18:11:34 -0000 1.41
***************
*** 879,891 ****
if (toplevel != gFrameWidget || gDocumentInterface == 1)
{
! GdkGeometry geometry;
! geometry.min_width = gFrameWidth;
! geometry.min_height = gFrameHeight;
! geometry.max_width = gFrameWidth;
! geometry.max_height = gFrameHeight;
! gtk_window_set_geometry_hints(GTK_WINDOW(toplevel), toplevel, &geometry,
GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE);
}
}
--- 879,898 ----
if (toplevel != gFrameWidget || gDocumentInterface == 1)
{
! GTK_WINDOW(toplevel)->allow_grow = (resizeable != FALSE);
! if (resizeable)
! gtk_window_set_geometry_hints(GTK_WINDOW(toplevel), toplevel, NULL, 0);
! else
! {
! GdkGeometry geometry;
! geometry.min_width = toplevel->allocation.width;
! geometry.min_height = toplevel->allocation.height;
! geometry.max_width = toplevel->allocation.width;
! geometry.max_height = toplevel->allocation.height;
!
! gtk_window_set_geometry_hints(GTK_WINDOW(toplevel), toplevel, &geometry,
GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE);
+ }
}
}
|