[gtk+] demos: Don't use GDK_THREADS_ENTER/LEAVE macros



commit 746b9d7c414884ec68ee46865f58a31afa072ce2
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jul 30 11:15:40 2012 +0200

    demos: Don't use GDK_THREADS_ENTER/LEAVE macros
    
    We don't use threads here, so no need to use them.

 demos/gtk-demo/pixbufs.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/pixbufs.c b/demos/gtk-demo/pixbufs.c
index 9b29b5a..5e0d7df 100644
--- a/demos/gtk-demo/pixbufs.c
+++ b/demos/gtk-demo/pixbufs.c
@@ -175,9 +175,7 @@ timeout (gpointer data)
                                : MAX (127, fabs (255 * cos (f * 2.0 * G_PI)))));
     }
 
-  GDK_THREADS_ENTER ();
   gtk_widget_queue_draw (da);
-  GDK_THREADS_LEAVE ();
 
   frame_num++;
   return G_SOURCE_CONTINUE;



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