Re: gtk_signal_connect vs. connect_object?



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...
I think I have been misunderstood.

>
>
> > Maybe GTK 2.0/2.2?
> > I think all of them only make the libraries bigger and more difficult to
> > learn...
> > IMHO breaking backwards compatibility is neccesary sometimes... (you can
> > always have various versions of the same library on the system, can't
> > you?)
> >
> >
>
>  Best regards,
>   -Vlad





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