[kupfer/mallard-documentation: 4/7] browser: Add About Kupfer to icon menu
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer/mallard-documentation: 4/7] browser: Add About Kupfer to icon menu
- Date: Mon, 7 Dec 2009 09:35:45 +0000 (UTC)
commit 7267817ca97838fe5e5b76852885431c56153c90
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Dec 7 03:26:30 2009 +0100
browser: Add About Kupfer to icon menu
kupfer/browser.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/browser.py b/kupfer/browser.py
index 89bff5f..3083d2f 100644
--- a/kupfer/browser.py
+++ b/kupfer/browser.py
@@ -1317,6 +1317,10 @@ class WindowController (pretty.OutputMixin):
from kupfer import kupferui
kupferui.show_help()
return True
+ def about_callback(menuitem):
+ from kupfer import kupferui
+ kupferui.show_about_dialog()
+ return True
def quit_callback(menuitem):
self.quit()
return True
@@ -1325,10 +1329,14 @@ class WindowController (pretty.OutputMixin):
menu_prefs.connect("activate", prefs_callback)
menu_help = gtk.ImageMenuItem(gtk.STOCK_HELP)
menu_help.connect("activate", help_callback)
+ menu_about = gtk.ImageMenuItem(gtk.STOCK_ABOUT)
+ menu_about.connect("activate", about_callback)
menu_quit = gtk.ImageMenuItem(gtk.STOCK_QUIT)
menu_quit.connect("activate", quit_callback)
menu.append(menu_prefs)
menu.append(menu_help)
+ menu.append(menu_about)
+ menu.append(gtk.SeparatorMenuItem())
menu.append(menu_quit)
menu.show_all()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]