policykit-gnome r93 - trunk/src
- From: davidz svn gnome org
- To: svn-commits-list gnome org
- Subject: policykit-gnome r93 - trunk/src
- Date: Tue, 27 Jan 2009 19:11:57 +0000 (UTC)
Author: davidz
Date: Tue Jan 27 19:11:57 2009
New Revision: 93
URL: http://svn.gnome.org/viewvc/policykit-gnome?rev=93&view=rev
Log:
update for API changes in libpolkitagent
Modified:
trunk/src/main.c
Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c (original)
+++ trunk/src/main.c Tue Jan 27 19:11:57 2009
@@ -454,7 +454,6 @@
main (int argc, char **argv)
{
GMainLoop *loop;
- GError *error;
int ret;
g_type_init ();
@@ -474,17 +473,9 @@
authority = polkit_authority_get ();
- error = NULL;
agent = polkit_agent_authentication_agent_new (begin_authentication_func,
cancel_authentication_func,
- NULL,
- &error);
- if (agent == NULL)
- {
- g_warning ("Error registering authentication agent: %s", error->message);
- g_error_free (error);
- goto out;
- }
+ NULL);
loop = g_main_loop_new (NULL, FALSE);
@@ -492,7 +483,6 @@
ret = 0;
- out:
if (agent != NULL)
g_object_unref (agent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]