Re: gtk_signal_connect vs. connect_object?
- From: Vlad Harchev <hvv hippo ru>
- To: Antonio Campos <acampos ceronet com>
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: gtk_signal_connect vs. connect_object?
- Date: Fri, 25 Aug 2000 10:54:29 +0500 (SAMST)
On Fri, 25 Aug 2000, Antonio Campos wrote:
> Vlad Harchev wrote:
>
> > On Tue, 22 Aug 2000, Antonio Campos wrote:
> >
> > > Havoc Pennington wrote:
> > >
> > > > "David J. Topper" <topper@virginia.edu> writes:
> > > > > Hi folks,
> > > > >
> > > > > What's the difference between the gtk_signal_connect and
> > > > > gtk_signal_conect_object (and related) functions? I recall an earlier
> > > > > tutorial had early example with both. I can't find any info on the
> > > > > difference.
> > > > >
> > > > > Examples?
> > > > >
> > > >
> > > > connect_object() swaps the first callback argument (the emitting
> > > > object) and the last one (user data). It's called connect_object() for
> > > > historical reasons, and the name no longer makes any sense. ;-)
> > > >
> > >
> > > all these historical functions should dissapear sooner or later in GTK.
> >
> > Why? How will you connect handlers to signals then if all "those" functions
> > would be removed?
>
> All "those" just means the legacy/useless gtk_signal_connect_object(),
> not the
> gtk_signal_connect, of course...
gtk_signal_connect_object is very useful IMO - it saves creation of temporary
callback function. Also, it's used in gtk source rather extensively (and of
course in existing apps).
> I think I have been misunderstood.
Yes, sorry.
Best regards,
-Vlad
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]