summaryrefslogtreecommitdiff
path: root/clients/tui/newt
diff options
context:
space:
mode:
Diffstat (limited to 'clients/tui/newt')
-rw-r--r--clients/tui/newt/nmt-newt-button.c18
-rw-r--r--clients/tui/newt/nmt-newt-checkbox.c16
-rw-r--r--clients/tui/newt/nmt-newt-component.c24
-rw-r--r--clients/tui/newt/nmt-newt-entry-numeric.c30
-rw-r--r--clients/tui/newt/nmt-newt-entry.c34
-rw-r--r--clients/tui/newt/nmt-newt-form.c112
-rw-r--r--clients/tui/newt/nmt-newt-label.c24
-rw-r--r--clients/tui/newt/nmt-newt-listbox.c42
-rw-r--r--clients/tui/newt/nmt-newt-popup.c32
-rw-r--r--clients/tui/newt/nmt-newt-section.c26
-rw-r--r--clients/tui/newt/nmt-newt-stack.c22
-rw-r--r--clients/tui/newt/nmt-newt-textbox.c26
-rw-r--r--clients/tui/newt/nmt-newt-toggle-button.c24
-rw-r--r--clients/tui/newt/nmt-newt-utils.c6
-rw-r--r--clients/tui/newt/nmt-newt-widget.c64
15 files changed, 250 insertions, 250 deletions
diff --git a/clients/tui/newt/nmt-newt-button.c b/clients/tui/newt/nmt-newt-button.c
index 402faf7bbf..88a1d7ecb8 100644
--- a/clients/tui/newt/nmt-newt-button.c
+++ b/clients/tui/newt/nmt-newt-button.c
@@ -203,11 +203,11 @@ nmt_newt_button_class_init(NmtNewtButtonClass *button_class)
/* signals */
/**
- * NmtNewtButton::clicked:
- * @button: the #NmtNewtButton
- *
- * Emitted when the button is clicked.
- */
+ * NmtNewtButton::clicked:
+ * @button: the #NmtNewtButton
+ *
+ * Emitted when the button is clicked.
+ */
signals[CLICKED] = g_signal_new("clicked",
G_OBJECT_CLASS_TYPE(object_class),
G_SIGNAL_RUN_FIRST,
@@ -221,10 +221,10 @@ nmt_newt_button_class_init(NmtNewtButtonClass *button_class)
/* properties */
/**
- * NmtNewtButton:label:
- *
- * The button's label
- */
+ * NmtNewtButton:label:
+ *
+ * The button's label
+ */
g_object_class_install_property(
object_class,
PROP_LABEL,
diff --git a/clients/tui/newt/nmt-newt-checkbox.c b/clients/tui/newt/nmt-newt-checkbox.c
index 9e67dbd2f5..1a1cdfa654 100644
--- a/clients/tui/newt/nmt-newt-checkbox.c
+++ b/clients/tui/newt/nmt-newt-checkbox.c
@@ -195,19 +195,19 @@ nmt_newt_checkbox_class_init(NmtNewtCheckboxClass *checkbox_class)
component_class->build_component = nmt_newt_checkbox_build_component;
/**
- * NmtNewtCheckbox:label:
- *
- * The checkbox's label
- */
+ * NmtNewtCheckbox:label:
+ *
+ * The checkbox's label
+ */
g_object_class_install_property(
object_class,
PROP_LABEL,
g_param_spec_string("label", "", "", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtCheckbox:active:
- *
- * The checkbox's checked state
- */
+ * NmtNewtCheckbox:active:
+ *
+ * The checkbox's checked state
+ */
g_object_class_install_property(
object_class,
PROP_ACTIVE,
diff --git a/clients/tui/newt/nmt-newt-component.c b/clients/tui/newt/nmt-newt-component.c
index a7007e2c41..3f63ab864c 100644
--- a/clients/tui/newt/nmt-newt-component.c
+++ b/clients/tui/newt/nmt-newt-component.c
@@ -123,8 +123,8 @@ nmt_newt_component_size_allocate(NmtNewtWidget *widget, int x, int y, int width,
newtGrid grid;
/* You can't directly place a newtComponent, so we create a newtGrid,
- * position the component within that, and then place the grid.
- */
+ * position the component within that, and then place the grid.
+ */
grid = newtCreateGrid(1, 1);
newtGridSetField(grid,
0,
@@ -267,21 +267,21 @@ nmt_newt_component_class_init(NmtNewtComponentClass *component_class)
/* properties */
/**
- * NmtNewtComponent:component:
- *
- * The component's #newtComponent
- */
+ * NmtNewtComponent:component:
+ *
+ * The component's #newtComponent
+ */
g_object_class_install_property(
object_class,
PROP_COMPONENT,
g_param_spec_pointer("component", "", "", G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtComponent:sensitive:
- *
- * Whether the component is sensitive. Insensitive components will
- * be skipped over in the keyboard tab chain, and may be displayed
- * differently.
- */
+ * NmtNewtComponent:sensitive:
+ *
+ * Whether the component is sensitive. Insensitive components will
+ * be skipped over in the keyboard tab chain, and may be displayed
+ * differently.
+ */
g_object_class_install_property(
object_class,
PROP_SENSITIVE,
diff --git a/clients/tui/newt/nmt-newt-entry-numeric.c b/clients/tui/newt/nmt-newt-entry-numeric.c
index 10d6490c7c..c6c5d0778d 100644
--- a/clients/tui/newt/nmt-newt-entry-numeric.c
+++ b/clients/tui/newt/nmt-newt-entry-numeric.c
@@ -196,12 +196,12 @@ nmt_newt_entry_numeric_class_init(NmtNewtEntryNumericClass *entry_class)
object_class->get_property = nmt_newt_entry_numeric_get_property;
/**
- * NmtNewtEntryNumeric:minimum:
- *
- * The minimum #NmtNewtWidget:valid value for the entry. If this
- * is non-negative, then the entry will not allow negative numbers
- * to be entered.
- */
+ * NmtNewtEntryNumeric:minimum:
+ *
+ * The minimum #NmtNewtWidget:valid value for the entry. If this
+ * is non-negative, then the entry will not allow negative numbers
+ * to be entered.
+ */
g_object_class_install_property(
object_class,
PROP_MINIMUM,
@@ -213,10 +213,10 @@ nmt_newt_entry_numeric_class_init(NmtNewtEntryNumericClass *entry_class)
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtEntryNumeric:maximum:
- *
- * The maximum #NmtNewtWidget:valid value for the entry.
- */
+ * NmtNewtEntryNumeric:maximum:
+ *
+ * The maximum #NmtNewtWidget:valid value for the entry.
+ */
g_object_class_install_property(
object_class,
PROP_MAXIMUM,
@@ -228,11 +228,11 @@ nmt_newt_entry_numeric_class_init(NmtNewtEntryNumericClass *entry_class)
G_MAXINT64,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtEntryNumeric:optional:
- *
- * If %TRUE, allow empty string to indicate some default value.
- * It means the property is optional and can be left at the default
- */
+ * NmtNewtEntryNumeric:optional:
+ *
+ * If %TRUE, allow empty string to indicate some default value.
+ * It means the property is optional and can be left at the default
+ */
g_object_class_install_property(
object_class,
PROP_OPTIONAL,
diff --git a/clients/tui/newt/nmt-newt-entry.c b/clients/tui/newt/nmt-newt-entry.c
index 6fbc302134..5ab1f79273 100644
--- a/clients/tui/newt/nmt-newt-entry.c
+++ b/clients/tui/newt/nmt-newt-entry.c
@@ -457,28 +457,28 @@ nmt_newt_entry_class_init(NmtNewtEntryClass *entry_class)
component_class->build_component = nmt_newt_entry_build_component;
/**
- * NmtNewtEntry:text
- *
- * The entry's text
- */
+ * NmtNewtEntry:text
+ *
+ * The entry's text
+ */
g_object_class_install_property(
object_class,
PROP_TEXT,
g_param_spec_string("text", "", "", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtEntry:width
- *
- * The entry's width in characters
- */
+ * NmtNewtEntry:width
+ *
+ * The entry's width in characters
+ */
g_object_class_install_property(
object_class,
PROP_WIDTH,
g_param_spec_int("width", "", "", -1, 80, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtEntry:flags
- *
- * The entry's #NmtNewtEntryFlags
- */
+ * NmtNewtEntry:flags
+ *
+ * The entry's #NmtNewtEntryFlags
+ */
g_object_class_install_property(
object_class,
PROP_FLAGS,
@@ -490,11 +490,11 @@ nmt_newt_entry_class_init(NmtNewtEntryClass *entry_class)
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtEntry:password
- *
- * %TRUE if #NmtNewtEntry:flags contains %NMT_NEWT_ENTRY_PASSWORD,
- * %FALSE if not.
- */
+ * NmtNewtEntry:password
+ *
+ * %TRUE if #NmtNewtEntry:flags contains %NMT_NEWT_ENTRY_PASSWORD,
+ * %FALSE if not.
+ */
g_object_class_install_property(
object_class,
PROP_PASSWORD,
diff --git a/clients/tui/newt/nmt-newt-form.c b/clients/tui/newt/nmt-newt-form.c
index d9ad278bc9..76e03c5aa7 100644
--- a/clients/tui/newt/nmt-newt-form.c
+++ b/clients/tui/newt/nmt-newt-form.c
@@ -281,8 +281,8 @@ nmt_newt_form_iterate(NmtNewtForm *form)
if (es.reason == NEWT_EXIT_COMPONENT) {
/* The user hit Return/Space on a component; update the form focus
- * to point that component, and activate it.
- */
+ * to point that component, and activate it.
+ */
focus = nmt_newt_widget_find_component(priv->content, es.u.co);
if (focus) {
nmt_newt_form_set_focus(form, focus);
@@ -572,11 +572,11 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
/* signals */
/**
- * NmtNewtForm::quit:
- * @form: the #NmtNewtForm
- *
- * Emitted when the form quits.
- */
+ * NmtNewtForm::quit:
+ * @form: the #NmtNewtForm
+ *
+ * Emitted when the form quits.
+ */
signals[QUIT] = g_signal_new("quit",
G_OBJECT_CLASS_TYPE(object_class),
G_SIGNAL_RUN_FIRST,
@@ -588,11 +588,11 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
0);
/**
- * NmtNewtForm:title:
- *
- * The form's title. If non-%NULL, this will be displayed above
- * the form in its border.
- */
+ * NmtNewtForm:title:
+ *
+ * The form's title. If non-%NULL, this will be displayed above
+ * the form in its border.
+ */
g_object_class_install_property(
object_class,
PROP_TITLE,
@@ -602,11 +602,11 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
/**
- * NmtNewtForm:fullscreen:
- *
- * If %TRUE, the form will fill the entire "screen" (ie, terminal
- * window).
- */
+ * NmtNewtForm:fullscreen:
+ *
+ * If %TRUE, the form will fill the entire "screen" (ie, terminal
+ * window).
+ */
g_object_class_install_property(
object_class,
PROP_FULLSCREEN,
@@ -616,11 +616,11 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
FALSE,
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
/**
- * NmtNewtForm:fullscreen-vertical:
- *
- * If %TRUE, the form will fill the entire "screen" (ie, terminal
- * window) vertically, but not necessarily horizontally.
- */
+ * NmtNewtForm:fullscreen-vertical:
+ *
+ * If %TRUE, the form will fill the entire "screen" (ie, terminal
+ * window) vertically, but not necessarily horizontally.
+ */
g_object_class_install_property(
object_class,
PROP_FULLSCREEN_VERTICAL,
@@ -630,11 +630,11 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
FALSE,
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
/**
- * NmtNewtForm:fullscreen-horizontal:
- *
- * If %TRUE, the form will fill the entire "screen" (ie, terminal
- * window) horizontally, but not necessarily vertically.
- */
+ * NmtNewtForm:fullscreen-horizontal:
+ *
+ * If %TRUE, the form will fill the entire "screen" (ie, terminal
+ * window) horizontally, but not necessarily vertically.
+ */
g_object_class_install_property(
object_class,
PROP_FULLSCREEN_HORIZONTAL,
@@ -644,11 +644,11 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
FALSE,
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
/**
- * NmtNewtForm:x:
- *
- * The form's x coordinate. By default, the form will be centered
- * on the screen.
- */
+ * NmtNewtForm:x:
+ *
+ * The form's x coordinate. By default, the form will be centered
+ * on the screen.
+ */
g_object_class_install_property(
object_class,
PROP_X,
@@ -660,11 +660,11 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
/**
- * NmtNewtForm:y:
- *
- * The form's y coordinate. By default, the form will be centered
- * on the screen.
- */
+ * NmtNewtForm:y:
+ *
+ * The form's y coordinate. By default, the form will be centered
+ * on the screen.
+ */
g_object_class_install_property(
object_class,
PROP_Y,
@@ -676,11 +676,11 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
/**
- * NmtNewtForm:width:
- *
- * The form's width. By default, this will be determined by the
- * width of the form's content.
- */
+ * NmtNewtForm:width:
+ *
+ * The form's width. By default, this will be determined by the
+ * width of the form's content.
+ */
g_object_class_install_property(
object_class,
PROP_WIDTH,
@@ -692,11 +692,11 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
/**
- * NmtNewtForm:height:
- *
- * The form's height. By default, this will be determined by the
- * height of the form's content.
- */
+ * NmtNewtForm:height:
+ *
+ * The form's height. By default, this will be determined by the
+ * height of the form's content.
+ */
g_object_class_install_property(
object_class,
PROP_HEIGHT,
@@ -708,10 +708,10 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
/**
- * NmtNewtForm:padding:
- *
- * The padding between the form's content and its border.
- */
+ * NmtNewtForm:padding:
+ *
+ * The padding between the form's content and its border.
+ */
g_object_class_install_property(
object_class,
PROP_PADDING,
@@ -723,11 +723,11 @@ nmt_newt_form_class_init(NmtNewtFormClass *form_class)
1,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
/**
- * NmtNewtForm:escape-exits:
- *
- * If %TRUE, then hitting the Escape key will cause the form to
- * exit.
- */
+ * NmtNewtForm:escape-exits:
+ *
+ * If %TRUE, then hitting the Escape key will cause the form to
+ * exit.
+ */
g_object_class_install_property(
object_class,
PROP_ESCAPE_EXITS,
diff --git a/clients/tui/newt/nmt-newt-label.c b/clients/tui/newt/nmt-newt-label.c
index 08b31e9232..d31514f9db 100644
--- a/clients/tui/newt/nmt-newt-label.c
+++ b/clients/tui/newt/nmt-newt-label.c
@@ -265,19 +265,19 @@ nmt_newt_label_class_init(NmtNewtLabelClass *label_class)
component_class->build_component = nmt_newt_label_build_component;
/**
- * NmtNewtLabel:text:
- *
- * The label's text
- */
+ * NmtNewtLabel:text:
+ *
+ * The label's text
+ */
g_object_class_install_property(
object_class,
PROP_TEXT,
g_param_spec_string("text", "", "", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtLabel:style:
- *
- * The label's #NmtNewtLabelStyle
- */
+ * NmtNewtLabel:style:
+ *
+ * The label's #NmtNewtLabelStyle
+ */
g_object_class_install_property(object_class,
PROP_STYLE,
g_param_spec_int("style",
@@ -288,10 +288,10 @@ nmt_newt_label_class_init(NmtNewtLabelClass *label_class)
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtLabel:highlight:
- *
- * Whether the label is highlighted.
- */
+ * NmtNewtLabel:highlight:
+ *
+ * Whether the label is highlighted.
+ */
g_object_class_install_property(
object_class,
PROP_HIGHLIGHT,
diff --git a/clients/tui/newt/nmt-newt-listbox.c b/clients/tui/newt/nmt-newt-listbox.c
index 18da63d634..c6d51dab17 100644
--- a/clients/tui/newt/nmt-newt-listbox.c
+++ b/clients/tui/newt/nmt-newt-listbox.c
@@ -450,10 +450,10 @@ nmt_newt_listbox_class_init(NmtNewtListboxClass *listbox_class)
/* properties */
/**
- * NmtNewtListbox:height:
- *
- * The listbox's height, or -1 if it has no fixed height.
- */
+ * NmtNewtListbox:height:
+ *
+ * The listbox's height, or -1 if it has no fixed height.
+ */
g_object_class_install_property(object_class,
PROP_HEIGHT,
g_param_spec_int("height",
@@ -464,10 +464,10 @@ nmt_newt_listbox_class_init(NmtNewtListboxClass *listbox_class)
-1,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtListbox:flags:
- *
- * The listbox's #NmtNewtListboxFlags.
- */
+ * NmtNewtListbox:flags:
+ *
+ * The listbox's #NmtNewtListboxFlags.
+ */
g_object_class_install_property(
object_class,
PROP_FLAGS,
@@ -479,10 +479,10 @@ nmt_newt_listbox_class_init(NmtNewtListboxClass *listbox_class)
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtListbox:active:
- *
- * The currently-selected row.
- */
+ * NmtNewtListbox:active:
+ *
+ * The currently-selected row.
+ */
g_object_class_install_property(object_class,
PROP_ACTIVE,
g_param_spec_int("active",
@@ -493,20 +493,20 @@ nmt_newt_listbox_class_init(NmtNewtListboxClass *listbox_class)
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtListbox:active-key:
- *
- * The key of the currently-selected row.
- */
+ * NmtNewtListbox:active-key:
+ *
+ * The key of the currently-selected row.
+ */
g_object_class_install_property(
object_class,
PROP_ACTIVE_KEY,
g_param_spec_pointer("active-key", "", "", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtListbox:skip-null-keys:
- *
- * If %TRUE, rows with %NULL key values will be skipped over when
- * navigating the list with the arrow keys.
- */
+ * NmtNewtListbox:skip-null-keys:
+ *
+ * If %TRUE, rows with %NULL key values will be skipped over when
+ * navigating the list with the arrow keys.
+ */
g_object_class_install_property(
object_class,
PROP_SKIP_NULL_KEYS,
diff --git a/clients/tui/newt/nmt-newt-popup.c b/clients/tui/newt/nmt-newt-popup.c
index 1c1175fd2b..a388cbaf64 100644
--- a/clients/tui/newt/nmt-newt-popup.c
+++ b/clients/tui/newt/nmt-newt-popup.c
@@ -140,14 +140,14 @@ nmt_newt_popup_activated(NmtNewtWidget *widget)
&button_x,
&button_y);
/* (window_x + button_x) is the screen X coordinate of the newtComponent. A
- * newtButton labelled "Foo" is rendered as " <Foo>" (with a preceding
- * space), so the "F" is at (window_x + button_x + 2). We've added 1 column
- * of padding to the left of the listbox, so we need to position the popup
- * at (window_x + button_x + 1) in order for its text to be aligned with the
- * button's text. (The x and y coordinates given to NmtNewtForm are the
- * coordinates of the top left of the window content, ignoring the border
- * graphics.)
- */
+ * newtButton labelled "Foo" is rendered as " <Foo>" (with a preceding
+ * space), so the "F" is at (window_x + button_x + 2). We've added 1 column
+ * of padding to the left of the listbox, so we need to position the popup
+ * at (window_x + button_x + 1) in order for its text to be aligned with the
+ * button's text. (The x and y coordinates given to NmtNewtForm are the
+ * coordinates of the top left of the window content, ignoring the border
+ * graphics.)
+ */
window_x += button_x + 1;
window_y += button_y - priv->active;
@@ -316,10 +316,10 @@ nmt_newt_popup_class_init(NmtNewtPopupClass *popup_class)
component_class->build_component = nmt_newt_popup_build_component;
/**
- * NmtNewtPopup:active:
- *
- * The index of the currently-active entry.
- */
+ * NmtNewtPopup:active:
+ *
+ * The index of the currently-active entry.
+ */
g_object_class_install_property(object_class,
PROP_ACTIVE,
g_param_spec_uint("active",
@@ -330,10 +330,10 @@ nmt_newt_popup_class_init(NmtNewtPopupClass *popup_class)
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtPopup:active-id:
- *
- * The textual ID of the currently-active entry.
- */
+ * NmtNewtPopup:active-id:
+ *
+ * The textual ID of the currently-active entry.
+ */
g_object_class_install_property(
object_class,
PROP_ACTIVE_ID,
diff --git a/clients/tui/newt/nmt-newt-section.c b/clients/tui/newt/nmt-newt-section.c
index 6f481a0679..2f5d870fd9 100644
--- a/clients/tui/newt/nmt-newt-section.c
+++ b/clients/tui/newt/nmt-newt-section.c
@@ -262,10 +262,10 @@ adjust_border_for_allocation(NmtNewtSectionPrivate *priv, int height)
int i;
/* We have to use a series of one-line labels rather than a multi-line
- * textbox, because newt will hide any component that's partially offscreen,
- * but we want the on-screen portion of the border to show even if part of
- * it is offscreen.
- */
+ * textbox, because newt will hide any component that's partially offscreen,
+ * but we want the on-screen portion of the border to show even if part of
+ * it is offscreen.
+ */
if (height == 1) {
nmt_newt_widget_set_visible(priv->border_closed_label, TRUE);
@@ -379,10 +379,10 @@ nmt_newt_section_class_init(NmtNewtSectionClass *section_class)
/* properties */
/**
- * NmtNewtSection:show-border:
- *
- * %TRUE if the section should show a border along the left side.
- */
+ * NmtNewtSection:show-border:
+ *
+ * %TRUE if the section should show a border along the left side.
+ */
g_object_class_install_property(
object_class,
PROP_SHOW_BORDER,
@@ -393,11 +393,11 @@ nmt_newt_section_class_init(NmtNewtSectionClass *section_class)
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtSection:open:
- *
- * %TRUE if the section is open (ie, its body is visible), %FALSE
- * if not.
- */
+ * NmtNewtSection:open:
+ *
+ * %TRUE if the section is open (ie, its body is visible), %FALSE
+ * if not.
+ */
g_object_class_install_property(
object_class,
PROP_OPEN,
diff --git a/clients/tui/newt/nmt-newt-stack.c b/clients/tui/newt/nmt-newt-stack.c
index 6f74976af9..2af2a9ddd6 100644
--- a/clients/tui/newt/nmt-newt-stack.c
+++ b/clients/tui/newt/nmt-newt-stack.c
@@ -97,9 +97,9 @@ nmt_newt_stack_size_request(NmtNewtWidget *widget, int *width, int *height)
}
/* We size-request all pages so that embedded NmtPageGrids will
- * participate in their size-grouping (so that switching pages
- * won't result in the column widths changing).
- */
+ * participate in their size-grouping (so that switching pages
+ * won't result in the column widths changing).
+ */
for (i = 0; i < priv->children->len; i++) {
nmt_newt_widget_size_request(priv->children->pdata[i], &child_width, &child_height);
if (i == priv->active) {
@@ -312,10 +312,10 @@ nmt_newt_stack_class_init(NmtNewtStackClass *stack_class)
container_class->child_validity_changed = nmt_newt_stack_child_validity_changed;
/**
- * NmtNewtStack:active:
- *
- * The index of the active page
- */
+ * NmtNewtStack:active:
+ *
+ * The index of the active page
+ */
g_object_class_install_property(object_class,
PROP_ACTIVE,
g_param_spec_uint("active",
@@ -326,10 +326,10 @@ nmt_newt_stack_class_init(NmtNewtStackClass *stack_class)
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtStack:active-id:
- *
- * The ID of the active page
- */
+ * NmtNewtStack:active-id:
+ *
+ * The ID of the active page
+ */
g_object_class_install_property(
object_class,
PROP_ACTIVE_ID,
diff --git a/clients/tui/newt/nmt-newt-textbox.c b/clients/tui/newt/nmt-newt-textbox.c
index b5de5dc1d7..591f399a81 100644
--- a/clients/tui/newt/nmt-newt-textbox.c
+++ b/clients/tui/newt/nmt-newt-textbox.c
@@ -237,19 +237,19 @@ nmt_newt_textbox_class_init(NmtNewtTextboxClass *textbox_class)
component_class->build_component = nmt_newt_textbox_build_component;
/**
- * NmtNewtTextbox:text:
- *
- * The textbox's text
- */
+ * NmtNewtTextbox:text:
+ *
+ * The textbox's text
+ */
g_object_class_install_property(
object_class,
PROP_TEXT,
g_param_spec_string("text", "", "", "", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtTextbox:flags:
- *
- * The textbox's flags
- */
+ * NmtNewtTextbox:flags:
+ *
+ * The textbox's flags
+ */
g_object_class_install_property(
object_class,
PROP_FLAGS,
@@ -261,11 +261,11 @@ nmt_newt_textbox_class_init(NmtNewtTextboxClass *textbox_class)
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtTextbox:wrap-width:
- *
- * The width in characters at which the textbox's text
- * will wrap, or 0 if it does not wrap.
- */
+ * NmtNewtTextbox:wrap-width:
+ *
+ * The width in characters at which the textbox's text
+ * will wrap, or 0 if it does not wrap.
+ */
g_object_class_install_property(
object_class,
PROP_WRAP_WIDTH,
diff --git a/clients/tui/newt/nmt-newt-toggle-button.c b/clients/tui/newt/nmt-newt-toggle-button.c
index 60fdd98414..adeb69bc76 100644
--- a/clients/tui/newt/nmt-newt-toggle-button.c
+++ b/clients/tui/newt/nmt-newt-toggle-button.c
@@ -185,28 +185,28 @@ nmt_newt_toggle_button_class_init(NmtNewtToggleButtonClass *button_class)
widget_class->activated = nmt_newt_toggle_button_activated;
/**
- * NmtNewtToggleButton:on-label:
- *
- * The label the button displays when it is "on".
- */
+ * NmtNewtToggleButton:on-label:
+ *
+ * The label the button displays when it is "on".
+ */
g_object_class_install_property(
object_class,
PROP_ON_LABEL,
g_param_spec_string("on-label", "", "", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtToggleButton:off-label:
- *
- * The label the button displays when it is "off".
- */
+ * NmtNewtToggleButton:off-label:
+ *
+ * The label the button displays when it is "off".
+ */
g_object_class_install_property(
object_class,
PROP_OFF_LABEL,
g_param_spec_string("off-label", "", "", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtToggleButton:active:
- *
- * Whether the button is currently "on" (%TRUE) or "off" (%FALSE)
- */
+ * NmtNewtToggleButton:active:
+ *
+ * Whether the button is currently "on" (%TRUE) or "off" (%FALSE)
+ */
g_object_class_install_property(
object_class,
PROP_ACTIVE,
diff --git a/clients/tui/newt/nmt-newt-utils.c b/clients/tui/newt/nmt-newt-utils.c
index 9c6bb9b4e3..6a67638455 100644
--- a/clients/tui/newt/nmt-newt-utils.c
+++ b/clients/tui/newt/nmt-newt-utils.c
@@ -58,9 +58,9 @@ nmt_newt_dialog_g_log_handler(const char * log_domain,
message);
/* newtWinMessage() wraps the window too narrowly by default, so
- * we don't want to use that. But we intentionally avoid using any
- * NmtNewt classes, to avoid possible error recursion.
- */
+ * we don't want to use that. But we intentionally avoid using any
+ * NmtNewt classes, to avoid possible error recursion.
+ */
newtGetScreenSize(&screen_width, &screen_height);
text = newtTextboxReflowed(-1, -1, full_message, MAX(70, screen_width - 10), 0, 0, 0);
diff --git a/clients/tui/newt/nmt-newt-widget.c b/clients/tui/newt/nmt-newt-widget.c
index 1a5ac0ff24..bbce69704d 100644
--- a/clients/tui/newt/nmt-newt-widget.c
+++ b/clients/tui/newt/nmt-newt-widget.c
@@ -557,13 +557,13 @@ nmt_newt_widget_class_init(NmtNewtWidgetClass *widget_class)
/* signals */
/**
- * NmtNewtWidget::needs-rebuild:
- * @widget: the #NmtNewtWidget
- *
- * Emitted when nmt_newt_widget_need_rebuild() is called on @widget
- * or any of its children. This signal propagates up the container
- * hierarchy, eventually reaching the top-level #NmtNewtForm.
- */
+ * NmtNewtWidget::needs-rebuild:
+ * @widget: the #NmtNewtWidget
+ *
+ * Emitted when nmt_newt_widget_need_rebuild() is called on @widget
+ * or any of its children. This signal propagates up the container
+ * hierarchy, eventually reaching the top-level #NmtNewtForm.
+ */
signals[NEEDS_REBUILD] = g_signal_new("needs-rebuild",
G_OBJECT_CLASS_TYPE(object_class),
G_SIGNAL_RUN_FIRST,
@@ -575,11 +575,11 @@ nmt_newt_widget_class_init(NmtNewtWidgetClass *widget_class)
0);
/**
- * NmtNewtWidget::activated:
- * @widget: the #NmtNewtWidget
- *
- * Emitted when the widget's #newtComponent is activated.
- */
+ * NmtNewtWidget::activated:
+ * @widget: the #NmtNewtWidget
+ *
+ * Emitted when the widget's #newtComponent is activated.
+ */
signals[ACTIVATED] = g_signal_new("activated",
G_OBJECT_CLASS_TYPE(object_class),
G_SIGNAL_RUN_FIRST,
@@ -593,10 +593,10 @@ nmt_newt_widget_class_init(NmtNewtWidgetClass *widget_class)
/* properties */
/**
- * NmtNewtWidget:parent:
- *
- * The widget's parent widget, or %NULL if it has no parent.
- */
+ * NmtNewtWidget:parent:
+ *
+ * The widget's parent widget, or %NULL if it has no parent.
+ */
g_object_class_install_property(object_class,
PROP_PARENT,
g_param_spec_object("parent",
@@ -605,32 +605,32 @@ nmt_newt_widget_class_init(NmtNewtWidgetClass *widget_class)
NMT_TYPE_NEWT_WIDGET,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtWidget:visible:
- *
- * Whether the widget is visible. Invisible widgets do not get
- * realized or sized.
- */
+ * NmtNewtWidget:visible:
+ *
+ * Whether the widget is visible. Invisible widgets do not get
+ * realized or sized.
+ */
g_object_class_install_property(
object_class,
PROP_VISIBLE,
g_param_spec_boolean("visible", "", "", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtWidget:valid:
- *
- * Whether the widget's content is considered valid. Components
- * determine their own validity. A container, by default, is
- * considered valid if all of its children are valid.
- */
+ * NmtNewtWidget:valid:
+ *
+ * Whether the widget's content is considered valid. Components
+ * determine their own validity. A container, by default, is
+ * considered valid if all of its children are valid.
+ */
g_object_class_install_property(
object_class,
PROP_VALID,
g_param_spec_boolean("valid", "", "", TRUE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
- * NmtNewtWidget:exit-on-activate:
- *
- * If %TRUE, the widget will call nmt_newt_form_quit() on its form
- * when it is activated.
- */
+ * NmtNewtWidget:exit-on-activate:
+ *
+ * If %TRUE, the widget will call nmt_newt_form_quit() on its form
+ * when it is activated.
+ */
g_object_class_install_property(
object_class,
PROP_EXIT_ON_ACTIVATE,