since: 2.4

Declaration [src]

gtk_widget_list_mnemonic_labels (
  GtkWidget* widget

Description [src]

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_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 must call g_list_foreach (result, (GFunc)g_object_ref, NULL) first, and then unref all the widgets afterwards.

Available since: 2.4

Return value

Type: A list of GtkWidget*

The list of mnemonic labels; free this list with g_list_free() when you are done with it.

The caller of the method takes ownership of the returned data container, but not the data inside it.