[gnome-disk-utility/udisks2-port] Use udisks_client_settle() to ensure that created object exists
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Use udisks_client_settle() to ensure that created object exists
- Date: Wed, 26 Oct 2011 19:01:36 +0000 (UTC)
commit 59d4342cb21a28caa4a4c1fe32d327e011ace4af
Author: David Zeuthen <davidz redhat com>
Date: Wed Oct 26 14:59:36 2011 -0400
Use udisks_client_settle() to ensure that created object exists
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gduwindow.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/palimpsest/gduwindow.c b/src/palimpsest/gduwindow.c
index 913035a..15ef045 100644
--- a/src/palimpsest/gduwindow.c
+++ b/src/palimpsest/gduwindow.c
@@ -509,8 +509,9 @@ loop_setup_cb (UDisksManager *manager,
gtk_recent_manager_add_item (gtk_recent_manager_get_default (), uri);
g_free (uri);
- object = UDISKS_OBJECT (g_dbus_object_manager_get_object (udisks_client_get_object_manager (data->window->client),
- out_loop_device_object_path));
+ udisks_client_settle (data->window->client);
+
+ object = udisks_client_get_object (data->window->client, out_loop_device_object_path);
set_selected_object (data->window, object);
g_object_unref (object);
g_free (out_loop_device_object_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]