|
From: <kr_...@us...> - 2003-07-05 08:53:39
|
Update of /cvsroot/htoolkit/port/src/cbits/GTK
In directory sc8-pr-cvs1:/tmp/cvs-serv12347/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.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** Window.c 5 Jul 2003 06:42:38 -0000 1.18
--- Window.c 5 Jul 2003 08:53:36 -0000 1.19
***************
*** 233,238 ****
static void window_size_allocate_handler (GtkWidget *widget, GtkAllocation *allocation, gpointer user_data)
{
! handleWindowResize(widget,allocation->width-4,allocation->height-4);
! handleWindowReLayout(widget);
};
--- 233,246 ----
static void window_size_allocate_handler (GtkWidget *widget, GtkAllocation *allocation, gpointer user_data)
{
! static GtkWidget *last_widget = NULL;
! static GtkAllocation last_allocation = {0,0};
! if (last_widget != widget || last_allocation.width != allocation->width || last_allocation.height != allocation->height)
! {
! last_allocation = *allocation;
! last_widget = widget;
!
! handleWindowResize(widget,allocation->width-4,allocation->height-4);
! handleWindowReLayout(widget);
! }
};
***************
*** 583,587 ****
--- 591,597 ----
void osSetWindowDomainSize(WindowHandle window, int cx, int cy)
{
+ gtk_window_set_resizable(GTK_WINDOW(gFrameWidget), FALSE);
gtk_widget_set_size_request(GTK_BIN(GTK_BIN(window)->child)->child,cx,cy);
+ gtk_window_set_resizable(GTK_WINDOW(gFrameWidget), TRUE);
}
|