Add new function: gc_get_state()
Implement new function gc_get_state in gr_view_grid