Re: [glade--]Problem with signal types



Sol Swords wrote:

Hi,

I'm new to glade/glademm (and gtk for that matter) and one thing I noticed when trying things out in a glade-2 project was that the compiler chokes when I (for instance) try to attach something to the delete_from_cursor signal of a textbox, or, I suspect, any signal that requires a slot that isn't a void function(void) type thing.  I looked through the mailing list archives and found some discussion of this last year around april, but I was wondering if there's a solution to it now?  There's always the option of making each widget that uses such signals protected and adding the appropriate handlers manually but I was still wondering if there was an in-Glade solution.

of course there is :

add the appropriate line to writers/text.cc (SignalHandlerArgs)

or use --non-virtual-callbacks (which avoids this) (worse solution)

   Christof




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]