parameters: (self, change_icon=False)
docstring: Refresh the Treeview
docstring_summary: Refresh the Treeview
docstring_tokens: Refresh the Treeview
function: def treeview_refresh(self, change_icon=False):
          """Refresh the Treeview"""
          if self.curr_buffer:
              cell_area = self.treeview.get_cell_area(self.treestore.get_path(self.curr_tree_iter),
                                                      self.treeview.get_columns()[0])
              config.get_tree_expanded_collapsed_string(self)
              self.treeview.set_model(None)
              if change_icon:
                  tree_iter = self.treestore.get_iter_first()
                  while tree_iter:
                      self.change_icon_iter(tree_iter)
                      tree_iter = self.treestore.iter_next(tree_iter)
              self.treeview.set_model(self.treestore)
              if self.user_active: config.set_tree_expanded_collapsed_string(self)
              self.treeview.set_cursor(self.treestore.get_path(self.curr_tree_iter))
              self.treeview.scroll_to_point(0, cell_area.height/2)
function_tokens: def treeview_refresh ( self , change_icon = False ) : if self . curr_buffer : cell_area = self . treeview . get_cell_area ( self . treestore . get_path ( self . curr_tree_iter ) , self . treeview . get_columns ( ) [ 0 ] ) config . get_tree_expanded_collapsed_string ( self ) self . treeview . set_model ( None ) if change_icon : tree_iter = self . treestore . get_iter_first ( ) while tree_iter : self . change_icon_iter ( tree_iter ) tree_iter = self . treestore . iter_next ( tree_iter ) self . treeview . set_model ( self . treestore ) if self . user_active : config . set_tree_expanded_collapsed_string ( self ) self . treeview . set_cursor ( self . treestore . get_path ( self . curr_tree_iter ) ) self . treeview . scroll_to_point ( 0 , cell_area . height / 2 )