clear the gtk+ gui before calling tr_close()

This commit is contained in:
Charles Kerr 2007-11-11 20:38:59 +00:00
parent f9c992dc33
commit 96629d16db
1 changed files with 3 additions and 3 deletions

View File

@ -442,9 +442,9 @@ wannaquit( void * vdata )
cbdata->timer = 0; cbdata->timer = 0;
} }
/* freeze the gui */ /* clear the UI */
if( cbdata->wind ) gtk_list_store_clear( GTK_LIST_STORE( tr_core_model( cbdata->core ) ) );
gtk_widget_set_sensitive( GTK_WIDGET( cbdata->wind ), FALSE ); gtk_widget_set_sensitive( GTK_WIDGET( cbdata->wind ), FALSE );
/* shut down libT */ /* shut down libT */
g_thread_create( quitThreadFunc, vdata, TRUE, NULL ); g_thread_create( quitThreadFunc, vdata, TRUE, NULL );