[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: gtk+ 2.0 marshaller problems with passing non gpointer variables?
- From: safemode <safemode speakeasy net>
- To: Melvin Hadasht <melvin hadasht free fr>,"gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: gtk+ 2.0 marshaller problems with passing non gpointer variables?
- Date: Wed, 3 Oct 2001 18:57:05 -0400
It seems that not calling it a gpointer and instead keeping with my info
*chosen1 works. Thanks about the GtkWidget part. That was my problem.
On Wednesday 03 October 2001 18:52, safemode wrote:
> On Wednesday 03 October 2001 11:21, Melvin Hadasht wrote:
> > Hi,
> >
> > The definition of you callback function has the wrong arguments :
> >
> > in this case, for the signal "clicked" and for the button the callback
> > function should be declared as (search in the archive for a mail which
> > tells you exactly how to find those arguments) :
> >
> > void create_file_select(GtkWidget *w, gpointer *chosen1)
> >
> > I think the first argument is always the widget from which the
> > signal/event was sent (in this case : 'button').
> >
> > Hth
>
> See the problem with that is i'm sending a structure. gpointer does not
> allow me to access any of the elements in the structure, giving an error
> such as "cannot access element because chosen1 is of non aggregate type
> void"
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]