Now I have a window that includes many buttons that perform this behavior, so itβs natural to use the same signal handler for them. But, however, after the signal, I just can not distinguish them from each other. Yes, I have a pointer to an object, but I canβt say that this is the first button, the second button or something else.
I assumed that the "Name" attribute (I set it togglebutton1) in the meadow can be obtained using the function gtk_widget_get_name, but I'm wrong, instead I got "GtkToggleButton". Xml file says <object class="GtkToggleButton" id="togglebutton1">.
Anyway, to use the id property, or is there a better solution for identifying thoses buttons? Many thanks.
Cauly source
share