Re: GtkBuilder Public API - Last call



Damon Chaplin wrote:
>> I think its quite important here to not repeat one of the 
>> the most obvious mistakes of glade/libglade, swapping the
>> signal based on the fact that an "object" was specified
>> is confusing - it also rules out the use case of specifying
>> a signal that is not swapped & has an object user_data.
> 
> Back in the GTK+ 1.x days I think gtk_signal_connect_object() used to
> automatically swap the callback arguments. There wasn't any "swap"
> option.
> 
> So calling it "one of the most obvious mistakes" is a bit harsh!

It might make sense to do the same for gtkbuilder, since libglade does the
same when you set the object attribute, that'd make it easier to migrate
from the older formats. Or just make the conversion scripts insert
swapped="yes" when converting an old libglade file.

Johan



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