large performance difference between gtktextview and gtksourceview

2010-11-04 Thread Olivier Sessink
Hi all, loading 1Mb of UTF-8 encoded text into a gtk text view seems to take much more time than loading the same buffer into gtksourceview. Since gtksourceview has all of the functionality of gtktextview and more, where is this difference coming from? And does this mean that we can improve the pe

Re: gtk 2 or 3

2010-11-04 Thread Tor Lillqvist
> If I may ask, what is the main technical problem (deeper explanation) with > using GTK+ from multiple threads? On Windows, the problem is that Windows GDI, being a local windowing system with a quite tight coupling to the client code executing on the same machine, is very much thread-aware. (Wi

Re: gtk 2 or 3

2010-11-04 Thread Dov Grobgeld
For an example of how to do it without having a secondary thread do any gtk commands, see my example program in: http://www.mail-archive.com/gtk-app-devel-list@gnome.org/msg14213.html Basically the work thread, that is taking a long time doing its thing, requests the gui thread to update the GUI

Re: gtk 2 or 3

2010-11-04 Thread Michael T .
> > So GIMP is a single threaded software? > > No, but... > > > There's never GTK+ multithreaded activity? > > Indeed. > If I may ask, what is the main technical problem (deeper explanation) with using GTK+ from multiple threads? It is probably very application specific. For instance, in m

Dnd Icon

2010-11-04 Thread moi lui
Hi everyone I have a working drag and drop, it drag structure (with an image) from a button to another. But when I do the dnd, an icon appears until i drop. Do you know which function manages this icon ? I'd like to put the struct's image in thie icon. thank's a lot