Name

mt_widget_ref — references a widget

Synopsis

MT_WIDGET *mt_widget_ref(MT_WIDGET *widget);

Description

Returns a new reference of the widget. You should use this function when passing the pointer to widget outside the current function called from MetaTheme (metatheme_draw_widget for example).

It returns a new allocated "structure" which you must destroy by calling mt_widget_unref. Be careful, you can call this function only once for each widget.