blob: 7b5dd53e1c33484ea4d71b9328b613c4045e5ce3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/*
* Copyright (C) 2018 Purism SPC
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
#endif
#include "hdy-version.h"
#include "hdy-preferences-row.h"
G_BEGIN_DECLS
#define HDY_TYPE_ACTION_ROW (hdy_action_row_get_type())
HDY_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (HdyActionRow, hdy_action_row, HDY, ACTION_ROW, HdyPreferencesRow)
/**
* HdyActionRowClass
* @parent_class: The parent class
* @activate: Activates the row to trigger its main action.
*/
struct _HdyActionRowClass
{
GtkListBoxRowClass parent_class;
void (*activate) (HdyActionRow *self);
/*< private >*/
gpointer padding[4];
};
HDY_AVAILABLE_IN_ALL
GtkWidget *hdy_action_row_new (void);
HDY_AVAILABLE_IN_ALL
const gchar *hdy_action_row_get_subtitle (HdyActionRow *self);
HDY_AVAILABLE_IN_ALL
void hdy_action_row_set_subtitle (HdyActionRow *self,
const gchar *subtitle);
HDY_AVAILABLE_IN_ALL
const gchar *hdy_action_row_get_icon_name (HdyActionRow *self);
HDY_AVAILABLE_IN_ALL
void hdy_action_row_set_icon_name (HdyActionRow *self,
const gchar *icon_name);
HDY_AVAILABLE_IN_ALL
GtkWidget *hdy_action_row_get_activatable_widget (HdyActionRow *self);
HDY_AVAILABLE_IN_ALL
void hdy_action_row_set_activatable_widget (HdyActionRow *self,
GtkWidget *widget);
HDY_AVAILABLE_IN_ALL
gboolean hdy_action_row_get_use_underline (HdyActionRow *self);
HDY_AVAILABLE_IN_ALL
void hdy_action_row_set_use_underline (HdyActionRow *self,
gboolean use_underline);
HDY_AVAILABLE_IN_ALL
void hdy_action_row_add_prefix (HdyActionRow *self,
GtkWidget *widget);
HDY_AVAILABLE_IN_ALL
void hdy_action_row_activate (HdyActionRow *self);
G_END_DECLS
|