[sysprof] Call gdk_flush() in set_busy().



commit 737409baf11215876a8721a9039c073784f513f4
Author: Søren Sandmann Pedersen <sandmann daimi au dk>
Date:   Fri Nov 5 00:21:17 2010 -0400

    Call gdk_flush() in set_busy().
    
    Otherwise, the cursor won't show up. (GTK+ 2.22).

 sysprof.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/sysprof.c b/sysprof.c
index cc676a9..55f1b09 100644
--- a/sysprof.c
+++ b/sysprof.c
@@ -270,6 +270,8 @@ set_busy (GtkWidget *widget,
 
     if (cursor)
 	gdk_cursor_unref (cursor);
+
+    gdk_flush();
 }
 
 static void
@@ -1726,10 +1728,6 @@ main (int    argc,
 	g_idle_add_full (G_PRIORITY_LOW, load_file, file_open_data, NULL);
     }
 
-#if 0
-    g_idle_add (gtk_main_quit, NULL);
-#endif
-
     gtk_main ();
 
     return 0;



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