squash 40 commits:
1. 6848: citationtreeview corrupts when search bar open and edit occurs
2. avoid critical gdk error by processing events only when window visible :
     Gdk-CRITICAL **: gdk_error_trap_pop_internal: assertion `trap != NULL' failed
3. In case of errors with fg_color, enormous amount of error messages. This patch
   grabs wrong fg_color, and skips action, avoiding the error messages. Error goes to debug.


git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/trunk@22610 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
GEP 18: 1. Source templates as new plugin type
        2. EE templates in their own plugin, loading from csv in data


git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/geps/gep-018-evidence-style@22611 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
GEP 18: merge trunk into GEP branch


git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/geps/gep-018-evidence-style@22612 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
GEP 18: fix index error


git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/geps/gep-018-evidence-style@22613 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
GEP 18: fix bug in List reference determination


git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/geps/gep-018-evidence-style@22614 4ae1f11a-8b86-4847-b8af-ab372f36d1fd