Top |
HdyActionRowHdyActionRow — A GtkListBox row used to present actions. |
GtkWidget * | 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_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
The HdyActionRow widget can have a title, a subtitle and an icon. The row can receive additional widgets at its end, or prefix widgets at its start.
It is convenient to present a preference and its related actions.
HdyActionRow is unactivatable by default, giving it an activatable widget will automatically make it activatable, but unsetting it won't change the row's activatability.
The GtkWindow implementation of the GtkBuildable interface supports setting a child at its end by omitting 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 has a main CSS node with name row.
It contains the subnode box.header for its main horizontal box, and box.title for the vertical box containing the title and subtitle labels.
It contains subnodes label.title and label.subtitle representing respectively the title label and subtitle label.
GtkWidget *
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_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
“activated”
signalvoid user_function (HdyActionRow *self, gpointer user_data)
This signal is emitted after the row has been activated.
self |
The HdyActionRow instance |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 1.0