Top |
HdyActionRowHdyActionRow — A GtkListBox row used to present actions. |
HdyActionRow * | hdy_action_row_new () |
const gchar * | hdy_action_row_get_title () |
void | hdy_action_row_set_title () |
const gchar * | hdy_action_row_get_subtitle () |
void | hdy_action_row_set_subtitle () |
const gchar * | hdy_action_row_get_icon_name () |
void | hdy_action_row_set_icon_name () |
GtkWidget * | hdy_action_row_get_activatable_widget () |
void | hdy_action_row_set_activatable_widget () |
gboolean | hdy_action_row_get_use_underline () |
void | hdy_action_row_set_use_underline () |
void | hdy_action_row_add_action () |
void | hdy_action_row_add_prefix () |
void | hdy_action_row_activate () |
GtkWidget * | activatable-widget | Read / Write |
gchar * | icon-name | Read / Write |
gchar * | subtitle | Read / Write |
gchar * | title | Read / Write |
gboolean | use-underline | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkListBoxRow ╰── HdyPreferencesRow ╰── HdyActionRow ├── HdyComboRow ╰── HdyExpanderRow
The HdyActionRow widget can have a title, a subtitle and an icon. The row can receive action widgets at its end, prefix widgets at its start or widgets below it.
Note that action widgets are packed starting from the end.
It is convenient to present a list of preferences and their related actions.
The GtkWindow implementation of the GtkBuildable interface supports setting a child as an action widget by specifying “action” as the “type” attribute of a <child> element.
It also supports setting a child as a prefix widget by specifying “prefix” as the “type” attribute of a <child> element.
HdyActionRow *
hdy_action_row_new (void
);
Creates a new HdyActionRow.
Since: 0.0.6
const gchar *
hdy_action_row_get_title (HdyActionRow *self
);
Gets the title for self
.
Since: 0.0.6
void hdy_action_row_set_title (HdyActionRow *self
,const gchar *title
);
Sets the title for self
.
Since: 0.0.6
const gchar *
hdy_action_row_get_subtitle (HdyActionRow *self
);
Gets the subtitle for self
.
Since: 0.0.6
void hdy_action_row_set_subtitle (HdyActionRow *self
,const gchar *subtitle
);
Sets the subtitle for self
.
Since: 0.0.6
const gchar *
hdy_action_row_get_icon_name (HdyActionRow *self
);
Gets the icon name for self
.
Since: 0.0.6
void hdy_action_row_set_icon_name (HdyActionRow *self
,const gchar *icon_name
);
Sets the icon name for self
.
Since: 0.0.6
GtkWidget *
hdy_action_row_get_activatable_widget (HdyActionRow *self
);
Gets the widget activated when self
is activated.
the widget activated when self
is
activated, or NULL
if none has been set.
[nullable][transfer none]
Since: 0.0.7
void hdy_action_row_set_activatable_widget (HdyActionRow *self
,GtkWidget *widget
);
Sets the widget to activate when self
is activated, either by clicking
on it, by calling hdy_action_row_activate()
, or via mnemonics in the title or
the subtitle. See the “use_underline” property to enable mnemonics.
The target widget will be activated by emitting the GtkWidget::mnemonic-activate signal on it.
Since: 0.0.7
gboolean
hdy_action_row_get_use_underline (HdyActionRow *self
);
Gets whether an embedded underline in the text of the title and subtitle
labels indicates a mnemonic. See hdy_action_row_set_use_underline()
.
TRUE
if an embedded underline in the title and subtitle labels
indicates the mnemonic accelerator keys.
Since: 0.0.6
void hdy_action_row_set_use_underline (HdyActionRow *self
,gboolean use_underline
);
If true, an underline in the text of the title and subtitle labels indicates the next character should be used for the mnemonic accelerator key.
Since: 0.0.6
void hdy_action_row_add_action (HdyActionRow *self
,GtkWidget *widget
);
Adds an action widget to self
.
Since: 0.0.6
void hdy_action_row_add_prefix (HdyActionRow *self
,GtkWidget *widget
);
Adds a prefix widget to self
.
Since: 0.0.6
struct HdyActionRowClass { GtkListBoxRowClass parent_class; void (*activate) (HdyActionRow *self); };
“activatable-widget”
property“activatable-widget” GtkWidget *
The activatable widget for this row.
Flags: Read / Write
Since: 0.0.7
“icon-name”
property“icon-name” gchar *
The icon name for this row.
Flags: Read / Write
Default value: ""
Since: 0.0.6
“subtitle”
property“subtitle” gchar *
The subtitle for this row.
Flags: Read / Write
Default value: ""
Since: 0.0.6
“title”
property“title” gchar *
The title for this row.
Flags: Read / Write
Default value: ""
Since: 0.0.6