Gtk.Widget.prototype.list_mnemonic_labels

function list_mnemonic_labels():[Gtk.Widget] {
    // Gjs wrapper for gtk_widget_list_mnemonic_labels()
}

Returns a newly allocated list of the widgets, normally labels, for which this widget is the target of a mnemonic (see for example, Gtk.Label.prototype.set_mnemonic_widget).

The widgets in the list are not individually referenced. If you want to iterate through the list and perform actions involving callbacks that might destroy the widgets, you <emphasis>must</emphasis> call <literal>g_list_foreach (result, (GFunc)g_object_ref, NULL)</literal> first, and then unref all the widgets afterwards.

Since 2.4

Returns

the list of mnemonic labels; free this list with GLib.free when you are done with it.