From: <kr_...@us...> - 2003-10-20 23:09:37
|
Update of /cvsroot/htoolkit/port/src/cbits/GTK In directory sc8-pr-cvs1:/tmp/cvs-serv6184/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.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** Window.c 20 Oct 2003 18:19:23 -0000 1.42 --- Window.c 20 Oct 2003 19:11:33 -0000 1.43 *************** *** 879,884 **** 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); --- 879,882 ---- *************** *** 887,894 **** 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, --- 885,902 ---- GdkGeometry geometry; ! if (toplevel != gFrameWidget) ! { ! geometry.min_width = toplevel->allocation.width; ! geometry.min_height = toplevel->allocation.height; ! geometry.max_width = toplevel->allocation.width; ! geometry.max_height = toplevel->allocation.height; ! } ! else ! { ! 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, |