Item
Object Hierarchy:
Granite.Widgets.SourceList.Item
Granite.Widgets.SourceList.Item
Granite.Widgets.SourceList.Item
GLib.Object
GLib.Object
GLib.Object->Granite.Widgets.SourceList.Item
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
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref