GtkWidget::get_name

string get_name(void);

This method returns the name of the calling widget. If no name has been set for the widget, this will be in the format GtkWidget.

get_name() is very useful where the widget could be one of many, e.g. in a callback that is used by several different widgets.

See also: get_type, set_name() .