mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
GtkMenuTrackerItem: Add support for display-hint
This commit adds a getter for the display-hint attribute.
This commit is contained in:
parent
6429b33f44
commit
8fff8acbac
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user