git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TTerminalWindow sixel support wip
[fanfix.git]
/
src
/
jexer
/
TStatusBar.java
diff --git
a/src/jexer/TStatusBar.java
b/src/jexer/TStatusBar.java
index 72a0ec6662163740385f887ecd701fcf5ae4c73f..98565d0f8c8c7d50c29ea86218156dbaa991049b 100644
(file)
--- a/
src/jexer/TStatusBar.java
+++ b/
src/jexer/TStatusBar.java
@@
-125,24
+125,26
@@
public class TStatusBar extends TWidget {
/**
* Public constructor.
*
/**
* Public constructor.
*
- * @param
parent parent widget
+ * @param
window the window associated with this status bar
* @param text text for the bar on the bottom row
*/
* @param text text for the bar on the bottom row
*/
- public TStatusBar(final TWi
dget parent
, final String text) {
+ public TStatusBar(final TWi
ndow window
, final String text) {
- // Set parent and window
- super(parent, false, 0, 0, text.length(), 1);
+ // TStatusBar is a parentless widget, because TApplication handles
+ // its drawing and event routing directly.
+ super(null, false, 0, 0, text.length(), 1);
this.text = text;
this.text = text;
+ setWindow(window);
}
/**
* Public constructor.
*
}
/**
* Public constructor.
*
- * @param
parent parent widget
+ * @param
window the window associated with this status bar
*/
*/
- public TStatusBar(final TWi
dget parent
) {
- this(
parent
, "");
+ public TStatusBar(final TWi
ndow window
) {
+ this(
window
, "");
}
// ------------------------------------------------------------------------
}
// ------------------------------------------------------------------------