Update of /cvsroot/htoolkit/port/src/cbits/GTK
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26746/src/cbits/GTK
Modified Files:
Splitter.c
Log Message:
Bugfix
Index: Splitter.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Splitter.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Splitter.c 29 May 2004 23:00:19 -0000 1.1
--- Splitter.c 31 May 2004 20:45:33 -0000 1.2
***************
*** 15,22 ****
--- 15,24 ----
gtk_widget_show_all(panes[0]);
gtk_paned_add1(GTK_PANED(paned), panes[0]);
+ gtk_container_child_set(GTK_CONTAINER(paned), panes[0], "shrink", FALSE, NULL);
panes[1] = create_generic_window();
gtk_widget_show_all(panes[1]);
gtk_paned_add2(GTK_PANED(paned), panes[1]);
+ gtk_container_child_set(GTK_CONTAINER(paned), panes[1], "shrink", FALSE, NULL);
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), paned);
***************
*** 37,42 ****
void osGetSplitterRange(WindowHandle splitter, int *range)
{
! range[0] = 0;
! range[1] = GTK_IS_HPANED(splitter) ? splitter->allocation.width : splitter->allocation.height;
}
--- 39,44 ----
void osGetSplitterRange(WindowHandle splitter, int *range)
{
! range[0] = GTK_PANED(splitter)->min_position;
! range[1] = GTK_PANED(splitter)->max_position;
}
|