From 9f36be13fa069a2a14fda8f2812269c4227d532f Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 27 Nov 2009 21:57:05 +0100 Subject: rename WStatusBar to WTitleBar --- ranger/defaultui.py | 8 ++++---- ranger/wstatusbar.py | 12 ------------ ranger/wtitlebar.py | 12 ++++++++++++ 3 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 ranger/wstatusbar.py create mode 100644 ranger/wtitlebar.py diff --git a/ranger/defaultui.py b/ranger/defaultui.py index 70ce75ff..36eee49d 100644 --- a/ranger/defaultui.py +++ b/ranger/defaultui.py @@ -1,11 +1,11 @@ import ranger.ui from ranger.wdisplay import WDisplay -from ranger.wstatusbar import WStatusBar +from ranger.wtitlebar import WTitleBar class DefaultUI(ranger.ui.UI): def setup(self): - self.statusbar = WStatusBar(self.win) - self.add_widget(self.statusbar) + self.titlebar = WTitleBar(self.win) + self.add_widget(self.titlebar) self.displays = [ WDisplay(self.win, -2), @@ -35,5 +35,5 @@ class DefaultUI(ranger.ui.UI): leftborder += wid i += 1 - self.statusbar.setdim(0, 0, 1, x) + self.titlebar.setdim(0, 0, 1, x) diff --git a/ranger/wstatusbar.py b/ranger/wstatusbar.py deleted file mode 100644 index e68fb241..00000000 --- a/ranger/wstatusbar.py +++ /dev/null @@ -1,12 +0,0 @@ -import curses -import ranger.widget - -class WStatusBar(ranger.widget.Widget): - def feed_env(self, env): - self.pathway = env.pathway - - def draw(self): - self.win.move(self.y, self.x) - for path in self.pathway: - currentx = self.win.getyx()[1] - self.win.addnstr(path.basename + ' / ', (self.wid - currentx)) diff --git a/ranger/wtitlebar.py b/ranger/wtitlebar.py new file mode 100644 index 00000000..e5cdb313 --- /dev/null +++ b/ranger/wtitlebar.py @@ -0,0 +1,12 @@ +import curses +import ranger.widget + +class WTitleBar(ranger.widget.Widget): + def feed_env(self, env): + self.pathway = env.pathway + + def draw(self): + self.win.move(self.y, self.x) + for path in self.pathway: + currentx = self.win.getyx()[1] + self.win.addnstr(path.basename + ' / ', (self.wid - currentx)) -- cgit 1.4.1-2-gfad0