[gnome-bluetooth] wizard: Micro optimisation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] wizard: Micro optimisation
- Date: Mon, 25 Nov 2013 11:33:47 +0000 (UTC)
commit 82dbfde03f92e2d80047deb47e4170ef4e409d73
Author: Bastien Nocera <hadess hadess net>
Date: Thu Nov 21 08:58:40 2013 +0100
wizard: Micro optimisation
wizard/main.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 3c9ed2d..1e385f8 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -286,8 +286,7 @@ does_not_match_cb (GtkButton *button,
invocation = g_object_get_data (G_OBJECT (button), "invocation");
error = g_error_new (AGENT_ERROR, AGENT_ERROR_REJECT,
"Agent callback cancelled");
- g_dbus_method_invocation_return_gerror (invocation, error);
- g_error_free (error);
+ g_dbus_method_invocation_take_error (invocation, error);
g_object_set_data (G_OBJECT(does_not_match_button), "invocation", NULL);
g_object_set_data (G_OBJECT(matches_button), "invocation", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]