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) diff --git a/gtk/gtkmenutrackeritem.h b/gtk/gtkmenutrackeritem.h index ca5a665a9c..48c6dd4891 100644 --- a/gtk/gtkmenutrackeritem.h +++ b/gtk/gtkmenutrackeritem.h @@ -50,6 +50,8 @@ GtkMenuTrackerItem * _gtk_menu_tracker_item_new (GtkActi const gchar * gtk_menu_tracker_item_get_special (GtkMenuTrackerItem *self); +const gchar * gtk_menu_tracker_item_get_display_hint (GtkMenuTrackerItem *self); + GtkActionObservable * _gtk_menu_tracker_item_get_observable (GtkMenuTrackerItem *self); gboolean gtk_menu_tracker_item_get_is_separator (GtkMenuTrackerItem *self);