Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GTK detailed_signal

Tags:

gtk

Where can I find a list of detailed_signal (used in g_signal functions)?

like image 817
stdio Avatar asked Oct 17 '10 17:10

stdio


1 Answers

In the index. Signals are indicated by ClassName::signal-name.

You don't have to use the signal detail in g_signal functions though - most signals don't have details. The only one I regularly use is GObject::notify.

Connect to a non-detailed signal like this:

g_signal_connect(button, "clicked", G_CALLBACK(on_button_clicked), data);

Connect to a detailed signal like this:

g_signal_connect(button, "notify::label", G_CALLBACK(on_button_label_notify), data);
like image 162
ptomato Avatar answered Nov 15 '22 08:11

ptomato