Re: Passing structure with a callback

2012-07-24 Thread Frank Cox
It occurs to me that the problem here may be that all roads lead to gtk_main(). If my current theory is correct, then by creating the emailshare structure in the MainMenu function that structure is not available in main(), and hence is not being passed to the Clear function when the clear icon is

Re: Passing structure with a callback

2012-07-24 Thread David Nečas
On Tue, Jul 24, 2012 at 12:27:41AM -0600, Frank Cox wrote: Is my understanding of how this actually works correct? Yes. Now please read my reply to your first e-mail... If so, what is the recommended way to deal with structures like this? ...that already answered this too.

Re: Passing structure with a callback

2012-07-24 Thread David Nečas
On Tue, Jul 24, 2012 at 08:43:08AM +0200, David Nečas wrote: Now please read my reply to your first e-mail... I see. So, in case you read the mailing list archives: It's a bit pointless to ask questions in a mailing list if your mailserver blocks all answers. Yeti

Passing structure with a callback

2012-07-22 Thread Frank Cox
I'm really new to this whole GUI and GTK thing, so I hope I can get away with a few beginner questions, as I'm sure that the answer to what's going wrong here is simple if you understand what's going on (which I don't, yet.) I'm working on my very first GTK program, mostly as a project/excuse to

Re: Passing structure with a callback

2012-07-22 Thread David Nečas
On Sun, Jul 22, 2012 at 11:22:07PM -0600, Frank Cox wrote: My widgetshare structure gets passed from main() to MainMenu with no apparent problem, but using the same scheme to pass emailshare from MainMenu to Clear segfaults. This is elementary C. Both structures are created on stack so they