Re: GTK signals question.

2014-03-10 Thread Joël Krähemann
Do you have an other thread? May be concurrency problems? On Wed, 2014-03-05 at 01:43 -0500, Chris Moller wrote: > Okay, I'm out of ideas... > > I'm writing an app, that among a lot of other stuff, has three mutually > interacting spinbuttuns, i.e., if I increment spinbutton A, its callback >

Re: GTK signals question.

2014-03-05 Thread Chris Angelico
On Thu, Mar 6, 2014 at 6:27 AM, Chris Moller wrote: > On 03/05/14 13:52, Chris Angelico wrote: >> >> Is there a reason you're trying to write high-level code in C? > > > Habit, mostly. I've been coding in C since the early 80s and I can do it in > my sleep. Python's okay, but I tend to think of

Re: GTK signals question.

2014-03-05 Thread Chris Moller
On 03/05/14 13:52, Chris Angelico wrote: On Thu, Mar 6, 2014 at 5:43 AM, Chris Moller wrote: gcc supports nested functions as an extension to standard C. I tend to use them a lot because they operate within the stack frame of the enclosing function, thereby minimising the amount of information

Re: GTK signals question.

2014-03-05 Thread Chris Vine
On Wed, 05 Mar 2014 13:43:29 -0500 Chris Moller wrote: > On 03/05/14 12:07, Chris Vine wrote: > > On Wed, 05 Mar 2014 09:44:48 -0500 > > Chris Moller wrote: > >> I was actually writing that testcase when I found a correlation: > >> I'm using gcc and my callbacks were nested functions. Pull the

Re: GTK signals question.

2014-03-05 Thread Chris Angelico
On Thu, Mar 6, 2014 at 5:43 AM, Chris Moller wrote: > gcc supports nested functions as an extension to standard C. I tend to use > them a lot because they operate within the stack frame of the enclosing > function, thereby minimising the amount of information you have to pass. > This is especiall

Re: GTK signals question.

2014-03-05 Thread Colomban Wendling
Le 05/03/2014 19:43, Chris Moller a écrit : > [...] > > gcc supports nested functions as an extension to standard C. I tend to > use them a lot because they operate within the stack frame of the > enclosing function, thereby minimising the amount of information you > have to pass. This is especi

Re: GTK signals question.

2014-03-05 Thread Chris Moller
On 03/05/14 12:07, Chris Vine wrote: On Wed, 05 Mar 2014 09:44:48 -0500 Chris Moller wrote: I was actually writing that testcase when I found a correlation: I'm using gcc and my callbacks were nested functions. Pull the callbacks out and make them normal, top-level, functions, and it all works

Re: GTK signals question.

2014-03-05 Thread Colomban Wendling
Le 05/03/2014 18:07, Chris Vine a écrit : > On Wed, 05 Mar 2014 09:44:48 -0500 > Chris Moller wrote: >> I was actually writing that testcase when I found a correlation: I'm >> using gcc and my callbacks were nested functions. Pull the callbacks >> out and make them normal, top-level, functions,

Re: GTK signals question.

2014-03-05 Thread Chris Vine
On Wed, 05 Mar 2014 09:44:48 -0500 Chris Moller wrote: > I was actually writing that testcase when I found a correlation: I'm > using gcc and my callbacks were nested functions. Pull the callbacks > out and make them normal, top-level, functions, and it all works even > without no blocking of

Re: GTK signals question.

2014-03-05 Thread Chris Angelico
On Thu, Mar 6, 2014 at 1:44 AM, Chris Moller wrote: > I was actually writing that testcase when I found a correlation: I'm using > gcc and my callbacks were nested functions. Pull the callbacks out and make > them normal, top-level, functions, and it all works even without no blocking > of any ki

Re: GTK signals question.

2014-03-05 Thread Chris Moller
I was actually writing that testcase when I found a correlation: I'm using gcc and my callbacks were nested functions. Pull the callbacks out and make them normal, top-level, functions, and it all works even without no blocking of any kind. So, if this is a bug at all, I suppose it could be a

Re: GTK signals question.

2014-03-05 Thread Tadej Borovšak
Dne 05.03.2014 (sre) ob 18:38 +1100 je Chris Angelico napisal(a): > On Wed, Mar 5, 2014 at 6:29 PM, Tristan Van Berkom > wrote: > > Interesting, if I were you I would try to share the same adjustment > > between all of your views. > > > > I.e. I would keep the adjustment in the finest grained unit

Re: GTK signals question.

2014-03-05 Thread A. Walton
On Tue, Mar 4, 2014 at 10:43 PM, Chris Moller wrote: > Okay, I'm out of ideas... > > I'm writing an app, that among a lot of other stuff, has three mutually > interacting spinbuttuns, i.e., if I increment spinbutton A, its callback > then updates values in B and C. B and then would try to update

Re: GTK signals question.

2014-03-04 Thread Chris Angelico
On Wed, Mar 5, 2014 at 6:29 PM, Tristan Van Berkom wrote: > Interesting, if I were you I would try to share the same adjustment > between all of your views. > > I.e. I would keep the adjustment in the finest grained unit of each > unit you want to display, and have your spin buttons format the val

Re: GTK signals question.

2014-03-04 Thread Tristan Van Berkom
On Wed, 2014-03-05 at 02:20 -0500, Chris Moller wrote: > On 03/05/14 02:01, Chris Angelico wrote: > > On Wed, Mar 5, 2014 at 5:43 PM, Chris Moller wrote: > >> I'm writing an app, that among a lot of other stuff, has three mutually > >> interacting spinbuttuns, i.e., if I increment spinbutton A, it

Re: GTK signals question.

2014-03-04 Thread Chris Angelico
On Wed, Mar 5, 2014 at 6:20 PM, Chris Moller wrote: > No, they're not the same value. They're all for setting an angle, in > radians, pi-radians, and degrees, and I want the user to be able to set the > angle in any unit and have the equivalent angle in the other units show up > in the other spin

Re: GTK signals question.

2014-03-04 Thread Tristan Van Berkom
On Wed, 2014-03-05 at 18:01 +1100, Chris Angelico wrote: > On Wed, Mar 5, 2014 at 5:43 PM, Chris Moller wrote: > > I'm writing an app, that among a lot of other stuff, has three mutually > > interacting spinbuttuns, i.e., if I increment spinbutton A, its callback > > then updates values in B and C

Re: GTK signals question.

2014-03-04 Thread Chris Moller
On 03/05/14 02:01, Chris Angelico wrote: On Wed, Mar 5, 2014 at 5:43 PM, Chris Moller wrote: I'm writing an app, that among a lot of other stuff, has three mutually interacting spinbuttuns, i.e., if I increment spinbutton A, its callback then updates values in B and C. B and then would try to

Re: GTK signals question.

2014-03-04 Thread Chris Angelico
On Wed, Mar 5, 2014 at 5:43 PM, Chris Moller wrote: > I'm writing an app, that among a lot of other stuff, has three mutually > interacting spinbuttuns, i.e., if I increment spinbutton A, its callback > then updates values in B and C. B and then would try to update A, and C, > etc., resulting in

GTK signals question.

2014-03-04 Thread Chris Moller
Okay, I'm out of ideas... I'm writing an app, that among a lot of other stuff, has three mutually interacting spinbuttuns, i.e., if I increment spinbutton A, its callback then updates values in B and C. B and then would try to update A, and C, etc., resulting in a bottomless recursion. So, w

Re: GTK+ Signals

2006-11-18 Thread Ralf Stephan
> > Is this possible in C++? > > I suppose the Gtkmm list would be more appropriate for this. > But if you mean `in C++ not using C++ bindings' -- what > problems you got into? Thread moved to gtkmm-list. Thanks. ralf ___ gtk-app-devel-list mailing l

Re: GTK+ Signals

2006-11-17 Thread Yeti
On Fri, Nov 17, 2006 at 09:31:35AM +0100, Ralf Stephan wrote: > > Is this possible in C++? I suppose the Gtkmm list would be more appropriate for this. But if you mean `in C++ not using C++ bindings' -- what problems you got into? Yeti -- Whatever. _

Re: GTK+ Signals

2006-11-17 Thread Ralf Stephan
> - use g_signal_add_emission_hook() to catch all emissions of > a signal for all instances > > - use g_signal_list_ids() to get all signals that objects of > a given type can emit and then connect to them in a loop > for an instance; note you have to recusrsively scan parent > classes and

Re: GTK+ Signals

2006-11-16 Thread Yeti
On Thu, Nov 16, 2006 at 08:20:34PM +0530, natarajan wrote: >Is there a place where I can find information about the sequence of > signals that will be emitted when a widget is created / destroyed and > also which signal is to be used for what purpose ? Not exactly, but see http://develope

GTK+ Signals

2006-11-16 Thread natarajan
Hi, Is there a place where I can find information about the sequence of signals that will be emitted when a widget is created / destroyed and also which signal is to be used for what purpose ? Also is there anything like a hook which I can use to capture any signal emitted for an widget ? M

Re: GTK signals and widget destruction/disposal/finalization

2005-02-09 Thread Federico Mena Quintero
On Tue, 2005-02-08 at 20:57 -0500, Havoc Pennington wrote: > > - Between the time a widget is destroyed, and the time that "dispose" > > is called, is it possible for other signals to be serviced? That is, > > is it best to explicitly disconnect signal handlers before destroying > > a widget

Re: GTK signals and widget destruction/disposal/finalization

2005-02-08 Thread Havoc Pennington
On Tue, 2005-02-08 at 20:00 -0500, Brian Hanley wrote: > - When does GTK service the event queue? More specifically, what GTK > calls > could be interrupted in order to call callbacks for GTK signals? Signals are not in any way asynchronous (there are no threads, and they aren't

GTK signals and widget destruction/disposal/finalization

2005-02-08 Thread Brian Hanley
Hi All, I had a few questions about both (i) GTK signal handling, and (ii) the widget destruction/disposal/finalization process. - When does GTK service the event queue? More specifically, what GTK calls could be interrupted in order to call callbacks for GTK signals? - When a widget is