Now that I'm having a window including many buttons which perform similar behavior so it's natural to use same signal handler for them. But however after the signal happens I just can't differ them from each other. Yes, I have the pointer to the object, but I can't tell is it the first button, the second button, or something else.
I supposed The 'Name' attribute (I set it to 'togglebutton1') in glade can be obtained with gtk_widget_get_name
function, but I'm wrong, I got 'GtkToggleButton' instead. The xml file says: <object class="GtkToggleButton" id="togglebutton1">
.
So is there anyway to make use of the 'id' property, or is there any better solution to identify thoses buttons? thanks a lot.