Description:
public class Item :
Object
A source list entry.
Any change made to any of its properties will be automatically reflected by the
Granite.Widgets.SourceList widget.
Since:
0.2
Content:
Properties:
- public Icon activatable { get; set; }
An activatable icon that works like a button.
- public string activatable_tooltip { get; set; }
The tooltip for the activatable icon.
- public string badge { get; set; }
A badge shown next to the item's name.
- public bool editable { get; set; }
Whether the item's name can be edited from within the source list.
- public Icon icon { get; set; }
Primary icon.
- public string? markup { get; set; }
Markup to be used instead of
Granite.Widgets.SourceList.ExpandableItem.name This would mean that &, <, etc have to be escaped in the text, but basic
formatting can be done on the item with HTML style tags.
- public string name { get; set; }
The item's name. Primary and most important information.
- public ExpandableItem parent { get; }
- public bool selectable { get; set; }
Whether the item can be selected or not.
- public string? tooltip { get; set; }
- public bool visible { get; set; }
Whether the item should appear in the source list's tree or not.
Creation methods:
Methods:
Signals:
- public virtual signal void action_activated ()
- public virtual signal void activated ()
Emitted when the item is double-clicked or when it is selected and one of
the keys: Space, Shift+Space, Return or Enter is pressed. This signal is also for editable items.
- public virtual signal void edited (string new_name)
Emitted when the user has finished editing the item's name.
Inherited Members:
All known members inherited from class GLib.Object