Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | font_manager_preference_row_new () |
void | font_manager_preference_row_set_action_widget () |
void | font_manager_preference_row_append_child () |
void | font_manager_preference_row_set_reveal_child () |
GtkWidget * | font_manager_preference_row_get_action_widget () |
GtkWidget * | action-widget | Write |
char * | icon-name | Read / Write |
char * | subtitle | Read / Write |
char * | title | Read / Write |
FontManagerPreferenceRow implements GtkAccessible, GtkBuildable and GtkConstraintTarget.
GtkWidget * font_manager_preference_row_new (const gchar *title
,const gchar *subtitle
,const gchar *icon_name
,GtkWidget *action_widget
);
title |
Preference name |
|
subtitle |
Description of preference or |
[nullable] |
icon_name |
Icon to display or |
[nullable] |
action_widget |
GtkWidget to control preference state or |
[nullable] |
A newly created FontManagerPreferenceRow.
Free the returned object using
. g_object_unref()
[transfer full]
void font_manager_preference_row_set_action_widget (FontManagerPreferenceRow *self
,GtkWidget *control
);
Sets the action widget for self
.
void font_manager_preference_row_append_child (FontManagerPreferenceRow *parent
,FontManagerPreferenceRow *child
);
Appends child
to parent
. Children are typically preferences which are
dependent on the parents state and are therefore hidden by default.
If the action widget set for parent
is a GtkSwitch then children will
be revealed and concealed automatically when the widget is activated.
Otherwise use font_manager_preference_row_set_reveal_child to control their visibility.
void font_manager_preference_row_set_reveal_child (FontManagerPreferenceRow *self
,gboolean visible
);
GtkWidget *
font_manager_preference_row_get_action_widget
(FontManagerPreferenceRow *self
);
The GtkWidget set using
font_manager_preference_row_get_action_widget or NULL
.
[transfer none][nullable]
#define FONT_MANAGER_TYPE_PREFERENCE_ROW (font_manager_preference_row_get_type ())
“action-widget”
property “action-widget” GtkWidget *
Widget to control preference state.
Owner: FontManagerPreferenceRow
Flags: Write
“icon-name”
property “icon-name” char *
Named icon to display.
Owner: FontManagerPreferenceRow
Flags: Read / Write
Default value: NULL
“subtitle”
property “subtitle” char *
Short description of preference.
Owner: FontManagerPreferenceRow
Flags: Read / Write
Default value: NULL