[kupfer] plugin.gnome_terminal: Declare Source.provides
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] plugin.gnome_terminal: Declare Source.provides
- Date: Wed, 9 Dec 2009 13:48:04 +0000 (UTC)
commit f79102a511789466a6cbd9c73c07b1ebe36cac4d
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Wed Dec 9 14:46:37 2009 +0100
plugin.gnome_terminal: Declare Source.provides
Without the provides method, Kupfer must assume the terminal source
may return leaves of *any type* and thus will show an arrow for
content for the Terminal, in for example the Open With... ->
Application list
kupfer/plugin/gnome_terminal.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/gnome_terminal.py b/kupfer/plugin/gnome_terminal.py
index 442c92b..eb12575 100644
--- a/kupfer/plugin/gnome_terminal.py
+++ b/kupfer/plugin/gnome_terminal.py
@@ -65,6 +65,9 @@ class SessionsSource(AppLeafContentMixin, Source, PicklingHelperMixin):
def should_sort_lexically(self):
return True
+ def provides(self):
+ yield Terminal
+
# Local Variables: ***
# python-indent: 8 ***
# indent-tabs-mode: t ***
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]