hamster-applet r631 - in trunk: data hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r631 - in trunk: data hamster
- Date: Fri, 21 Nov 2008 00:59:11 +0000 (UTC)
Author: tbaugis
Date: Fri Nov 21 00:59:10 2008
New Revision: 631
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=631&view=rev
Log:
* overview menu item, fixes bug 558096, patch by Daniel Watkins
* fixed also bug 561690 - now the window does not dissappear anymore
Modified:
trunk/data/Hamster_Applet.xml
trunk/hamster/applet.py
Modified: trunk/data/Hamster_Applet.xml
==============================================================================
--- trunk/data/Hamster_Applet.xml (original)
+++ trunk/data/Hamster_Applet.xml Fri Nov 21 00:59:10 2008
@@ -1,6 +1,7 @@
<Root>
<popups>
<popup name="button3">
+ <menuitem name="Overview" verb="overview" _label="_Overview"/>
<menuitem name="Preferences" verb="preferences" _label="_Preferences" pixtype="stock" pixname="gtk-preferences"/>
<menuitem name="About" verb="about" _label="_About" pixtype="stock" pixname="gtk-about" />
</popup>
Modified: trunk/hamster/applet.py
==============================================================================
--- trunk/hamster/applet.py (original)
+++ trunk/hamster/applet.py Fri Nov 21 00:59:10 2008
@@ -242,6 +242,7 @@
SHARED_DATA_DIR, "Hamster_Applet.xml",
None, [
("about", self.on_about),
+ ("overview", self.show_overview),
("preferences", self.show_preferences),
])
@@ -510,6 +511,11 @@
else:
self.activity_list.child.set_text('')
+ # doing unstick / stick here, because sometimes while switching
+ # between workplaces window still manages to dissappear
+ self.window.unstick()
+ self.window.stick() #show on all desktops
+
gobject.idle_add(self._delayed_display)
def _delayed_display(self):
@@ -580,6 +586,9 @@
stats_viewer = StatsViewer()
stats_viewer.show()
+ def show_overview(self, menu_item, verb):
+ return self.on_overview(menu_item)
+
def on_custom_fact(self, menu_item):
from hamster.add_custom_fact import CustomFactController
custom_fact = CustomFactController()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]