get_widget_name

string get_widget_name(GtkWidget widget);

Returns the name of a widget which has been loaded from a glade file.

If the widget has been created the "normal" way and not with glade, NULL is returned.

In the example you could use a
var_dump( libglade::get_widget_name( $btnClose));
which would return string(8) "btnClose".