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



commit 1b47728804e1507a55c1e30cd9909d62bbe68037
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 4816d45..71e7948 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]