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;
}
/* freeze the gui */
if( cbdata->wind )
gtk_widget_set_sensitive( GTK_WIDGET( cbdata->wind ), FALSE );
/* clear the UI */
gtk_list_store_clear( GTK_LIST_STORE( tr_core_model( cbdata->core ) ) );
gtk_widget_set_sensitive( GTK_WIDGET( cbdata->wind ), FALSE );
/* shut down libT */
g_thread_create( quitThreadFunc, vdata, TRUE, NULL );