this.addInitMyVars();
this.addWrappedProperties();
this.addChildren();
+ this.addAutoShow(); // autoshow menuitems
+
this.addInit();
this.addListeners();
this.addEndCtor();
+ }
+ public static Gee.ArrayList<string> menuitem_children = null;
+
+ void addAutoShow()
+ {
+ if (menuitem_children == null) {
+ menuitem_children = new Gee.ArrayList<string>();
+ menuitem_children.add("Gtk.MenuItem");
+ var gir = this.file.project.palete.getClass("Gtk.MenuItem");
+ foreach(var impl in gir.implementations) {
+ menuitem_children.add(impl);
+ }
+ }
+
+ if (menuitem_children.contains(this.node.fqn())) {
+ this.addLine(this.ipad + "this.el.show_all();");
+
+ }
}
void addInitMyVars()
continue;
}
this.generic_child_widgets.add(fqn);
- this.add_special_children(fqn, "Gtk.Menu", "_menu"); // fake propety
+
+
+
+ //this.add_special_children(fqn, "Gtk.Menu", "_menu"); // fake propety
}
}