[brasero] Fix Bug #629190 - minor issues in gdbus conversion.
- From: Luis Medinas <lmedinas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] Fix Bug #629190 - minor issues in gdbus conversion.
- Date: Fri, 10 Sep 2010 11:11:27 +0000 (UTC)
commit 52338e2b136d828fec51800efd2870f7751e1751
Author: Luis Medinas <lmedinas gnome org>
Date: Thu Sep 9 18:39:31 2010 +0100
Fix Bug #629190 - minor issues in gdbus conversion.
Thank to Christian Persch for the help.
libbrasero-burn/burn-dbus.c | 11 ++---------
libbrasero-utils/brasero-pk.c | 2 +-
2 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/libbrasero-burn/burn-dbus.c b/libbrasero-burn/burn-dbus.c
index a936ac0..e8af3b7 100644
--- a/libbrasero-burn/burn-dbus.c
+++ b/libbrasero-burn/burn-dbus.c
@@ -91,7 +91,6 @@ brasero_inhibit_suspend (const char *reason)
guint cookie;
GError *error = NULL;
GVariant *res;
- GVariantType *type;
g_return_val_if_fail (reason != NULL, -1);
@@ -104,23 +103,17 @@ brasero_inhibit_suspend (const char *reason)
return -1;
}
- type = g_variant_type_new ("(u)");
res = g_dbus_connection_call_sync (conn,
GS_DBUS_SERVICE,
GS_DBUS_INHIBIT_PATH,
GS_DBUS_INHIBIT_INTERFACE,
"Inhibit",
- g_variant_new("(susu)",
- g_get_application_name (),
- 0,
- reason,
- 1 | 4),
- type,
+ NULL,
+ G_VARIANT_TYPE ("(u)"),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
&error);
- g_variant_type_free (type);
if (res == NULL) {
g_warning ("Failed to inhibit the system from suspending: %s",
diff --git a/libbrasero-utils/brasero-pk.c b/libbrasero-utils/brasero-pk.c
index 4327bce..29e217c 100644
--- a/libbrasero-utils/brasero-pk.c
+++ b/libbrasero-utils/brasero-pk.c
@@ -258,7 +258,7 @@ brasero_pk_install_file_requirement (BraseroPK *package,
g_dbus_proxy_call (priv->proxy,
"InstallProvideFiles",
- g_variant_new ("(u^asms)",
+ g_variant_new ("(uass)",
xid,
package,
"hide-confirm-search,hide-finished,hide-warning"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]