Re: GtkBuilder Public API - Last call
- From: Johan Dahlin <jdahlin async com br>
- To: markku vire iki fi
- Cc: Gtk+ Developers <gtk-devel-list gnome org>, Christian Robottom Reis <kiko async com br>
- Subject: Re: GtkBuilder Public API - Last call
- Date: Wed, 13 Jun 2007 10:18:48 -0300
markku vire iki fi wrote:
> Hi,
>
> I'm wondering if there is a reason why one cannot provide user_data
> for gtk_builder_connect_signals? This data would be used as user_data
> for each signal connected, except for those where a specific data widget
> is defined in the glade-file. Currently the data used in signal connection
> is either NULL or widget pointer specified in the .glade.
I've heard this argument a couple of times, it would definitely be good to
have an option to send in a structure per application/interface to all
callbacks.
> Of course one can use connect_full variant to achieve this, but that
> also means that GModule-related code needs to be written into app.
Exactly, I think this use case is valid to avoid duplicating that code.
I see two possible solutions;
1) Change gtk_builder_connect_signals () to accept a gpointer to the
user data
2) Add a new method which is similar to gtk_builder_connect_signals but
accepts user_data and perhaps a GDestroyNotify.
Any preference? I'm leaning towards the latter.
--
Johan Dahlin <jdahlin async com br>
Async Open Source
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]