summaryrefslogtreecommitdiff
path: root/poezio/windows/info_bar.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-04-02 01:23:51 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-06-12 15:31:15 +0100
commited5f7b18bd5c92269300e63706adae77a3bbe966 (patch)
tree1218b63c9bc6eae66c0c7b97deffe19f75f95f89 /poezio/windows/info_bar.py
parentb08688c7014d9e68ac26fe604dc5a48372c67167 (diff)
downloadpoezio-ed5f7b18bd5c92269300e63706adae77a3bbe966.tar.gz
poezio-ed5f7b18bd5c92269300e63706adae77a3bbe966.tar.bz2
poezio-ed5f7b18bd5c92269300e63706adae77a3bbe966.tar.xz
poezio-ed5f7b18bd5c92269300e63706adae77a3bbe966.zip
Remove the global Win._win_core, instead pass core to the two *GlobalInfoBar.
Diffstat (limited to 'poezio/windows/info_bar.py')
-rw-r--r--poezio/windows/info_bar.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/poezio/windows/info_bar.py b/poezio/windows/info_bar.py
index abd956cd..4790a76f 100644
--- a/poezio/windows/info_bar.py
+++ b/poezio/windows/info_bar.py
@@ -16,8 +16,9 @@ from . import Win
from theming import get_theme, to_curses_attr
class GlobalInfoBar(Win):
- def __init__(self):
+ def __init__(self, core):
Win.__init__(self)
+ self.core = core
def refresh(self):
log.debug('Refresh: %s', self.__class__.__name__)
@@ -62,8 +63,9 @@ class GlobalInfoBar(Win):
self._refresh()
class VerticalGlobalInfoBar(Win):
- def __init__(self, scr):
+ def __init__(self, core, scr):
Win.__init__(self)
+ self.core = core
self._win = scr
def refresh(self):