static void InitGtk ()
{
Rc.AddDefaultFile (Utils.GetDataFilePath (Path.Combine ("theme", "gtk-2.0", "gtkrc")));
App.Current.Style = StyleConf.Load (Utils.GetDataFilePath (Path.Combine ("theme", "longomatch-dark.json")));
/* We are having some race condition with XCB resulting on an invalid
* message and thus an abort of the program, we better activate the
* thread sae X11
*/
if (Utils.OS == OperatingSystemID.Linux)
XInitThreads ();
Application.Init ();
IconTheme.Default.PrependSearchPath (Utils.GetDataDirPath ("icons"));
}