[hamster-applet] calling show_toggle after showing the requested window as otherwise it seems to have some positionin
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] calling show_toggle after showing the requested window as otherwise it seems to have some positionin
- Date: Wed, 14 Jul 2010 12:25:58 +0000 (UTC)
commit 649ff8654053d1ff6a07eb6443117626dcfd3935
Author: Toms Bauģis <toms baugis gmail com>
Date: Wed Jul 14 13:22:54 2010 +0100
calling show_toggle after showing the requested window as otherwise it seems to have some positioning strangeness
src/hamster/applet.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/hamster/applet.py b/src/hamster/applet.py
index 39c242d..ea977b3 100755
--- a/src/hamster/applet.py
+++ b/src/hamster/applet.py
@@ -423,7 +423,7 @@ class HamsterApplet(object):
"""main window display and positioning"""
self.button.set_active(is_active)
- if not is_active:
+ if is_active == False:
self.window.hide()
return True
@@ -527,8 +527,8 @@ class HamsterApplet(object):
"""button events"""
def on_overview(self, menu_item):
- self.__show_toggle(False)
dialogs.overview.show(self.applet)
+ self.__show_toggle(False)
def show_overview(self, menu_item, verb):
return self.on_overview(menu_item)
@@ -540,8 +540,8 @@ class HamsterApplet(object):
dialogs.about.show(self.window)
def show_preferences(self, menu_item, verb):
- self.__show_toggle(False)
dialogs.prefs.show(self.applet)
+ self.__show_toggle(False)
"""signals"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]