[hamster-applet] lost the menu while doing the big shuffle (yay!)
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Subject: [hamster-applet] lost the menu while doing the big shuffle (yay!)
- Date: Thu, 18 Jun 2009 12:41:05 -0400 (EDT)
commit 2a32e0f584681fe30176b42a7ef1cb5ee13d14f7
Author: Toms Bauģis <toms baugis gmail com>
Date: Thu Jun 18 17:40:39 2009 +0100
lost the menu while doing the big shuffle (yay!)
hamster/applet.py | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/hamster/applet.py b/hamster/applet.py
index 1ad5309..0162af3 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -218,7 +218,14 @@ class HamsterApplet(object):
self.button.connect('toggled', self.on_toggle)
self.applet.add(self.button)
-
+ self.applet.setup_menu_from_file (runtime.data_dir,
+ "Hamster_Applet.xml",
+ None,
+ [("about", self.on_about),
+ ("overview", self.show_overview),
+ ("preferences", self.show_preferences),
+ ])
+
# load window of activity switcher and todays view
self._gui = stuff.load_ui_file("applet.ui")
self.window = self._gui.get_object('hamster-window')
@@ -259,11 +266,11 @@ class HamsterApplet(object):
gobject.timeout_add_seconds(60, self.refresh_hamster)
-
runtime.dispatcher.add_handler('panel_visible', self.__show_toggle)
runtime.dispatcher.add_handler('activity_updated', self.after_activity_update)
runtime.dispatcher.add_handler('day_updated', self.after_fact_update)
+
self._gui.connect_signals(self)
# init hotkey
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]