summaryrefslogtreecommitdiff
path: root/gtk/gtkmodelmenuitem.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-07-16 17:19:59 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:16 -0400
commit4a4c7131fd5760daafefe7b87dd2792a23692817 (patch)
tree2a032aafe5f0d4eec867843d8d95513b4dbfb821 /gtk/gtkmodelmenuitem.c
parent8a26e8a6ba766ee3207e5c552ea13a99936fd179 (diff)
downloadgtk+-4a4c7131fd5760daafefe7b87dd2792a23692817.tar.gz
modelmenuitem: Care about GtkAccelLabel in get_text
Diffstat (limited to 'gtk/gtkmodelmenuitem.c')
-rw-r--r--gtk/gtkmodelmenuitem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c
index e04ae18a20..9afca4386f 100644
--- a/gtk/gtkmodelmenuitem.c
+++ b/gtk/gtkmodelmenuitem.c
@@ -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))
{