We need to set a CONFIG option for the windowing system that GTK+ is built against, to enable and disable plug-in related features based on that information.
The attached patch implements this in the simplest way possible.
Created attachment 17536 [details]
Patch to check GTK+ windowing target
Created attachment 17539 [details]
Updated patch with comment and spaces in ChangeLog
Landed in r28107.