[kupfer/mallard-documentation: 2/7] plugin.core: Add Kupfer Help item to Kupfer Source
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer/mallard-documentation: 2/7] plugin.core: Add Kupfer Help item to Kupfer Source
- Date: Mon, 7 Dec 2009 09:35:35 +0000 (UTC)
commit d0946a897c67e7d36988e48d37bf1474b59344a2
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Dec 7 03:37:57 2009 +0100
plugin.core: Add Kupfer Help item to Kupfer Source
kupfer/plugin/core.py | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/core.py b/kupfer/plugin/core.py
index 0d607cc..a5a5247 100644
--- a/kupfer/plugin/core.py
+++ b/kupfer/plugin/core.py
@@ -205,6 +205,17 @@ class About (RunnableLeaf):
def get_icon_name(self):
return gtk.STOCK_ABOUT
+class Help (RunnableLeaf):
+ def __init__(self, name=None):
+ if not name: name = _("Kupfer Help")
+ super(Help, self).__init__(name=name)
+ def run(self):
+ kupferui.show_help()
+ def get_description(self):
+ return _("Get help with Kupfer")
+ def get_icon_name(self):
+ return "help-browser"
+
class Preferences (RunnableLeaf):
def __init__(self, name=None):
if not name: name = _("Kupfer Preferences")
@@ -225,8 +236,9 @@ class KupferSource (AppLeafContentMixin, Source):
def is_dynamic(self):
return True
def get_items(self):
- yield About()
yield Preferences()
+ yield Help()
+ yield About()
yield Quit()
if _is_debug():
yield DebugRestart()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]