modelmenuitem: Care about GtkAccelLabel in get_text

This commit is contained in:
Timm Bäder 2017-07-16 17:19:59 +02:00 committed by Matthias Clasen
parent 8a26e8a6ba
commit 4a4c7131fd

View File

@ -273,6 +273,8 @@ gtk_model_menu_item_get_text (GtkModelMenuItem *item)
if (GTK_IS_LABEL (child))
return gtk_label_get_text (GTK_LABEL (child));
else if (GTK_IS_ACCEL_LABEL (child))
return gtk_accel_label_get_label (GTK_ACCEL_LABEL (child));
if (GTK_IS_CONTAINER (child))
{