Re: Nesting gtk_main ?

2010-01-31 Thread Andrew Cowie
On Sun, 2010-01-31 at 19:14 +0100, Martin Vejnár wrote: > In electronics design, it is common to have two independent windows, one > which shows the schematics and the other shows the circuit board. You > don't want dialog boxes pertaining to one window to block the other. Sounds like you might

Re: State of GTK3 (especially the theme api)

2010-01-31 Thread frederico schardong
Maybe this question should be discuss in gtk-devel-list. 2010/1/30 Clemens Eisserer : > Hi, > > Does anybody know whats the state of GTK3? > I am especially interested in what the theme api looks like, or wether > it has been worked on at all? > > All wiki pages I found were quite outdate :-( > >

Re: Nesting gtk_main ?

2010-01-31 Thread Tadej Borovšak
Hello 2010/1/31 Martin Vejnár : > On 1/30/2010 10:30 PM, jcup...@gmail.com wrote: >> >> On 30 January 2010 18:48, Siddu  wrote: >>> >>> Assuming i have two different windows window1 and window2 >>> >>> can the events or signals on each of them be processed concurrently with >>> two >>> gtk_main( o

Re: Nesting gtk_main ?

2010-01-31 Thread Martin Vejnár
On 1/30/2010 10:30 PM, jcup...@gmail.com wrote: On 30 January 2010 18:48, Siddu wrote: Assuming i have two different windows window1 and window2 can the events or signals on each of them be processed concurrently with two gtk_main( one for window1 and other for window2) being isolated under th

Re: performance problems double buffering to 1600x1200 window

2010-01-31 Thread Clemens Eisserer
Another thing that is insane is to have a theme-api which requires a GdkDrawble. Non-GTK apps like Firefox, QT or Java have to allocate small pixmaps, ask GTK to render to that *twice*, and read back from the X-Server - leading to thousands of unnesscesary context switches and GPU stalls slowing al

Re: detect ctrl+c in key_press_event handler

2010-01-31 Thread Ken Resander
Odd, you seem to be getting 0 for both the Ctrl key and letter-C key. If the keyboard works and you can use it for other applications, then keypresscallback really should return non-zero character code values. I don't know pygtk, but if there are other keyboard input calls like sscanf in C, the

Re: performance problems double buffering to 1600x1200 window

2010-01-31 Thread Emmanuele Bassi
It's pretty convenient for you to call implementations "insane" and that nobody reviewed your patches before flat out rejecting them - all without a link to the bugzilla entry or the mailing list discussion. Ciao, Emmanuele. On 30 Jan 2010 15:56, "Clemens Eisserer" wrote: I wrote some patches t

Re: detect ctrl+c in key_press_event handler

2010-01-31 Thread Yann Leboulanger
Ken Resander wrote: > I am in nearly unknown territory, since mostly I have been in the ASCII world > with chars from a to z. > > Could you check the event.keyval for character 'C' on your keyboard and see > what character code is returned. Use printf to view the value. Then use this > value in