Re: Scrolling a Tree View before it's realized

2006-11-11 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Nov 11, 2006 at 11:51:20AM +0100, Attilio Fiandrotti wrote: Attilio Fiandrotti wrote: Hi In an application i add many items to a ListStore and make it scroll on the fly to the default option row, like this [...] I eventually

Mutex or atomic operations for multithread app?

2006-11-11 Thread Tomasz Jankowski
Hi there! I looking for someone, who will say if my idea is bad or good ;) I have an object based on GObject, which have quite many int variables. This object is used by many threads and i'm wondering if I really need to use mutex when I want to access those variables. Can I use atomically access

Re: Mutex or atomic operations for multithread app?

2006-11-11 Thread John Cupitt
On 11/11/06, Tomasz Jankowski [EMAIL PROTECTED] wrote: I looking for someone, who will say if my idea is bad or good ;) I have an object based on GObject, which have quite many int variables. This object is used by many threads and i'm wondering if I really need to use mutex when I want to

Passing events to an SDL app embedded in a GTK Widget

2006-11-11 Thread Mike Cruse
Hi, sorry if this is a duplicate. I sent it from a non subscribed email the first time. I am writing a python app that needs to embed an SDL app in a GTK widget. I am using an eventbox widget because it has it's own window. I set the SDL_WINDOWID environment variable with the window id of the

Re: Glade GUI: changing mechanism

2006-11-11 Thread Stephen Watson
Olexiy Avramchenko [EMAIL PROTECTED] 31/Oct/2006 12:58:37 On 10/31/06, Johan Kohler [EMAIL PROTECTED] wrote: Isn't it possible to inline the .glade file in the compiled code? Ie. Instead of reading from a text file, it reads from a declared constant. I think that one can inline pixmaps in

Passing events to an SDL app embedded in a GTK Widget

2006-11-11 Thread Mike Cruse
Hi, I am writing a python app that needs to embed an SDL app in a GTK widget. I am using an eventbox widget because it has it's own window. I set the SDL_WINDOWID environment variable with the window id of the eventbox and run the app. SDL apps look at this variable and use that window id as the

Re: Scrolling a Tree View before it's realized

2006-11-11 Thread Attilio Fiandrotti
[EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Nov 11, 2006 at 11:51:20AM +0100, Attilio Fiandrotti wrote: Attilio Fiandrotti wrote: Hi In an application i add many items to a ListStore and make it scroll on the fly to the default option row, like this

Re: Scrolling a Tree View before it's realized

2006-11-11 Thread Liam R E Quin
On Sat, 2006-11-11 at 11:51 +0100, Attilio Fiandrotti wrote: [...] I eventually managed this by scrolling the treeview from a callback that gets fired after the expose event is fired. In order to have scrolling performed only the first time expose event is fired, i use a global flag which i

Re: Scrolling a Tree View before it's realized

2006-11-11 Thread Attilio Fiandrotti
Liam R E Quin wrote: On Sat, 2006-11-11 at 11:51 +0100, Attilio Fiandrotti wrote: [...] I eventually managed this by scrolling the treeview from a callback that gets fired after the expose event is fired. In order to have scrolling performed only the first time expose event is fired, i use a

General question about inheritance of properties in GTK

2006-11-11 Thread Clarity ThroughConfusion
Hi, I am planning on creating some custom widgets that have some additional functionality over standard GTK widgets. As these widgets are very close to the GTK standard widgets, I am planning on deriving the custom widget from a GTK standard widget and hopefully avoid reimplementing the