online-desktop r7264 - trunk/weblogindriver



Author: marinaz
Date: Tue Aug 26 23:21:47 2008
New Revision: 7264
URL: http://svn.gnome.org/viewvc/online-desktop?rev=7264&view=rev

Log:
Add event time to OpenAccountsDialog and OpenAccountsDialogWithTypes so that we can use it when we present the dialog, which in turn causes the dialog to show up above other applications.


Modified:
   trunk/weblogindriver/web-login-driver

Modified: trunk/weblogindriver/web-login-driver
==============================================================================
--- trunk/weblogindriver/web-login-driver	(original)
+++ trunk/weblogindriver/web-login-driver	Tue Aug 26 23:21:47 2008
@@ -1077,22 +1077,23 @@
     _logger.debug("in GetAllAccountTypes")
     return ONLINE_ACCOUNT_TYPES
 
-  @dbus.service.method(OA_BUS_IFACE_STR)
-  def OpenAccountsDialog(self):
+  @dbus.service.method(OA_BUS_IFACE_STR,
+                       in_signature="u")
+  def OpenAccountsDialog(self, event_time):
     global _dialog
     if _dialog:
       _dialog.destroy()
     _dialog = accounts_dialog.Dialog(None, self)    
-    _dialog.present() 
+    _dialog.present_with_time(event_time) 
 
   @dbus.service.method(OA_BUS_IFACE_STR,
-                       in_signature="as")
-  def OpenAccountsDialogWithTypes(self, account_types):
+                       in_signature="asu")
+  def OpenAccountsDialogWithTypes(self, account_types, event_time):
     global _dialog
     if _dialog:
       _dialog.destroy()
     _dialog = accounts_dialog.Dialog(account_types, self)    
-    _dialog.present() 
+    _dialog.present_with_time(event_time) 
 
 _driver = None
 _online_accounts = None



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