|
From: <kr_...@us...> - 2003-10-01 22:30:02
|
Update of /cvsroot/htoolkit/port/src/cbits/GTK
In directory sc8-pr-cvs1:/tmp/cvs-serv32230/src/cbits/GTK
Modified Files:
GroupBox.c
Log Message:
better implementation for osGetGroupBoxReqSize
Index: GroupBox.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/GroupBox.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** GroupBox.c 1 Oct 2003 21:47:15 -0000 1.2
--- GroupBox.c 1 Oct 2003 22:29:59 -0000 1.3
***************
*** 8,12 ****
GtkWidget *groupbox;
! groupbox = gtk_frame_new("kkkk");
gtk_container_add(GTK_CONTAINER(groupbox), port_layout_new(NULL,NULL));
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), groupbox);
--- 8,12 ----
GtkWidget *groupbox;
! groupbox = gtk_frame_new("");
gtk_container_add(GTK_CONTAINER(groupbox), port_layout_new(NULL,NULL));
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), groupbox);
***************
*** 18,25 ****
void osGetGroupBoxBordersSize(WindowHandle groupbox, int *res)
{
! res [0] = 0;
! res [1] = 0;
! res [2] = 10;
! res [3] = 20;
}
--- 18,29 ----
void osGetGroupBoxBordersSize(WindowHandle groupbox, int *res)
{
! GtkRequisition requisition;
!
! gtk_widget_size_request (groupbox, &requisition);
!
! res[0] = 0;
! res[1] = 0;
! res[2] = requisition.width;
! res[3] = requisition.height;
}
|