remove needless codes
remove unused variables
use const qualifier
use GTK_TREE_STORE macro
fix mixed declarations and codes