Update of /cvsroot/htoolkit/port/src/cbits/GTK
In directory sc8-pr-cvs1:/tmp/cvs-serv10254/src/cbits/GTK
Modified Files:
Button.c CheckBox.c EditBox.c GroupBox.c Label.c ListBox.c
Notebook.c PopUp.c ProgressBar.c RadioBox.c Slider.c
Log Message:
Any control must be hidden by default. The control will be show if it is
contained in the window layout
Index: Button.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Button.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** Button.c 2 Oct 2003 22:31:39 -0000 1.10
--- Button.c 8 Oct 2003 22:21:57 -0000 1.11
***************
*** 13,17 ****
NULL);
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), button);
- gtk_widget_show(button);
return button;
--- 13,16 ----
Index: CheckBox.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/CheckBox.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** CheckBox.c 2 Oct 2003 22:31:39 -0000 1.9
--- CheckBox.c 8 Oct 2003 22:21:57 -0000 1.10
***************
*** 12,16 ****
GTK_SIGNAL_FUNC(handleControlCommand),
NULL);
- gtk_widget_show(check_btn);
return check_btn;
--- 12,15 ----
Index: EditBox.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/EditBox.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** EditBox.c 7 Oct 2003 20:20:42 -0000 1.13
--- EditBox.c 8 Oct 2003 22:21:57 -0000 1.14
***************
*** 10,14 ****
GTK_ENTRY(entry)->is_cell_renderer = TRUE;
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), entry);
! gtk_widget_show(entry);
return entry;
};
--- 10,14 ----
GTK_ENTRY(entry)->is_cell_renderer = TRUE;
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), entry);
!
return entry;
};
Index: GroupBox.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/GroupBox.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** GroupBox.c 4 Oct 2003 17:04:48 -0000 1.4
--- GroupBox.c 8 Oct 2003 22:21:57 -0000 1.5
***************
*** 6,15 ****
WindowHandle osCreateGroupBox(WindowHandle window)
{
! 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);
- gtk_widget_show_all(groupbox);
return groupbox;
--- 6,16 ----
WindowHandle osCreateGroupBox(WindowHandle window)
{
! GtkWidget *groupbox, *layout;
+ layout = port_layout_new(NULL,NULL);
groupbox = gtk_frame_new("");
! gtk_container_add(GTK_CONTAINER(groupbox), layout);
! gtk_widget_show(layout);
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), groupbox);
return groupbox;
Index: Label.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Label.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Label.c 2 Oct 2003 22:31:39 -0000 1.9
--- Label.c 8 Oct 2003 22:21:57 -0000 1.10
***************
*** 11,15 ****
gtk_label_set_line_wrap(GTK_LABEL(text), gtk_false());
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), text);
! gtk_widget_show(text);
return text;
};
--- 11,15 ----
gtk_label_set_line_wrap(GTK_LABEL(text), gtk_false());
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), text);
!
return text;
};
Index: ListBox.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/ListBox.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** ListBox.c 1 Oct 2003 21:47:15 -0000 1.9
--- ListBox.c 8 Oct 2003 22:21:57 -0000 1.10
***************
*** 41,44 ****
--- 41,45 ----
gtk_container_add(GTK_CONTAINER(sw), lbox);
+ gtk_widget_show(lbox);
g_signal_connect (G_OBJECT(gtk_tree_view_get_selection(GTK_TREE_VIEW(lbox))), "changed",
***************
*** 47,51 ****
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), sw);
! gtk_widget_show_all(sw);
return sw;
};
--- 48,52 ----
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), sw);
!
return sw;
};
Index: Notebook.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Notebook.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Notebook.c 4 Oct 2003 17:04:48 -0000 1.7
--- Notebook.c 8 Oct 2003 22:21:57 -0000 1.8
***************
*** 24,28 ****
gtk_notebook_popup_enable(GTK_NOTEBOOK(notebook));
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), notebook);
- gtk_widget_show(notebook);
return notebook;
--- 24,27 ----
Index: PopUp.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/PopUp.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** PopUp.c 1 Oct 2003 21:47:15 -0000 1.7
--- PopUp.c 8 Oct 2003 22:21:57 -0000 1.8
***************
*** 20,24 ****
popup);
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), popup);
! gtk_widget_show(popup);
return popup;
};
--- 20,24 ----
popup);
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), popup);
!
return popup;
};
Index: ProgressBar.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/ProgressBar.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ProgressBar.c 1 Oct 2003 21:47:15 -0000 1.3
--- ProgressBar.c 8 Oct 2003 22:21:57 -0000 1.4
***************
*** 12,16 ****
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), bar);
- gtk_widget_show(bar);
return bar;
--- 12,15 ----
***************
*** 26,30 ****
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), bar);
- gtk_widget_show(bar);
return bar;
--- 25,28 ----
Index: RadioBox.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/RadioBox.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** RadioBox.c 2 Oct 2003 22:31:39 -0000 1.10
--- RadioBox.c 8 Oct 2003 22:21:57 -0000 1.11
***************
*** 14,18 ****
GTK_SIGNAL_FUNC(handleControlCommand),
NULL);
- gtk_widget_show(radio_btn);
return radio_btn;
--- 14,17 ----
Index: Slider.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Slider.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Slider.c 1 Oct 2003 21:47:15 -0000 1.3
--- Slider.c 8 Oct 2003 22:21:57 -0000 1.4
***************
*** 18,23 ****
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), slider);
- gtk_widget_show(slider);
-
return slider;
};
--- 18,21 ----
***************
*** 32,36 ****
slider);
port_layout_put(PORT_LAYOUT(GTK_BIN(window)->child), slider);
- gtk_widget_show(slider);
return slider;
--- 30,33 ----
|