GtkPlacesSidebar: Fix two copy-paste errors

Sadly, this means the code can have never been tested :-(
This commit is contained in:
Matthias Clasen 2014-01-27 21:48:18 -05:00
parent 2783395eae
commit 04e8d9fa5e

View File

@ -2896,7 +2896,7 @@ drive_start_cb (GObject *source_object,
sidebar = GTK_PLACES_SIDEBAR (user_data);
error = NULL;
if (!g_drive_poll_for_media_finish (G_DRIVE (source_object), res, &error))
if (!g_drive_start_finish (G_DRIVE (source_object), res, &error))
{
if (error->code != G_IO_ERROR_FAILED_HANDLED)
{
@ -2952,7 +2952,7 @@ drive_stop_cb (GObject *source_object,
sidebar = user_data;
error = NULL;
if (!g_drive_poll_for_media_finish (G_DRIVE (source_object), res, &error))
if (!g_drive_stop_finish (G_DRIVE (source_object), res, &error))
{
if (error->code != G_IO_ERROR_FAILED_HANDLED)
{