Fix (again) problems displaying a GtkSourceView widget on Cygwin
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Nov 2012 11:32:34 +0000 (12:32 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Nov 2012 11:32:34 +0000 (12:32 +0100)
commitab6a775adf51dff998699ed87904d9436e65ce9a
tree16e86a405855044e180e7bd042cc910181d3e2ba
parent00fd47eccf62f5657bc32655bdddcf3758d882e2
Fix (again) problems displaying a GtkSourceView widget on Cygwin

Under certain compiler options, the effect of the gtk_*get_type
function call was optimised away.  This change fixes that.  It
seems that both static and volatile are necessary, in order to
avoid the compiler from complaining and/or optimising the call
away.
src/ui/gui/widgets.c