avoid critical gdk error by processing events only when window visible : 
   Gdk-CRITICAL **: gdk_error_trap_pop_internal: assertion `trap != NULL' failed


git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22607 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
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/branches/maintenance/gramps40@22608 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
6848: citationtreeview corrupts when search bar open and edit occurs


git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22609 4ae1f11a-8b86-4847-b8af-ab372f36d1fd