<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-6666239544818473000.post6608201521873672293..comments</id><updated>2012-01-21T22:32:25.282+01:00</updated><category term='GtkComboBox'/><category term='GtkTreeModel'/><category term='Tips'/><category term='threads'/><category term='GtkLabel'/><category term='GtkDialog'/><category term='Glade'/><category term='GtkTreeView'/><category term='GTK+'/><category term='Maintenance'/><category term='glib'/><category term='tutorial'/><title type='text'>Comments on Bits and pieces: Glade3 tutorial (6) - Signals</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.borovsak.si/feeds/6608201521873672293/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html'/><author><name>Tadej Borovšak</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-V5S0cD-5b_I/AAAAAAAAAAI/AAAAAAAAArU/nAyUYzn6Yx8/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-3741683583122482622</id><published>2011-09-30T14:28:22.192+02:00</published><updated>2011-09-30T14:28:22.192+02:00</updated><title type='text'>Never mind that, I just needed to omit &amp;#39;static...</title><content type='html'>Never mind that, I just needed to omit &amp;#39;static&amp;#39; keyword from callback function definition.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/3741683583122482622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/3741683583122482622'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1317385702192#c3741683583122482622' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2054048384'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-6616406223908116966</id><published>2011-09-30T14:11:16.588+02:00</published><updated>2011-09-30T14:11:16.588+02:00</updated><title type='text'>I have been following several glade tutorials, and...</title><content type='html'>I have been following several glade tutorials, and so far haven&amp;#39;t been able to successfully connect the signals with gtk_builder_connect_signals.&lt;br /&gt;&lt;br /&gt;At first I was using Eclipse CDT so I separated all --cflags into individual lines, deleted all instances of -I and then pasted the include paths to Project -&amp;gt; Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; GCC C Compiler -&amp;gt; Includes, and added -pthread to Miscellaneous options, just in case. This is how all options looked like:&lt;br /&gt;&lt;br /&gt;-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -O0 -g3 -Wall -c -fmessage-length=0 -pthread&lt;br /&gt;&lt;br /&gt;A little messy, but it compiles, after I did the same for the --libs output (only this was for linker options, of course). This is how all options look like for linker:&lt;br /&gt;&lt;br /&gt;-pthread -Wl,--export-dynamic&lt;br /&gt;&lt;br /&gt;It didn&amp;#39;t list all the -L and -l switches, but since it links with all --libs output -Lxxxx and -Lxxxx added and doesn&amp;#39;t if I delete them, I persume they are just not being displayed.&lt;br /&gt;&lt;br /&gt;And when I compile the project, I get the dreaded Gtk-WARNING **: Could not find signal handler. The I tried manually compiling and linking.&lt;br /&gt;&lt;br /&gt;$ gcc -c drag_drop.c -o drag_drop.o `pkg-config --cflags gtk+-2.0 gmodule-2.0`&lt;br /&gt;$ gcc -o drag_drop drag_drop.o `pkg-config --libs gtk+-2.0 gmodule-2.0`&lt;br /&gt;&lt;br /&gt;But it&amp;#39;s the same old story:&lt;br /&gt;$ ./drag_drop&lt;br /&gt;&lt;br /&gt;(drag_drop:7238): Gtk-WARNING **: Could not find signal handler &amp;#39;on_main_window_destroy&amp;#39;&lt;br /&gt;&lt;br /&gt;The callback function is named in Glade as:&lt;br /&gt;on_main_window_destroy&lt;br /&gt;&lt;br /&gt;It is declared in drag_drop.h as:&lt;br /&gt;static void on_main_window_destroy (GtkObject*, gpointer);&lt;br /&gt;&lt;br /&gt;and is defined right after main() as:&lt;br /&gt;static void on_main_window_destroy (GtkObject *object, gpointer userdata) { ...&lt;br /&gt;&lt;br /&gt;It&amp;#39;s all the same if I just define it before main() or declare it in drag_drop.c (I believe I&amp;#39;m using the right terms for declaration and definition, I might be wrong though) - the gmodule just can&amp;#39;t find my function...&lt;br /&gt;&lt;br /&gt;If anyone knows where is the problem, please let me know.&lt;br /&gt;(I&amp;#39;m on a Ubuntu 11.04 machine).&lt;br /&gt;&lt;br /&gt;The command used to obtain CFLAGS variables:&lt;br /&gt;$ pkg-config --cflags gtk+-2.0 gmodule-2.0&lt;br /&gt;&lt;br /&gt;The command used to obtain needed libraries:&lt;br /&gt;$ pkg-config --libs gtk+-2.0 gmodule-2.0</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/6616406223908116966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/6616406223908116966'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1317384676588#c6616406223908116966' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2054048384'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-6568160302807376263</id><published>2010-12-06T20:10:17.335+01:00</published><updated>2010-12-06T20:10:17.335+01:00</updated><title type='text'>important: if you compile Glade3 with C++, you hav...</title><content type='html'>important: if you compile Glade3 with C++, you have to add &amp;#39; extern &amp;quot;C&amp;quot; &amp;#39; before the declaration of the callback function. Like this: &lt;br /&gt;&lt;br /&gt;extern &amp;quot;C&amp;quot; void &lt;br /&gt;on_button4_clicked (GtkButton *button, gpointer user_data)&lt;br /&gt;{</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/6568160302807376263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/6568160302807376263'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1291662617335#c6568160302807376263' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1954079091'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-1559588906683342080</id><published>2010-11-11T16:02:35.779+01:00</published><updated>2010-11-11T16:02:35.779+01:00</updated><title type='text'>This tutorial is awesome. Thanks a lot bro...
Stay...</title><content type='html'>This tutorial is awesome. Thanks a lot bro...&lt;br /&gt;Stay healthy...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/1559588906683342080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/1559588906683342080'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1289487755779#c1559588906683342080' title=''/><author><name>അപരന്‍</name><uri>http://www.blogger.com/profile/03757561242978741896</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_9pG3KQ4mnkI/S8lQNZ-LRtI/AAAAAAAAAFA/lVrRp_dIKXQ/S220/18350_103743562980090_100000333400619_93710_6889837_n.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1990276895'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-4729631256980487838</id><published>2010-07-27T15:27:52.846+02:00</published><updated>2010-07-27T15:27:52.846+02:00</updated><title type='text'>Hi
if I have two glade files, both glade files als...</title><content type='html'>Hi&lt;br /&gt;if I have two glade files, both glade files also has the same event name &amp;quot;on_button_clicked&amp;quot;, does it causes an ambiguous function call?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/4729631256980487838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/4729631256980487838'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1280237272846#c4729631256980487838' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-17183053'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-5563200566781108821</id><published>2010-07-08T03:45:53.873+02:00</published><updated>2010-07-08T03:45:53.873+02:00</updated><title type='text'>This tutorial is great you should do more of them,...</title><content type='html'>This tutorial is great you should do more of them, especially screencasts.&lt;br /&gt;&lt;br /&gt;I have converted the C code into Vala and put a link to to your blog here:&lt;br /&gt;&lt;br /&gt;http://vala.posterous.com/using-gtkbuilder-to-load-a-gui-created-by-gla</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/5563200566781108821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/5563200566781108821'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1278553553873#c5563200566781108821' title=''/><author><name>Bob Hazard</name><uri>http://www.blogger.com/profile/15244693817559226798</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_7jxGWu00rFQ/SvVJkALvQVI/AAAAAAAAAKc/MQ6zhuc4sd8/S220/picture-78.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-322296462'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-8438048500600711749</id><published>2010-06-22T05:30:54.619+02:00</published><updated>2010-06-22T05:30:54.619+02:00</updated><title type='text'>If you copy the source code using the &amp;#39;copy to...</title><content type='html'>If you copy the source code using the &amp;#39;copy to clipboard&amp;#39; link in the code block, the resulting Makefile will fail to compile with an error &amp;quot;Makefile:13: *** missing separator.  Stop.&amp;quot;&lt;br /&gt;&lt;br /&gt;This is because there needs to be an actual tab instead of spaces at the start of the $(CC) and rm -f lines.  &lt;br /&gt;&lt;br /&gt;Once I changed these to tabs instead of spaces, this compiled correctly.&lt;br /&gt;&lt;br /&gt;(Just a note in case anyone else was having problems.)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/8438048500600711749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/8438048500600711749'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1277177454619#c8438048500600711749' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-595624125'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-7937043245111230105</id><published>2010-04-04T18:13:37.612+02:00</published><updated>2010-04-04T18:13:37.612+02:00</updated><title type='text'>hi tadeboro, i have a problem &amp;#39;cause i cant do...</title><content type='html'>hi tadeboro, i have a problem &amp;#39;cause i cant do anythig with the application after i compiled, form example when i press any button nothing hapend. coul you help me please-&lt;br /&gt;&lt;br /&gt;thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/7937043245111230105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/7937043245111230105'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1270397617612#c7937043245111230105' title=''/><author><name>ChristianCDMC</name><uri>http://www.blogger.com/profile/09443711534611175187</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-450590619'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-8520705610685044692</id><published>2010-03-09T23:41:48.941+01:00</published><updated>2010-03-09T23:41:48.941+01:00</updated><title type='text'>So, what is this &amp;quot;Data User&amp;quot; column for?...</title><content type='html'>So, what is this &amp;quot;Data User&amp;quot; column for? I only managed to get a Segmentation Fault when is set.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/8520705610685044692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/8520705610685044692'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1268174508941#c8520705610685044692' title=''/><author><name>Marcos</name><uri>http://www.blogger.com/profile/11105010753449815362</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1881895440'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-3485007223598609395</id><published>2009-11-13T18:21:38.981+01:00</published><updated>2009-11-13T18:21:38.981+01:00</updated><title type='text'>Hello.

If you look again at second paragraph unde...</title><content type='html'>Hello.&lt;br /&gt;&lt;br /&gt;If you look again at second paragraph under &lt;b&gt;Signals tab in Glade&lt;/b&gt; section, you&amp;#39;ll notice this: &lt;i&gt;note: if field is not empty, signal will be connected the same way as if you were to call g_signal_connect_swapped macro&lt;/i&gt;. And g_signal_connect_swapped does exactly what you experience: swap user data and widget parameter.&lt;br /&gt;&lt;br /&gt;Now things should make sense;)&lt;br /&gt;&lt;br /&gt;Tadej</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/3485007223598609395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/3485007223598609395'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1258132898981#c3485007223598609395' title=''/><author><name>tadeboro</name><uri>http://www.blogger.com/profile/00632822852423829868</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_CWhKnOVIomU/SeNODINWODI/AAAAAAAAAKY/bkMmhEvNlJ0/S220/me.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-120776970'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-5679678076512365711</id><published>2009-11-13T14:10:20.913+01:00</published><updated>2009-11-13T14:10:20.913+01:00</updated><title type='text'>Hi, nice tutorial.

In your tutorial (and also in ...</title><content type='html'>Hi, nice tutorial.&lt;br /&gt;&lt;br /&gt;In your tutorial (and also in files created with glade-2, the callback functions for events have the form of: &lt;br /&gt;cb_event (GtkWidget *widget, GdkEvent *event, gpointer user_data). &lt;br /&gt;&lt;br /&gt;But when I did some testing using glade-3 I got 1st and 3rd parameters switched. &lt;br /&gt;For instance, for button press event in drawing area I used this drawing area as user data, while for button release event I used the main window. In both callbacks I print out the sizes of the calling widget and the one, passed with the user data. &lt;br /&gt;In both cases the size of the widget passed as user data is displayed first and of the calling widget second, which is exactly vice versa as it should be. &lt;br /&gt;&lt;br /&gt;I was wondering if maybe you have an explanation for this strange behavior, or in other words, what am I doing wrong. And by the way, I was using gtk_builder_connect_signals(...) function.&lt;br /&gt;&lt;br /&gt;Slatrius</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/5679678076512365711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/5679678076512365711'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1258117820913#c5679678076512365711' title=''/><author><name>Slartius</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-401797141'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-2724009202666459163</id><published>2009-11-08T05:22:00.066+01:00</published><updated>2009-11-08T05:22:00.066+01:00</updated><title type='text'>Hmm, interesting! Haven&amp;#39;t caught that one myse...</title><content type='html'>Hmm, interesting! Haven&amp;#39;t caught that one myself...&lt;br /&gt;&lt;br /&gt;&lt;i&gt;pkg-config --cflags --libs gtk+-2.0&lt;/i&gt; links in gmodule-2.0 automatically, but without the linker flag??? My output is:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;-D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Only explicitly adding gmodule-2.0 adds the &lt;i&gt;-Wl,--export-dynamic&lt;/i&gt; linker flag.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;# pkg-config --cflags --libs gmodule-2.0&lt;/i&gt;&lt;br /&gt;&lt;b&gt;-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;And BTW and OT: thanks for answering my other comment on Imagination about the custom cell renderer, you/it helped a lot! Now I have a thumbnail widget which is checkable, a.k.a a permanent selection :-)&lt;br /&gt;&lt;br /&gt;Cheers!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/2724009202666459163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/2724009202666459163'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1257654120066#c2724009202666459163' title=''/><author><name>Todor</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1858065034'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-5915175039141951753</id><published>2009-11-07T09:03:59.688+01:00</published><updated>2009-11-07T09:03:59.688+01:00</updated><title type='text'>@Todor:

G_MODULE_EXPORT is indeed only needed on ...</title><content type='html'>@Todor:&lt;br /&gt;&lt;br /&gt;G_MODULE_EXPORT is indeed only needed on Windows platform, but in order to make your code portable, I would advice to use it whenever you write your code to be used with GtkBuilder (on GNU/Linux, preprocessor will strip it out, so no overhead is added to final binary).&lt;br /&gt;&lt;br /&gt;-Wl, --export-dynamic is only needed on GNU/Linux, Windows platforms will do without it. But manually adding this is not portable, this is why I suggest to add &amp;quot;gmodule-2.0&amp;quot; to pkg-config, since it&amp;#39;ll provide proper linker flags for your platform.&lt;br /&gt;&lt;br /&gt;Tadej</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/5915175039141951753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/5915175039141951753'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1257581039688#c5915175039141951753' title=''/><author><name>tadeboro</name><uri>http://www.blogger.com/profile/00632822852423829868</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_CWhKnOVIomU/SeNODINWODI/AAAAAAAAAKY/bkMmhEvNlJ0/S220/me.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-120776970'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-1052205153828130031</id><published>2009-11-07T01:38:16.926+01:00</published><updated>2009-11-07T01:38:16.926+01:00</updated><title type='text'>On both Ubuntu Jaunty and Karmik G_MODULE_EXPORT -...</title><content type='html'>On both Ubuntu Jaunty and Karmik G_MODULE_EXPORT - as found in the header gmodule.h - expands exactly to nothing, unless you are linking on Win32/64. I have an action, which in the glade file is connected to on_actionAbout_activate and defining it as:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;G_MODULE_EXPORT void on_actionAbout_activate( GtkAction* action, gpointer data ) { ... }&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;gives the error:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;(app:PID): Gtk-WARNING **: Could not find signal handler &amp;#39;on_actionAbout_activate&amp;#39;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;with or without G_MODULE_EXPORT in front. I needed to pass the option &lt;i&gt;-Wl,--export-dynamic&lt;/i&gt; to the linker for it to work.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/1052205153828130031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/1052205153828130031'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1257554296926#c1052205153828130031' title=''/><author><name>Todor</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1858065034'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-943208399491022294</id><published>2009-09-28T22:17:30.292+02:00</published><updated>2009-09-28T22:17:30.292+02:00</updated><title type='text'>Hi you never stop for my more bigf pleasure. a won...</title><content type='html'>Hi you never stop for my more bigf pleasure. a wonderfull tutorial yet. i&amp;#39;m only the 3 rd. Imagination is a beautifull software but could you explain in another post how do you do on this logiciel to realise two tabs and the rest like at right on the top ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/943208399491022294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/943208399491022294'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1254169050292#c943208399491022294' title=''/><author><name>Cenwen</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1665702837'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-7868347055505776920</id><published>2009-09-28T09:23:08.438+02:00</published><updated>2009-09-28T09:23:08.438+02:00</updated><title type='text'>Hi.

&lt;b&gt;gtk_builder_connect_signals&lt;/b&gt; will conne...</title><content type='html'>Hi.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;gtk_builder_connect_signals&lt;/b&gt; will connect handlers to all of the signals you set with glade, so there is no need to call this function more than once on a single GtkBuilder object.&lt;br /&gt;&lt;br /&gt;I guess you would like to send different data to different signals. This cannot be done using &lt;b&gt;gtk_builder_connect_signals&lt;/b&gt;. You&amp;#39;ll either have to use &lt;b&gt;gtk_builder_connect_signals_full&lt;/b&gt;, which will give you total control over the connection process, or manually connect signals whose handlers should get special data.&lt;br /&gt;&lt;br /&gt;Tadej</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/7868347055505776920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/7868347055505776920'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1254122588438#c7868347055505776920' title=''/><author><name>tadeboro</name><uri>http://www.blogger.com/profile/00632822852423829868</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_CWhKnOVIomU/SeNODINWODI/AAAAAAAAAKY/bkMmhEvNlJ0/S220/me.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-120776970'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-4307665269160648887</id><published>2009-09-28T01:52:40.760+02:00</published><updated>2009-09-28T01:52:40.760+02:00</updated><title type='text'>very nice, thank you. and to connect more signals,...</title><content type='html'>very nice, thank you. and to connect more signals, is it correct to call gtk_builder_connect_signals() multiple successive times? like:&lt;br /&gt;gtk_builder_connect_signals( builder, data );&lt;br /&gt;gtk_builder_connect_signals( builder, window3 );&lt;br /&gt;etc.&lt;br /&gt;?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/4307665269160648887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/6608201521873672293/comments/default/4307665269160648887'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html?showComment=1254095560760#c4307665269160648887' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/09/glade3-tutorial-6-signals.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-6608201521873672293' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/6608201521873672293' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1688542403'/></entry></feed>
