Update of /cvsroot/htoolkit/port/src/cbits/GTK
In directory sc8-pr-cvs1:/tmp/cvs-serv14318/src/cbits/GTK
Modified Files:
Util.c
Log Message:
bugfix
Index: Util.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Util.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Util.c 30 Mar 2003 18:49:07 -0000 1.11
--- Util.c 2 Apr 2003 19:19:15 -0000 1.12
***************
*** 116,125 ****
if (gDocumentInterface == 2)
{
GtkWidget *label;
!
! label = gtk_notebook_get_tab_label(GTK_NOTEBOOK(gClientWidget),gtk_notebook_get_nth_page(GTK_NOTEBOOK(gClientWidget),gtk_notebook_get_current_page(GTK_NOTEBOOK(gClientWidget))));
! gWindowName = gtk_label_get_text(GTK_LABEL(label));
}
!
if (gWindowName && *gWindowName)
{
--- 116,135 ----
if (gDocumentInterface == 2)
{
+ int index;
GtkWidget *label;
!
! index = gtk_notebook_get_current_page(GTK_NOTEBOOK(gClientWidget));
!
! if (index > 0)
! {
! label = gtk_notebook_get_tab_label(GTK_NOTEBOOK(gClientWidget),gtk_notebook_get_nth_page(GTK_NOTEBOOK(gClientWidget),index));
! gWindowName = gtk_label_get_text(GTK_LABEL(label));
! }
! else
! {
! gWindowName = NULL;
! }
}
!
if (gWindowName && *gWindowName)
{
|