Is it possible to add private data to a GtkWidget
?
Background:
I have many GtkCheckBotton
s, all these widgets are connected to the same callback. In the callback, I would like to handle the widgets private data (or at least distinguish between the widgets).
Example:
// checkbox signal callback
void on_checkbox_tcoggled(GtkWidget* widget, gpointer data) {
MyClass* me = data;
MyPrivateData* priv = widget->priv; // ???
MyClass_foo(me, priv);
}