[PolicyKit-gnome] Don't use deprecated polkit API



commit b229c3511aa1e6fe0056f2cbc3df2d338e722f8b
Author: David Zeuthen <davidz redhat com>
Date:   Thu Mar 3 13:44:01 2011 -0500

    Don't use deprecated polkit API
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/main.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 496bbc7..a6b3de0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -83,9 +83,11 @@ main (int argc, char **argv)
     }
 
   error = NULL;
-  if (!polkit_agent_register_listener (listener,
+  if (!polkit_agent_listener_register (listener,
+                                       POLKIT_AGENT_REGISTER_FLAGS_NONE,
                                        session,
                                        "/org/gnome/PolicyKit1/AuthenticationAgent",
+                                       NULL, /* GCancellable */
                                        &error))
     {
       g_printerr ("Cannot register authentication agent: %s\n", error->message);



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