bigboard r7427 - in trunk/bigboard: . libbig stocks/self stocks/twitter



Author: marinaz
Date: Tue Aug 26 23:22:27 2008
New Revision: 7427
URL: http://svn.gnome.org/viewvc/bigboard?rev=7427&view=rev

Log:
Pass in the event time when we are opening the accounts dialog.


Modified:
   trunk/bigboard/google_stock.py
   trunk/bigboard/libbig/polling.py
   trunk/bigboard/stocks/self/portfoliomanager.py
   trunk/bigboard/stocks/twitter/TwitterStock.py

Modified: trunk/bigboard/google_stock.py
==============================================================================
--- trunk/bigboard/google_stock.py	(original)
+++ trunk/bigboard/google_stock.py	Tue Aug 26 23:22:27 2008
@@ -1,4 +1,4 @@
-import logging, dbus
+import logging, dbus, gtk
 import hippo
 import bigboard.google as google
 import bigboard.libbig.gutil as gutil
@@ -112,7 +112,7 @@
 
     def __open_login_dialog(self):
         if self.__onlineaccounts_proxy:
-            self.__onlineaccounts_proxy.OpenAccountsDialogWithTypes(["google"])
+            self.__onlineaccounts_proxy.OpenAccountsDialogWithTypes(["google"], gtk.get_current_event_time())
         else: 
             _logger.error("onlineaccounts proxy is not initialized, can't open the dialog for google accounts")    
 

Modified: trunk/bigboard/libbig/polling.py
==============================================================================
--- trunk/bigboard/libbig/polling.py	(original)
+++ trunk/bigboard/libbig/polling.py	Tue Aug 26 23:22:27 2008
@@ -1,4 +1,6 @@
-import gobject
+import gobject, logging
+
+_logger = logging.getLogger("bigboard.libbig.polling")
 
 class Task:
     def __init__(self, interval_msecs, initial_interval=-1):
@@ -19,6 +21,7 @@
     def __do_periodic_task_if_not_pending(self):
          # pending flag is to prevent "pile up" if we spend longer than the interval on the task
         if self.__pending: 
+            _logger.debug("Pending, returning")
             return True
 
         self.__pending = True

Modified: trunk/bigboard/stocks/self/portfoliomanager.py
==============================================================================
--- trunk/bigboard/stocks/self/portfoliomanager.py	(original)
+++ trunk/bigboard/stocks/self/portfoliomanager.py	Tue Aug 26 23:22:27 2008
@@ -293,7 +293,7 @@
     def __on_open_accounts_dialog(self):
         try:
             onlineaccounts_proxy = dbus.SessionBus().get_object('org.gnome.OnlineAccounts', '/onlineaccounts')
-            onlineaccounts_proxy.OpenAccountsDialog()
+            onlineaccounts_proxy.OpenAccountsDialog(gtk.get_current_event_time())
         except dbus.DBusException, e:
             _logger.error("onlineaccounts DBus service not available, can't open accounts dialog")
         self.__hide_reset()

Modified: trunk/bigboard/stocks/twitter/TwitterStock.py
==============================================================================
--- trunk/bigboard/stocks/twitter/TwitterStock.py	(original)
+++ trunk/bigboard/stocks/twitter/TwitterStock.py	Tue Aug 26 23:22:27 2008
@@ -285,7 +285,7 @@
  
     def __open_login_dialog(self):
         if self.__onlineaccounts_proxy:
-            self.__onlineaccounts_proxy.OpenAccountsDialogWithTypes([TYPE_TWITTER])
+            self.__onlineaccounts_proxy.OpenAccountsDialogWithTypes([TYPE_TWITTER], gtk.get_current_event_time())
         else: 
             _logger.error("onlineaccounts proxy is not initialized, can't open the dialog for twitter accounts")    
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]