[sound-juicer] main: Fix run-time warning



commit fe906e009460ad04712dd2e15e6e411faecd6074
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Sep 10 16:31:08 2011 +0100

    main: Fix run-time warning
    
    A GdkWindow isn't a GtkWidget.

 src/sj-main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/sj-main.c b/src/sj-main.c
index bd21ff8..1a1e5f5 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -892,10 +892,10 @@ static void reread_cd (gboolean ignore_no_media)
 
   /* Set watch cursor */
   if (realized) {
-    cursor = gdk_cursor_new_for_display (gtk_widget_get_display (GTK_WIDGET (window)), GDK_WATCH);
+    cursor = gdk_cursor_new_for_display (gtk_widget_get_display (GTK_WIDGET (main_window)), GDK_WATCH);
     gdk_window_set_cursor (window, cursor);
     gdk_cursor_unref (cursor);
-    gdk_display_sync (gtk_widget_get_display (GTK_WIDGET (window)));
+    gdk_display_sync (gtk_widget_get_display (GTK_WIDGET (main_window)));
   }
 
   /* Set statusbar message */



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