network-manager-applet r1250 - in trunk: . src/connection-editor
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: network-manager-applet r1250 - in trunk: . src/connection-editor
- Date: Sat, 4 Apr 2009 15:28:09 +0000 (UTC)
Author: dcbw
Date: Sat Apr 4 15:28:09 2009
New Revision: 1250
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=1250&view=rev
Log:
2009-04-04 Dan Williams <dcbw redhat com>
* src/connection-editor/ce-page.c
- (get_secrets_cb): don't mix up the PolicyKit error and the error
that could be returned from pk_helper_obtain_auth()
Modified:
trunk/ChangeLog
trunk/src/connection-editor/ce-page.c
Modified: trunk/src/connection-editor/ce-page.c
==============================================================================
--- trunk/src/connection-editor/ce-page.c (original)
+++ trunk/src/connection-editor/ce-page.c Sat Apr 4 15:28:09 2009
@@ -210,17 +210,17 @@
get_secrets_cb (DBusGProxy *proxy, DBusGProxyCall *call, gpointer user_data)
{
CEPage *self = user_data;
+ GError *pk_error = NULL;
GError *error = NULL;
GHashTable *settings = NULL, *setting_hash;
gboolean do_signal = TRUE;
- if (!dbus_g_proxy_end_call (proxy, call, &error,
+ if (!dbus_g_proxy_end_call (proxy, call, &pk_error,
DBUS_TYPE_G_MAP_OF_MAP_OF_VARIANT, &settings,
G_TYPE_INVALID)) {
- if (pk_helper_is_permission_denied_error (error)) {
+ if (pk_helper_is_permission_denied_error (pk_error)) {
/* If permission was denied, try to authenticate */
- g_clear_error (&error);
- if (pk_helper_obtain_auth (error, self->parent_window, try_secrets_again, self, &error))
+ if (pk_helper_obtain_auth (pk_error, self->parent_window, try_secrets_again, self, &error))
do_signal = FALSE; /* 'secrets' signal will happen after auth result */
}
} else {
@@ -242,6 +242,7 @@
if (do_signal)
emit_initialized (self, error);
+ g_clear_error (&error);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]