]> granicus.if.org Git - transmission/commitdiff
(trunk gtk) #2257: When popping up the shutdown "sending totals to tracker.." prompt...
authorCharles Kerr <charles@transmissionbt.com>
Wed, 1 Jul 2009 04:10:04 +0000 (04:10 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Wed, 1 Jul 2009 04:10:04 +0000 (04:10 +0000)
gtk/main.c

index c4650f2c76bad09c9c0635f3a5508324f2438f32..d65ba2edfb86002e8c4230bc1b657f3520dcedd4 100644 (file)
@@ -630,6 +630,7 @@ static gpointer
 quitThreadFunc( gpointer gdata )
 {
     struct cbdata * cbdata = gdata;
+    gdk_threads_enter( );
 
     tr_core_close( cbdata->core );
 
@@ -656,6 +657,8 @@ quitThreadFunc( gpointer gdata )
     g_free( cbdata );
 
     gtk_main_quit( );
+    gdk_threads_leave( );
+
     return NULL;
 }