Question

In every GTK 3 application I have seen there is a delay of about one second before the menu bar appears when an application is launched. I also have this problem with the application I'm currently working on. Is there a way to prevent this delay?

Was it helpful?

Solution 2

This is (was) apparently a bug in GTK 3 previous to version 3.4 as it does not show up in the last version.

OTHER TIPS

You can try the technique described here. Basically you delay the bulk of your window setup, doing it in an idle-time function. This is mostly smoke and mirrors though, as your application just appears to be ready sooner.

Other than that, if you strace (under linux at least), most of the start up time seems to be I/O performed by libraries and out of our control as application programmers. I have a feeling that some of it could be done on demand (lazily) but I don't know if anyone is working on that or if it is even feasable.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top