this.parent = parent;
this.window = parent.window;
children = new ArrayList<TWidget>();
- parent.addChild(this);
+
+ // Do not add TStatusBars, they are drawn by TApplication
+ if (this instanceof TStatusBar) {
+ } else {
+ parent.addChild(this);
+ }
}
/**
this.parent = parent;
this.window = parent.window;
children = new ArrayList<TWidget>();
- parent.addChild(this);
+
+ // Do not add TStatusBars, they are drawn by TApplication
+ if (this instanceof TStatusBar) {
+ } else {
+ parent.addChild(this);
+ }
this.x = x;
this.y = y;
public static final int MID_HELP_ACTIVE_FILE = 45;
public static final int MID_ABOUT = 46;
+ // Other
+ public static final int MID_REPAINT = 50;
+
/**
* Public constructor.
*
label = i18n.getString("menuHelpAbout");
break;
+ case MID_REPAINT:
+ label = i18n.getString("menuRepaintDesktop");
+ break;
+
default:
throw new IllegalArgumentException("Invalid menu ID: " + id);
}