Movie list store: turn update-running into a property
authorPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 2 Nov 2009 19:11:27 +0000 (20:11 +0100)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Tue, 3 Nov 2009 13:25:43 +0000 (14:25 +0100)
This reverts commit f97505d38c05703d0691d57284b5df5427d18d22.

src/movie-list-store.vala

index f162306..3bfd156 100644 (file)
@@ -40,7 +40,7 @@ public class MovieListStore : ListStore, TreeModel {
        private Gdk.Pixbuf no_poster;
        public MovieSource source;
        private string query;
-       public bool update_running;
+       public bool update_running { get; set; }
 
        construct {
                set_column_types (base_type);
@@ -108,7 +108,9 @@ public class MovieListStore : ListStore, TreeModel {
                        // FIXME - arbitrary limit
                        source.get_movies (query, receive_movie, 100);
 
+               Gdk.threads_enter ();
                update_running = false;
+               Gdk.threads_leave ();
 
                stdout.printf ("search thread stopped\n");
                return null;