Commit ffe4e94e authored by Allison Karlitskaya's avatar Allison Karlitskaya

GUnixVolume: implement _finish functions

The _finish functions for GUnixVolume _mount and _eject functions were
never implemented, having been simply stubbed out as 'return TRUE;'.

Implement them.

https://bugzilla.gnome.org/show_bug.cgi?id=724916
parent 62fa9c57
......@@ -343,7 +343,9 @@ g_unix_volume_mount_finish (GVolume *volume,
GAsyncResult *result,
GError **error)
{
return TRUE;
g_return_val_if_fail (g_task_is_valid (result, volume), FALSE);
return g_task_propagate_boolean (G_TASK (result), error);
}
static void
......@@ -366,7 +368,9 @@ g_unix_volume_eject_finish (GVolume *volume,
GAsyncResult *result,
GError **error)
{
return TRUE;
g_return_val_if_fail (g_task_is_valid (result, volume), FALSE);
return g_task_propagate_boolean (G_TASK (result), error);
}
static gchar *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment