}
if (this.node.fqn() == "Gtk.NotebookPage" && nb_child != "") {
- this.addLine(@"$(ipad)notebook.el.append_page( $(nb_child, $(nb_label));");
+ if (nb_tab == "" && this.node.hasProp("tab_label")) {
+ nb_tab = "new Gtk.Label(this.tab_label)";
+ return;
+ }
+ }
+ if (nb_menu == "" && nb_tab == "") {
+
+ this.addLine(@"$(ipad)notebook.el.append_page( $(nb_child) );");
+ return;
+ }
+ if (nb_menu == "") {
+ this.addLine(@"$(ipad)notebook.el.append_page( $(nb_child) , $(nb_tab) );");
+ return;
+ }
+ this.addLine(@"$(ipad)notebook.el.append_page_menu( $(nb_child) , $(nb_tab), $(nb_menu) );");
}