summaryrefslogtreecommitdiff
path: root/gtk/gtkmenutrackeritem.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-04-28 14:18:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-04-28 14:20:26 -0400
commit8fff8acbac56daf4de967f5ab8ed805391cd9e4b (patch)
tree4365f87ad261897160b7ed4733f596212f7252db /gtk/gtkmenutrackeritem.c
parent6429b33f44bbc8cae1ace22d96b1a3cb9c3df45d (diff)
downloadgtk+-8fff8acbac56daf4de967f5ab8ed805391cd9e4b.tar.gz
GtkMenuTrackerItem: Add support for display-hint
This commit adds a getter for the display-hint attribute.
Diffstat (limited to 'gtk/gtkmenutrackeritem.c')
-rw-r--r--gtk/gtkmenutrackeritem.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkmenutrackeritem.c b/gtk/gtkmenutrackeritem.c
index ddf20dc5b9..232ac37df6 100644
--- a/gtk/gtkmenutrackeritem.c
+++ b/gtk/gtkmenutrackeritem.c
@@ -674,6 +674,16 @@ gtk_menu_tracker_item_get_special (GtkMenuTrackerItem *self)
return special;
}
+const gchar *
+gtk_menu_tracker_item_get_display_hint (GtkMenuTrackerItem *self)
+{
+ const gchar *display_hint = NULL;
+
+ g_menu_item_get_attribute (self->item, "display-hint", "&s", &display_hint);
+
+ return display_hint;
+}
+
GMenuModel *
_gtk_menu_tracker_item_get_link (GtkMenuTrackerItem *self,
const gchar *link_name)