[gvfs] udisks2: split a helper function
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] udisks2: split a helper function
- Date: Thu, 12 Jul 2012 00:00:51 +0000 (UTC)
commit 8dcd2e3756632bca6ea12744ee02099ba8a7e1d4
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jul 10 18:11:51 2012 -0400
udisks2: split a helper function
We'll need to use this later.
https://bugzilla.gnome.org/show_bug.cgi?id=676111
monitor/udisks2/gvfsudisks2mount.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2mount.c b/monitor/udisks2/gvfsudisks2mount.c
index b336cd2..5ce9769 100644
--- a/monitor/udisks2/gvfsudisks2mount.c
+++ b/monitor/udisks2/gvfsudisks2mount.c
@@ -563,6 +563,12 @@ unmount_data_unref (UnmountData *data)
}
}
+static gboolean
+unmount_operation_is_eject (GMountOperation *op)
+{
+ return GPOINTER_TO_INT (g_object_get_data (G_OBJECT (op), "x-udisks2-is-eject"));
+}
+
static void
unmount_data_complete (UnmountData *data,
gboolean complete_idle)
@@ -699,7 +705,7 @@ lsof_command_cb (GObject *source_object,
{
gboolean is_eject;
- is_eject = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (data->mount_operation), "x-udisks2-is-eject"));
+ is_eject = unmount_operation_is_eject (data->mount_operation);
/* We want to emit the 'show-processes' signal even if launching
* lsof(1) failed or if it didn't return any PIDs. This is because
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]