[gtk+] modelmenuitem: Care about GtkAccelLabel in get_text
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] modelmenuitem: Care about GtkAccelLabel in get_text
- Date: Thu, 20 Jul 2017 02:00:41 +0000 (UTC)
commit 4a4c7131fd5760daafefe7b87dd2792a23692817
Author: Timm Bäder <mail baedert org>
Date: Sun Jul 16 17:19:59 2017 +0200
modelmenuitem: Care about GtkAccelLabel in get_text
gtk/gtkmodelmenuitem.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c
index e04ae18..9afca43 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))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]