Re: Puzzling behavior when passing user data to callback from Glade
- From: Tadej BorovÅak <tadeboro gmail com>
- To: dfg dfg <abxccd msn com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Puzzling behavior when passing user data to callback from Glade
- Date: Sun, 25 Apr 2010 12:01:34 +0200
Hello.
How come the userdata is passed in as the first argument, while the button widget itself is passed in as
the second arguement?
When the data field is not empty in Glade, signal is connected like
you would call g_signal_connect_swapped() macro in C code. This was
probably done from convenience reasons. For example, you can connect
gtk_widget_hide() function to GtkButton::clicked signal, pass some
some toplevel as user data and you have hiding working with no
additional code.
In latest git version, Tristan overhauled signal dialog and things are
much clearer now. See his blog post for some screenshots[1].
Tadej
[1] http://blogs.gnome.org/tvb/2010/03/30/one-week-of-glade-brought-to-you-by-openismus-gmbh/
--
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]