summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-01-27 21:48:18 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-01-27 21:53:49 -0500
commit04e8d9fa5ed795c003d9dae98b4cb6705fe5457f (patch)
tree536de4190bdd844251cc0851585d795a81a2dc7e
parent2783395eae6de0f9fcf1ca5bcd0debd44af402d6 (diff)
downloadgtk+-04e8d9fa5ed795c003d9dae98b4cb6705fe5457f.tar.gz
GtkPlacesSidebar: Fix two copy-paste errors
Sadly, this means the code can have never been tested :-(
-rw-r--r--gtk/gtkplacessidebar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 5d20a36228..e53680bef1 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -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)
{