summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-05-13 15:18:15 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-05-13 15:18:15 -0400
commiteb5b87ce0fb0a7ea1e27a4fb7c7c21fca983d881 (patch)
treee01763dcdb6101e022fb0f77a535ede3fa98fe70
parentb0f72ced51c853a79ce887c0ad9bd5860a776d20 (diff)
do first window activate after dialog fully visible
-rwxr-xr-xpolkit-efl-authentication-agent-18
1 files changed, 7 insertions, 1 deletions
diff --git a/polkit-efl-authentication-agent-1 b/polkit-efl-authentication-agent-1
index 1675c9c..6e3d6a6 100755
--- a/polkit-efl-authentication-agent-1
+++ b/polkit-efl-authentication-agent-1
@@ -398,6 +398,10 @@ class AuthenticationDialog(Window):
398 398
399 self.resize_object_add(layout) 399 self.resize_object_add(layout)
400 400
401 def show_done_cb(*args):
402 log.debug("Dialog now visible")
403 self.activate();
404
401 def hide_done_cb(*args): 405 def hide_done_cb(*args):
402 log.debug("Dialog now hidden, deleting") 406 log.debug("Dialog now hidden, deleting")
403 self.hiding = False 407 self.hiding = False
@@ -416,6 +420,9 @@ class AuthenticationDialog(Window):
416 layout.focus = True 420 layout.focus = True
417 421
418 layout.signal_callback_add( 422 layout.signal_callback_add(
423 "polkit,show,done", "polkit", show_done_cb
424 )
425 layout.signal_callback_add(
419 "polkit,hide,done", "polkit", hide_done_cb 426 "polkit,hide,done", "polkit", hide_done_cb
420 ) 427 )
421 layout.signal_callback_add( 428 layout.signal_callback_add(
@@ -525,7 +532,6 @@ class AuthenticationDialog(Window):
525 layout.show() 532 layout.show()
526 layout.focus = True 533 layout.focus = True
527 self.show() 534 self.show()
528 self.activate()
529 535
530 def ask_password(self, func, exe_obj): 536 def ask_password(self, func, exe_obj):
531 log.debug("Displaying password entry") 537 log.debug("Displaying password entry")