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
This commit is contained in:
Ryan Lortie 2014-03-11 12:19:19 -04:00
parent 62fa9c578f
commit ffe4e94e3a

View File

@ -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 *