[X2go-Commits] pyhoca-gui.git - master (branch) updated: 0.1.0.10-201-gd580f34

X2Go dev team git-admin at x2go.org
Sat Apr 14 15:32:33 CEST 2012


The branch, master has been updated
       via  d580f3416dcf16828c77c2ffd41b4a2e640d07c1 (commit)
      from  a5e98b6ee29ae9f7a4614e0f254910666fad4154 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d580f3416dcf16828c77c2ffd41b4a2e640d07c1
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sat Apr 14 15:32:08 2012 +0200

    Add timeout as **kwarg for prepare method in the Windows notification API.

-----------------------------------------------------------------------

Summary of changes:
 debian/changelog       |    2 ++
 pyhoca/wxgui/notify.py |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 1b3be61..f174201 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -102,6 +102,8 @@ pyhoca-gui (0.1.2.0-0~x2go1) UNRELEASED; urgency=low
     - Fix folder path extraction from session profile config if client-side
       folders contain a Windows drive letter.
     - Update license information and source download location in About-Window.
+    - Add timeout as **kwarg for prepare method in the Windows notification
+      API.
   * Depend on Python X2Go 0.1.2.0.
   * Install GNOME icons via dh_links.
   * Install X2Go icons with explicit install paths.
diff --git a/pyhoca/wxgui/notify.py b/pyhoca/wxgui/notify.py
index 523ce47..d909d6f 100644
--- a/pyhoca/wxgui/notify.py
+++ b/pyhoca/wxgui/notify.py
@@ -92,7 +92,6 @@ class libnotify_NotifierPopup(object):
             if not n.show():
                 raise PyHocaNotificationException('could not notify user')
 
-
     def Close(self):
         pass
 
@@ -110,13 +109,15 @@ class notificationmessage_NotifierPopup(object):
         self._PyHocaGUI = _about._PyHocaGUI
         self._pyhoca_logger = self._PyHocaGUI._pyhoca_logger
 
-    def prepare(self, context, title=None, text=None, icon=None):
+    def prepare(self, context, title=None, text=None, icon=None, timeout=None):
         if title is not None:
             self.title[context] = title
         if text is not None:
             self.text[context] = text
         if icon is not None:
             self.icon[context] = icon
+        if timeout is not None:
+            self.timeout[context] = timeout
 
     def send(self, title=None, text=None, context=None, icon=None, timeout=8000):
         if context is not None:


hooks/post-receive
-- 
pyhoca-gui.git (Python X2Go Client (wxPython GUI))

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "pyhoca-gui.git" (Python X2Go Client (wxPython GUI)).




More information about the x2go-commits mailing list