about summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-09-29 04:16:59 +0200
committerhut <hut@lavabit.com>2011-09-29 04:16:59 +0200
commitf59cd305c79351930bc0105d9aebb547dddb3fd6 (patch)
tree92d116e969440a115dd12d73b49203ba533c4672 /ranger/core/actions.py
parent7b6fab79ff289aa8f11a974d9eea421fa1910ca7 (diff)
downloadranger-f59cd305c79351930bc0105d9aebb547dddb3fd6.tar.gz
gui.ui: de-bloating
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 05f81330..b61e514b 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -70,8 +70,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 			bad = True
 		text = str(text)
 		self.log.appendleft(text)
-		if hasattr(self.ui, 'notify'):
-			self.ui.notify(text, duration=duration, bad=bad)
+		self.ui.status.notify(text, duration=duration, bad=bad)
 
 	def redraw_window(self):
 		"""Redraw the window"""
@@ -244,8 +243,8 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 
 	def scroll(self, relative):
 		"""Scroll down by <relative> lines"""
-		if hasattr(self.ui, 'scroll'):
-			self.ui.scroll(relative)
+		if self.ui.browser and self.ui.browser.main_column:
+			self.ui.browser.main_column.scroll(relative)
 			self.env.cf = self.env.cwd.pointed_obj
 
 	def enter_dir(self, path, remember=False, history=True):