Re: [gtk-list] Re: Best way to make a dialog..



Um, so 
	void OkClicked(GtkWidget *widget,GdkEvent *event,gpointer data)

should be
	void OkClicked(GtkWidget *widget,gpointer data)

On Fri, 26 Nov 1999, Sean Cody wrote:

> > 	- make sure you are only passing a pointer to gtk_signal_connect,
> > 	      e.g use &entry_ptrs, instead of entry_ptrs (although you
> > 	      should get a compiler error about that...)
> >           You cannot pass a structure - only a pointer to a structure.
> Ok... i realize that... 
> 
> I did that though I get a nice set of garbage for the output again...
> ------------------------------
> Server  : :1123348
> >From    : PQRT$oD$
>                     ZYc$
> To      : h
> BCC     : h
> Subject : ho
> Body    :
> hw
> -------------------------------------
>  
> I've attached my code and fiddled every which way to no avail so this
> technique doesn't seem to work... (this is solely ui code no network
> stuff)... Is my design completly off or something... ??? (arghghg this is
> frustrating :P in an interesting way though).
> 
> > And no, gtk_signal_connect completely doesn't care what `user_data'
> > contains.  In fact, it is common practice to pass integers in there
> > so the signal code *never* deferences user_data.
> > 
> > - Dave
> > 
> 



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