[gtk+] GtkPlacesSidebar: Fix two copy-paste errors



commit 04e8d9fa5ed795c003d9dae98b4cb6705fe5457f
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 27 21:48:18 2014 -0500

    GtkPlacesSidebar: Fix two copy-paste errors
    
    Sadly, this means the code can have never been tested :-(

 gtk/gtkplacessidebar.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 5d20a36..e53680b 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)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]