summaryrefslogtreecommitdiff
path: root/clients/tui
diff options
context:
space:
mode:
Diffstat (limited to 'clients/tui')
-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
-rw-r--r--clients/tui/nm-editor-bindings.c8
-rw-r--r--clients/tui/nmt-address-list.c16
-rw-r--r--clients/tui/nmt-connect-connection-list.c4
-rw-r--r--clients/tui/nmt-device-entry.c44
-rw-r--r--clients/tui/nmt-edit-connection-list.c114
-rw-r--r--clients/tui/nmt-editor-page.c8
-rw-r--r--clients/tui/nmt-editor-section.c30
-rw-r--r--clients/tui/nmt-editor.c24
-rw-r--r--clients/tui/nmt-ip-entry.c30
-rw-r--r--clients/tui/nmt-mac-entry.c34
-rw-r--r--clients/tui/nmt-mtu-entry.c8
-rw-r--r--clients/tui/nmt-page-bond.c4
-rw-r--r--clients/tui/nmt-page-wifi.c6
-rw-r--r--clients/tui/nmt-password-dialog.c32
-rw-r--r--clients/tui/nmt-password-fields.c40
-rw-r--r--clients/tui/nmt-route-editor.c10
-rw-r--r--clients/tui/nmt-route-entry.c32
-rw-r--r--clients/tui/nmt-route-table.c22
-rw-r--r--clients/tui/nmt-slave-list.c36
-rw-r--r--clients/tui/nmt-widget-list.c86
-rw-r--r--clients/tui/nmtui-connect.c12
36 files changed, 550 insertions, 550 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,
diff --git a/clients/tui/nm-editor-bindings.c b/clients/tui/nm-editor-bindings.c
index 442d0355f9..c8863c90b9 100644
--- a/clients/tui/nm-editor-bindings.c
+++ b/clients/tui/nm-editor-bindings.c
@@ -1069,8 +1069,8 @@ vlan_settings_changed(GObject *object, GParamSpec *pspec, gpointer user_data)
return;
/* If the id in INTERFACE_NAME changed, and ID is either unset, or was previously
- * in sync with INTERFACE_NAME, then update ID.
- */
+ * in sync with INTERFACE_NAME, then update ID.
+ */
if (id != ifname_id && (id == binding->last_ifname_id || id == 0)) {
binding->updating = TRUE;
g_object_set(G_OBJECT(binding->s_vlan), NM_SETTING_VLAN_ID, ifname_id, NULL);
@@ -1078,8 +1078,8 @@ vlan_settings_changed(GObject *object, GParamSpec *pspec, gpointer user_data)
}
/* If the PARENT in INTERFACE_NAME changed, and PARENT is either unset, or was
- * previously in sync with INTERFACE_NAME, then update PARENT.
- */
+ * previously in sync with INTERFACE_NAME, then update PARENT.
+ */
if (g_strcmp0(parent, ifname_parent) != 0
&& (g_strcmp0(parent, binding->last_ifname_parent) == 0 || !parent || !*parent)) {
binding->updating = TRUE;
diff --git a/clients/tui/nmt-address-list.c b/clients/tui/nmt-address-list.c
index f859b7ef7f..c62871c05f 100644
--- a/clients/tui/nmt-address-list.c
+++ b/clients/tui/nmt-address-list.c
@@ -237,10 +237,10 @@ nmt_address_list_class_init(NmtAddressListClass *list_class)
widget_list_class->remove_clicked = nmt_address_list_remove_clicked;
/**
- * NmtAddressList:list-type:
- *
- * The type of address the list holds.
- */
+ * NmtAddressList:list-type:
+ *
+ * The type of address the list holds.
+ */
g_object_class_install_property(
object_class,
PROP_LIST_TYPE,
@@ -252,10 +252,10 @@ nmt_address_list_class_init(NmtAddressListClass *list_class)
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtAddressList:strings:
- *
- * The strings in the list's entries.
- */
+ * NmtAddressList:strings:
+ *
+ * The strings in the list's entries.
+ */
g_object_class_install_property(object_class,
PROP_STRINGS,
g_param_spec_boxed("strings",
diff --git a/clients/tui/nmt-connect-connection-list.c b/clients/tui/nmt-connect-connection-list.c
index f651c7cfc5..ae346d733a 100644
--- a/clients/tui/nmt-connect-connection-list.c
+++ b/clients/tui/nmt-connect-connection-list.c
@@ -157,8 +157,8 @@ sort_connections(gconstpointer a, gconstpointer b)
}
/* If one is an NMConnection and the other is an NMAccessPoint, the
- * connection comes first.
- */
+ * connection comes first.
+ */
if (nmta->conn)
return -1;
else if (nmtb->conn)
diff --git a/clients/tui/nmt-device-entry.c b/clients/tui/nmt-device-entry.c
index 04a2bb4f3e..399f1a623b 100644
--- a/clients/tui/nmt-device-entry.c
+++ b/clients/tui/nmt-device-entry.c
@@ -491,10 +491,10 @@ nmt_device_entry_class_init(NmtDeviceEntryClass *deventry_class)
object_class->finalize = nmt_device_entry_finalize;
/**
- * NmtDeviceEntry:label:
- *
- * The entry's label
- */
+ * NmtDeviceEntry:label:
+ *
+ * The entry's label
+ */
g_object_class_install_property(
object_class,
PROP_LABEL,
@@ -504,21 +504,21 @@ nmt_device_entry_class_init(NmtDeviceEntryClass *deventry_class)
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtDeviceEntry:width:
- *
- * The entry's width in characters
- */
+ * NmtDeviceEntry: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));
/**
- * NmtDeviceEntry:hardware-type:
- *
- * The type of #NMDevice to limit the entry to, or %G_TYPE_NONE
- * if the entry is for a virtual device and should not accept
- * hardware addresses.
- */
+ * NmtDeviceEntry:hardware-type:
+ *
+ * The type of #NMDevice to limit the entry to, or %G_TYPE_NONE
+ * if the entry is for a virtual device and should not accept
+ * hardware addresses.
+ */
g_object_class_install_property(object_class,
PROP_HARDWARE_TYPE,
g_param_spec_gtype("hardware-type",
@@ -527,10 +527,10 @@ nmt_device_entry_class_init(NmtDeviceEntryClass *deventry_class)
G_TYPE_NONE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtDeviceEntry:interface-name:
- *
- * The interface name of the device identified by the entry.
- */
+ * NmtDeviceEntry:interface-name:
+ *
+ * The interface name of the device identified by the entry.
+ */
g_object_class_install_property(
object_class,
PROP_INTERFACE_NAME,
@@ -540,10 +540,10 @@ nmt_device_entry_class_init(NmtDeviceEntryClass *deventry_class)
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtDeviceEntry:mac-address:
- *
- * The hardware address of the device identified by the entry.
- */
+ * NmtDeviceEntry:mac-address:
+ *
+ * The hardware address of the device identified by the entry.
+ */
g_object_class_install_property(
object_class,
PROP_MAC_ADDRESS,
diff --git a/clients/tui/nmt-edit-connection-list.c b/clients/tui/nmt-edit-connection-list.c
index c51f80cff2..fb5cc8078e 100644
--- a/clients/tui/nmt-edit-connection-list.c
+++ b/clients/tui/nmt-edit-connection-list.c
@@ -428,11 +428,11 @@ nmt_edit_connection_list_class_init(NmtEditConnectionListClass *list_class)
/* signals */
/**
- * NmtEditConnectionList::add-connection:
- * @list: the #NmtEditConnectionList
- *
- * Emitted when the user clicks the list's "Add" button.
- */
+ * NmtEditConnectionList::add-connection:
+ * @list: the #NmtEditConnectionList
+ *
+ * Emitted when the user clicks the list's "Add" button.
+ */
signals[ADD_CONNECTION] =
g_signal_new("add-connection",
G_OBJECT_CLASS_TYPE(object_class),
@@ -445,13 +445,13 @@ nmt_edit_connection_list_class_init(NmtEditConnectionListClass *list_class)
0);
/**
- * NmtEditConnectionList::edit-connection:
- * @list: the #NmtEditConnectionList
- * @connection: the connection to edit
- *
- * Emitted when the user clicks the list's "Edit" button, or
- * hits "Return" on the listbox.
- */
+ * NmtEditConnectionList::edit-connection:
+ * @list: the #NmtEditConnectionList
+ * @connection: the connection to edit
+ *
+ * Emitted when the user clicks the list's "Edit" button, or
+ * hits "Return" on the listbox.
+ */
signals[EDIT_CONNECTION] =
g_signal_new("edit-connection",
G_OBJECT_CLASS_TYPE(object_class),
@@ -465,12 +465,12 @@ nmt_edit_connection_list_class_init(NmtEditConnectionListClass *list_class)
NM_TYPE_CONNECTION);
/**
- * NmtEditConnectionList::remove-connection:
- * @list: the #NmtEditConnectionList
- * @connection: the connection to remove
- *
- * Emitted when the user clicks the list's "Delete" button.
- */
+ * NmtEditConnectionList::remove-connection:
+ * @list: the #NmtEditConnectionList
+ * @connection: the connection to remove
+ *
+ * Emitted when the user clicks the list's "Delete" button.
+ */
signals[REMOVE_CONNECTION] =
g_signal_new("remove-connection",
G_OBJECT_CLASS_TYPE(object_class),
@@ -486,12 +486,12 @@ nmt_edit_connection_list_class_init(NmtEditConnectionListClass *list_class)
/* properties */
/**
- * NmtEditConnectionList:grouped:
- *
- * If %TRUE, connections should be grouped by type, with headers
- * indicating the types (as in the main connection list). If %FALSE,
- * they will not be grouped (as in slave connection lists).
- */
+ * NmtEditConnectionList:grouped:
+ *
+ * If %TRUE, connections should be grouped by type, with headers
+ * indicating the types (as in the main connection list). If %FALSE,
+ * they will not be grouped (as in slave connection lists).
+ */
g_object_class_install_property(
object_class,
PROP_GROUPED,
@@ -502,21 +502,21 @@ nmt_edit_connection_list_class_init(NmtEditConnectionListClass *list_class)
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtEditConnectionListFilter:
- * @list: the #NmtEditConnectionList
- * @connection: an #NMConnection
- * @user_data: the user data
- *
- * Decides whether @connection should be displayed in @list.
- *
- * Returns: %TRUE or %FALSE
- */
+ * NmtEditConnectionListFilter:
+ * @list: the #NmtEditConnectionList
+ * @connection: an #NMConnection
+ * @user_data: the user data
+ *
+ * Decides whether @connection should be displayed in @list.
+ *
+ * Returns: %TRUE or %FALSE
+ */
/**
- * NmtEditConnectionList:connection-filter:
- *
- * A callback function for filtering which connections appear in
- * the list.
- */
+ * NmtEditConnectionList:connection-filter:
+ *
+ * A callback function for filtering which connections appear in
+ * the list.
+ */
g_object_class_install_property(
object_class,
PROP_CONNECTION_FILTER,
@@ -525,10 +525,10 @@ nmt_edit_connection_list_class_init(NmtEditConnectionListClass *list_class)
"",
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtEditConnectionList:connection-filter-data:
- *
- * Data for the #NmtEditConnectionList:connection-filter.
- */
+ * NmtEditConnectionList:connection-filter-data:
+ *
+ * Data for the #NmtEditConnectionList:connection-filter.
+ */
g_object_class_install_property(
object_class,
PROP_CONNECTION_FILTER_DATA,
@@ -538,11 +538,11 @@ nmt_edit_connection_list_class_init(NmtEditConnectionListClass *list_class)
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtEditConnectionList:extra-widget:
- *
- * An extra button widget to display at the bottom of the button
- * box.
- */
+ * NmtEditConnectionList:extra-widget:
+ *
+ * An extra button widget to display at the bottom of the button
+ * box.
+ */
g_object_class_install_property(
object_class,
PROP_EXTRA_WIDGET,
@@ -553,12 +553,12 @@ nmt_edit_connection_list_class_init(NmtEditConnectionListClass *list_class)
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtEditConnectionList:connections:
- *
- * The list of connections in the widget.
- *
- * Element-Type: #NMConnection
- */
+ * NmtEditConnectionList:connections:
+ *
+ * The list of connections in the widget.
+ *
+ * Element-Type: #NMConnection
+ */
g_object_class_install_property(object_class,
PROP_CONNECTIONS,
g_param_spec_boxed("connections",
@@ -568,10 +568,10 @@ nmt_edit_connection_list_class_init(NmtEditConnectionListClass *list_class)
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
- * NmtEditConnectionList:num-connections:
- *
- * The number of connections in the widget.
- */
+ * NmtEditConnectionList:num-connections:
+ *
+ * The number of connections in the widget.
+ */
g_object_class_install_property(object_class,
PROP_NUM_CONNECTIONS,
g_param_spec_int("num-connections",
diff --git a/clients/tui/nmt-editor-page.c b/clients/tui/nmt-editor-page.c
index dec56ba04e..51b9da66f3 100644
--- a/clients/tui/nmt-editor-page.c
+++ b/clients/tui/nmt-editor-page.c
@@ -160,10 +160,10 @@ nmt_editor_page_class_init(NmtEditorPageClass *page_class)
/* properties */
/**
- * NmtEditorPage:connection:
- *
- * The page's #NMConnection.
- */
+ * NmtEditorPage:connection:
+ *
+ * The page's #NMConnection.
+ */
g_object_class_install_property(
object_class,
PROP_CONNECTION,
diff --git a/clients/tui/nmt-editor-section.c b/clients/tui/nmt-editor-section.c
index 4fbdd16ec7..73fc24dfd4 100644
--- a/clients/tui/nmt-editor-section.c
+++ b/clients/tui/nmt-editor-section.c
@@ -68,8 +68,8 @@ rebuild_header(NmtEditorSection *section)
NmtEditorSectionPrivate *priv = NMT_EDITOR_SECTION_GET_PRIVATE(section);
/* Removing any widget in an NmtEditorGrid removes its whole row, so we can
- * remove the existing title/widget/toggle by asking to remove toggle.
- */
+ * remove the existing title/widget/toggle by asking to remove toggle.
+ */
nmt_newt_container_remove(NMT_NEWT_CONTAINER(priv->header), priv->toggle);
nmt_editor_grid_append(priv->header, priv->title, priv->header_widget, priv->toggle);
@@ -222,10 +222,10 @@ nmt_editor_section_class_init(NmtEditorSectionClass *section_class)
/* properties */
/**
- * NmtEditorSection:title:
- *
- * The section's title.
- */
+ * NmtEditorSection:title:
+ *
+ * The section's title.
+ */
g_object_class_install_property(
object_class,
PROP_TITLE,
@@ -236,10 +236,10 @@ nmt_editor_section_class_init(NmtEditorSectionClass *section_class)
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtEditorSection:show-by-default:
- *
- * Whether the section should be expanded by default.
- */
+ * NmtEditorSection:show-by-default:
+ *
+ * Whether the section should be expanded by default.
+ */
g_object_class_install_property(
object_class,
PROP_SHOW_BY_DEFAULT,
@@ -250,11 +250,11 @@ nmt_editor_section_class_init(NmtEditorSectionClass *section_class)
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtEditorSection:header-widget:
- *
- * The widget (if any) that appears between the section title and its toggle
- * button.
- */
+ * NmtEditorSection:header-widget:
+ *
+ * The widget (if any) that appears between the section title and its toggle
+ * button.
+ */
g_object_class_install_property(
object_class,
PROP_HEADER_WIDGET,
diff --git a/clients/tui/nmt-editor.c b/clients/tui/nmt-editor.c
index be68e6c5b6..d94adfa112 100644
--- a/clients/tui/nmt-editor.c
+++ b/clients/tui/nmt-editor.c
@@ -166,8 +166,8 @@ save_connection_and_exit(NmtNewtButton *button, gpointer user_data)
}
/* Clear secrets so they don't lay around in memory; they'll get
- * requested again anyway next time the connection is edited.
- */
+ * requested again anyway next time the connection is edited.
+ */
nm_connection_clear_secrets(priv->orig_connection);
} else {
nm_client_add_connection_async(nm_client,
@@ -334,8 +334,8 @@ nmt_editor_constructed(GObject *object)
hardware_type = priv->type_data->device_type;
/* For connections involving multiple network devices, clarify which one
- * NMSettingConnection:interface-name refers to.
- */
+ * NMSettingConnection:interface-name refers to.
+ */
if (nm_connection_is_type(priv->edit_connection, NM_SETTING_PPPOE_SETTING_NAME))
deventry_label = _("Ethernet device");
else
@@ -507,10 +507,10 @@ nmt_editor_class_init(NmtEditorClass *entry_class)
object_class->finalize = nmt_editor_finalize;
/**
- * NmtEditor:connection:
- *
- * The connection being edited.
- */
+ * NmtEditor:connection:
+ *
+ * The connection being edited.
+ */
g_object_class_install_property(
object_class,
PROP_CONNECTION,
@@ -520,10 +520,10 @@ nmt_editor_class_init(NmtEditorClass *entry_class)
NM_TYPE_CONNECTION,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtEditor:type-data:
- *
- * The #NmEditorConnectionTypeData for #NmtEditor:connection.
- */
+ * NmtEditor:type-data:
+ *
+ * The #NmEditorConnectionTypeData for #NmtEditor:connection.
+ */
g_object_class_install_property(
object_class,
PROP_TYPE_DATA,
diff --git a/clients/tui/nmt-ip-entry.c b/clients/tui/nmt-ip-entry.c
index c22775bc7e..9173ad2a70 100644
--- a/clients/tui/nmt-ip-entry.c
+++ b/clients/tui/nmt-ip-entry.c
@@ -175,10 +175,10 @@ nmt_ip_entry_class_init(NmtIPEntryClass *entry_class)
object_class->get_property = nmt_ip_entry_get_property;
/**
- * NmtIPEntry:family:
- *
- * The address family. Eg, %AF_INET
- */
+ * NmtIPEntry:family:
+ *
+ * The address family. Eg, %AF_INET
+ */
g_object_class_install_property(
object_class,
PROP_FAMILY,
@@ -190,11 +190,11 @@ nmt_ip_entry_class_init(NmtIPEntryClass *entry_class)
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtIPEntry:prefix:
- *
- * If %TRUE, the entry accepts address/prefix combinations. If
- * %FALSE it accepts just addresses.
- */
+ * NmtIPEntry:prefix:
+ *
+ * If %TRUE, the entry accepts address/prefix combinations. If
+ * %FALSE it accepts just addresses.
+ */
g_object_class_install_property(
object_class,
PROP_PREFIX,
@@ -204,12 +204,12 @@ nmt_ip_entry_class_init(NmtIPEntryClass *entry_class)
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtIPEntry:optional:
- *
- * If %TRUE, the entry will be #NmtNewtWidget:valid when it is
- * empty. If %FALSE, it will only be valid when it contains a
- * valid address or address/prefix.
- */
+ * NmtIPEntry:optional:
+ *
+ * If %TRUE, the entry will be #NmtNewtWidget:valid when it is
+ * empty. If %FALSE, it will only be valid when it contains a
+ * valid address or address/prefix.
+ */
g_object_class_install_property(
object_class,
PROP_OPTIONAL,
diff --git a/clients/tui/nmt-mac-entry.c b/clients/tui/nmt-mac-entry.c
index 5101c326da..77804f319d 100644
--- a/clients/tui/nmt-mac-entry.c
+++ b/clients/tui/nmt-mac-entry.c
@@ -110,8 +110,8 @@ mac_validator(NmtNewtEntry *entry, const char *text, gpointer user_data)
g_free(fixed);
/* FIXME: NmtNewtEntry doesn't correctly deal with us calling set_text()
- * from inside the validator.
- */
+ * from inside the validator.
+ */
nmt_newt_widget_needs_rebuild(NMT_NEWT_WIDGET(entry));
}
@@ -193,11 +193,11 @@ nmt_mac_entry_class_init(NmtMacEntryClass *entry_class)
object_class->get_property = nmt_mac_entry_get_property;
/**
- * NmtMacEntry:mac-length:
- *
- * The length in bytes of the hardware address type the entry
- * accepts: either %ETH_ALEN or %INFINIBAND_ALEN.
- */
+ * NmtMacEntry:mac-length:
+ *
+ * The length in bytes of the hardware address type the entry
+ * accepts: either %ETH_ALEN or %INFINIBAND_ALEN.
+ */
g_object_class_install_property(object_class,
PROP_MAC_LENGTH,
g_param_spec_int("mac-length",
@@ -208,11 +208,11 @@ nmt_mac_entry_class_init(NmtMacEntryClass *entry_class)
ETH_ALEN,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtMacEntry:mac-address:
- *
- * The MAC address, as a string (as with the various #NMSetting
- * "mac-address" properties).
- */
+ * NmtMacEntry:mac-address:
+ *
+ * The MAC address, as a string (as with the various #NMSetting
+ * "mac-address" properties).
+ */
g_object_class_install_property(
object_class,
PROP_MAC_ADDRESS,
@@ -222,11 +222,11 @@ nmt_mac_entry_class_init(NmtMacEntryClass *entry_class)
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtMacEntry:entry-type:
- *
- * The type of the #NmtMacEntry. Can be either used for plain
- * MAC addresses or for the extended format for cloned MAC addresses.
- */
+ * NmtMacEntry:entry-type:
+ *
+ * The type of the #NmtMacEntry. Can be either used for plain
+ * MAC addresses or for the extended format for cloned MAC addresses.
+ */
g_object_class_install_property(
object_class,
PROP_ENTRY_TYPE,
diff --git a/clients/tui/nmt-mtu-entry.c b/clients/tui/nmt-mtu-entry.c
index 7b5c304590..980b4c88d8 100644
--- a/clients/tui/nmt-mtu-entry.c
+++ b/clients/tui/nmt-mtu-entry.c
@@ -160,10 +160,10 @@ nmt_mtu_entry_class_init(NmtMtuEntryClass *entry_class)
object_class->get_property = nmt_mtu_entry_get_property;
/**
- * NmtMtuEntry:mtu:
- *
- * The contents of the entry, as a number.
- */
+ * NmtMtuEntry:mtu:
+ *
+ * The contents of the entry, as a number.
+ */
g_object_class_install_property(object_class,
PROP_MTU,
g_param_spec_int("mtu",
diff --git a/clients/tui/nmt-page-bond.c b/clients/tui/nmt-page-bond.c
index d732b58ba8..553b9943e9 100644
--- a/clients/tui/nmt-page-bond.c
+++ b/clients/tui/nmt-page-bond.c
@@ -36,8 +36,8 @@ typedef struct {
NmtSlaveList *slaves;
/* Note: when adding new options to the UI also ensure they are
- * initialized in bond_connection_setup_func()
- */
+ * initialized in bond_connection_setup_func()
+ */
NmtNewtPopup * mode;
NmtNewtEntry * primary;
NmtNewtPopup * monitoring;
diff --git a/clients/tui/nmt-page-wifi.c b/clients/tui/nmt-page-wifi.c
index 279fd80f10..866c045ea3 100644
--- a/clients/tui/nmt-page-wifi.c
+++ b/clients/tui/nmt-page-wifi.c
@@ -172,9 +172,9 @@ nmt_page_wifi_constructed(GObject *object)
s_wsec = nm_connection_get_setting_wireless_security(conn);
if (!s_wsec) {
/* It makes things simpler if we always have a
- * NMSettingWirelessSecurity; we'll hold a ref on one, and add
- * it to and remove it from the connection as needed.
- */
+ * NMSettingWirelessSecurity; we'll hold a ref on one, and add
+ * it to and remove it from the connection as needed.
+ */
s_wsec = NM_SETTING_WIRELESS_SECURITY(nm_setting_wireless_security_new());
}
priv->s_wsec = g_object_ref_sink(s_wsec);
diff --git a/clients/tui/nmt-password-dialog.c b/clients/tui/nmt-password-dialog.c
index 2704312429..fb2cf7d712 100644
--- a/clients/tui/nmt-password-dialog.c
+++ b/clients/tui/nmt-password-dialog.c
@@ -91,8 +91,8 @@ maybe_save_input_and_exit(NmtNewtWidget *widget, gpointer dialog)
int i;
/* This gets invoked when the user types Return in the final entry,
- * but the form may not be fully valid in that case.
- */
+ * but the form may not be fully valid in that case.
+ */
if (!nmt_newt_widget_get_valid(priv->secret_grid))
return;
@@ -245,10 +245,10 @@ nmt_password_dialog_class_init(NmtPasswordDialogClass *dialog_class)
object_class->finalize = nmt_password_dialog_finalize;
/**
- * NmtPasswordDialog:request-id:
- *
- * The request ID from the #NMSecretAgentSimple
- */
+ * NmtPasswordDialog:request-id:
+ *
+ * The request ID from the #NMSecretAgentSimple
+ */
g_object_class_install_property(
object_class,
PROP_REQUEST_ID,
@@ -258,10 +258,10 @@ nmt_password_dialog_class_init(NmtPasswordDialogClass *dialog_class)
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtPasswordDialog:prompt:
- *
- * The prompt text.
- */
+ * NmtPasswordDialog:prompt:
+ *
+ * The prompt text.
+ */
g_object_class_install_property(
object_class,
PROP_PROMPT,
@@ -271,12 +271,12 @@ nmt_password_dialog_class_init(NmtPasswordDialogClass *dialog_class)
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtPasswordDialog:secrets:
- *
- * The array of request secrets
- *
- * Element-Type: #NMSecretAgentSimpleSecret.
- */
+ * NmtPasswordDialog:secrets:
+ *
+ * The array of request secrets
+ *
+ * Element-Type: #NMSecretAgentSimpleSecret.
+ */
g_object_class_install_property(
object_class,
PROP_SECRETS,
diff --git a/clients/tui/nmt-password-fields.c b/clients/tui/nmt-password-fields.c
index 90e2e88246..6c11b3acfa 100644
--- a/clients/tui/nmt-password-fields.c
+++ b/clients/tui/nmt-password-fields.c
@@ -246,19 +246,19 @@ nmt_password_fields_class_init(NmtPasswordFieldsClass *entry_class)
object_class->finalize = nmt_password_fields_finalize;
/**
- * NmtPasswordFields:width:
- *
- * The width in characters of the password entry
- */
+ * NmtPasswordFields:width:
+ *
+ * The width in characters of the password entry
+ */
g_object_class_install_property(
object_class,
PROP_WIDTH,
g_param_spec_int("width", "", "", -1, 80, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtPasswordFields:extras:
- *
- * The extra widgets to show
- */
+ * NmtPasswordFields:extras:
+ *
+ * The extra widgets to show
+ */
g_object_class_install_property(
object_class,
PROP_EXTRAS,
@@ -270,19 +270,19 @@ nmt_password_fields_class_init(NmtPasswordFieldsClass *entry_class)
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtPasswordFields:password:
- *
- * The entered password.
- */
+ * NmtPasswordFields:password:
+ *
+ * The entered password.
+ */
g_object_class_install_property(
object_class,
PROP_PASSWORD,
g_param_spec_string("password", "", "", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtPasswordFields:always-ask:
- *
- * The current state of the "Always ask" checkbox.
- */
+ * NmtPasswordFields:always-ask:
+ *
+ * The current state of the "Always ask" checkbox.
+ */
g_object_class_install_property(
object_class,
PROP_ALWAYS_ASK,
@@ -292,10 +292,10 @@ nmt_password_fields_class_init(NmtPasswordFieldsClass *entry_class)
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtPasswordFields:show-password:
- *
- * The current state of the "Show password" checkbox.
- */
+ * NmtPasswordFields:show-password:
+ *
+ * The current state of the "Show password" checkbox.
+ */
g_object_class_install_property(
object_class,
PROP_SHOW_PASSWORD,
diff --git a/clients/tui/nmt-route-editor.c b/clients/tui/nmt-route-editor.c
index 143e26b0e7..54741c1a5a 100644
--- a/clients/tui/nmt-route-editor.c
+++ b/clients/tui/nmt-route-editor.c
@@ -170,11 +170,11 @@ nmt_route_editor_class_init(NmtRouteEditorClass *entry_class)
object_class->finalize = nmt_route_editor_finalize;
/**
- * NmtRouteEditor:setting:
- *
- * The #NMSettingIP4Config or #NMSettingIP6Config whose routes are
- * being edited.
- */
+ * NmtRouteEditor:setting:
+ *
+ * The #NMSettingIP4Config or #NMSettingIP6Config whose routes are
+ * being edited.
+ */
g_object_class_install_property(
object_class,
PROP_SETTING,
diff --git a/clients/tui/nmt-route-entry.c b/clients/tui/nmt-route-entry.c
index 60e122054d..e8c772152e 100644
--- a/clients/tui/nmt-route-entry.c
+++ b/clients/tui/nmt-route-entry.c
@@ -227,10 +227,10 @@ nmt_route_entry_class_init(NmtRouteEntryClass *entry_class)
widget_class->get_focus_component = nmt_route_entry_get_focus_component;
/**
- * NmtRouteEntry:family:
- *
- * The address family of the route, eg, %AF_INET
- */
+ * NmtRouteEntry:family:
+ *
+ * The address family of the route, eg, %AF_INET
+ */
g_object_class_install_property(
object_class,
PROP_FAMILY,
@@ -242,10 +242,10 @@ nmt_route_entry_class_init(NmtRouteEntryClass *entry_class)
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtRouteEntry:ip-entry-width:
- *
- * The width in characters of the IP address entries
- */
+ * NmtRouteEntry:ip-entry-width:
+ *
+ * The width in characters of the IP address entries
+ */
g_object_class_install_property(
object_class,
PROP_IP_ENTRY_WIDTH,
@@ -257,10 +257,10 @@ nmt_route_entry_class_init(NmtRouteEntryClass *entry_class)
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtRouteEntry:metric-entry-width:
- *
- * The width in characters of the metric entry
- */
+ * NmtRouteEntry:metric-entry-width:
+ *
+ * The width in characters of the metric entry
+ */
g_object_class_install_property(
object_class,
PROP_METRIC_ENTRY_WIDTH,
@@ -272,10 +272,10 @@ nmt_route_entry_class_init(NmtRouteEntryClass *entry_class)
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtRouteEntry:route:
- *
- * The contents of the entries, as an #NMIPRoute.
- */
+ * NmtRouteEntry:route:
+ *
+ * The contents of the entries, as an #NMIPRoute.
+ */
g_object_class_install_property(object_class,
PROP_ROUTE,
g_param_spec_boxed("route",
diff --git a/clients/tui/nmt-route-table.c b/clients/tui/nmt-route-table.c
index d0f0283512..4b0ea58b7d 100644
--- a/clients/tui/nmt-route-table.c
+++ b/clients/tui/nmt-route-table.c
@@ -272,10 +272,10 @@ nmt_route_table_class_init(NmtRouteTableClass *table_class)
object_class->finalize = nmt_route_table_finalize;
/**
- * NmtRouteTable:family:
- *
- * The network address family of the routes, eg %AF_INET
- */
+ * NmtRouteTable:family:
+ *
+ * The network address family of the routes, eg %AF_INET
+ */
g_object_class_install_property(
object_class,
PROP_FAMILY,
@@ -287,13 +287,13 @@ nmt_route_table_class_init(NmtRouteTableClass *table_class)
-1,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtRouteTable:routes:
- *
- * The array of routes, suitable for binding to #NMSettingIP4Config:routes
- * or #NMSettingIP6Config:routes.
- *
- * Element-type: NMIPRoute
- */
+ * NmtRouteTable:routes:
+ *
+ * The array of routes, suitable for binding to #NMSettingIP4Config:routes
+ * or #NMSettingIP6Config:routes.
+ *
+ * Element-type: NMIPRoute
+ */
g_object_class_install_property(object_class,
PROP_ROUTES,
g_param_spec_boxed("routes",
diff --git a/clients/tui/nmt-slave-list.c b/clients/tui/nmt-slave-list.c
index aab4f4ca03..d0faffe8a4 100644
--- a/clients/tui/nmt-slave-list.c
+++ b/clients/tui/nmt-slave-list.c
@@ -208,10 +208,10 @@ nmt_slave_list_class_init(NmtSlaveListClass *list_class)
connection_list_class->remove_connection = nmt_slave_list_remove_connection;
/**
- * NmtSlaveList:master:
- *
- * The master #NMConnection whose slaves are being displayed.
- */
+ * NmtSlaveList:master:
+ *
+ * The master #NMConnection whose slaves are being displayed.
+ */
g_object_class_install_property(
object_class,
PROP_MASTER,
@@ -221,16 +221,16 @@ nmt_slave_list_class_init(NmtSlaveListClass *list_class)
NM_TYPE_CONNECTION,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtSlaveList:type-filter:
- *
- * If non-%NULL, this will be used to limit the connection types
- * that are available when the user clicks on the "Add" button to
- * add a new slave. If the filter filters the list down to only a
- * single connection type, then the user will not be presented
- * with a connection-type dialog, and will instead be immediately
- * taken to an editor window for the new slave after clicking
- * "Add".
- */
+ * NmtSlaveList:type-filter:
+ *
+ * If non-%NULL, this will be used to limit the connection types
+ * that are available when the user clicks on the "Add" button to
+ * add a new slave. If the filter filters the list down to only a
+ * single connection type, then the user will not be presented
+ * with a connection-type dialog, and will instead be immediately
+ * taken to an editor window for the new slave after clicking
+ * "Add".
+ */
g_object_class_install_property(
object_class,
PROP_TYPE_FILTER,
@@ -239,10 +239,10 @@ nmt_slave_list_class_init(NmtSlaveListClass *list_class)
"",
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
- * NmtSlaveList:type-filter-data:
- *
- * User data passed to #NmtSlaveList:type-filter
- */
+ * NmtSlaveList:type-filter-data:
+ *
+ * User data passed to #NmtSlaveList:type-filter
+ */
g_object_class_install_property(
object_class,
PROP_TYPE_FILTER_DATA,
diff --git a/clients/tui/nmt-widget-list.c b/clients/tui/nmt-widget-list.c
index 3a8676789f..19d9f98b58 100644
--- a/clients/tui/nmt-widget-list.c
+++ b/clients/tui/nmt-widget-list.c
@@ -381,16 +381,16 @@ nmt_widget_list_class_init(NmtWidgetListClass *list_class)
/* signals */
/**
- * NmtNewtWidget::add-clicked:
- * @list: the #NmtNewtWidgetList
- *
- * Emitted when the user clicks the "Add" button. The caller can
- * decide whether or not to add a new widget, and call
- * nmt_widget_list_set_length() with the new length if so.
- *
- * FIXME: the "Add" button should be insensitive if it's
- * not going to work.
- */
+ * NmtNewtWidget::add-clicked:
+ * @list: the #NmtNewtWidgetList
+ *
+ * Emitted when the user clicks the "Add" button. The caller can
+ * decide whether or not to add a new widget, and call
+ * nmt_widget_list_set_length() with the new length if so.
+ *
+ * FIXME: the "Add" button should be insensitive if it's
+ * not going to work.
+ */
signals[ADD_CLICKED] = g_signal_new("add-clicked",
G_OBJECT_CLASS_TYPE(object_class),
G_SIGNAL_RUN_FIRST,
@@ -401,17 +401,17 @@ nmt_widget_list_class_init(NmtWidgetListClass *list_class)
G_TYPE_NONE,
0);
/**
- * NmtNewtWidget::remove-clicked:
- * @list: the #NmtNewtWidgetList
- * @n: the widget being removed
- *
- * Emitted when the user clicks one of the "Remove" buttons. The
- * caller can decide whether or not to remove the widget, and
- * call nmt_widget_list_set_length() with the new length if so.
- *
- * FIXME: the "Remove" button should be insensitive if it's not
- * going to work.
- */
+ * NmtNewtWidget::remove-clicked:
+ * @list: the #NmtNewtWidgetList
+ * @n: the widget being removed
+ *
+ * Emitted when the user clicks one of the "Remove" buttons. The
+ * caller can decide whether or not to remove the widget, and
+ * call nmt_widget_list_set_length() with the new length if so.
+ *
+ * FIXME: the "Remove" button should be insensitive if it's not
+ * going to work.
+ */
signals[REMOVE_CLICKED] = g_signal_new("remove-clicked",
G_OBJECT_CLASS_TYPE(object_class),
G_SIGNAL_RUN_FIRST,
@@ -426,10 +426,10 @@ nmt_widget_list_class_init(NmtWidgetListClass *list_class)
/* properties */
/**
- * NmtWidgetList:create-callback:
- *
- * Callback called to create a new widget.
- */
+ * NmtWidgetList:create-callback:
+ *
+ * Callback called to create a new widget.
+ */
g_object_class_install_property(
object_class,
PROP_CREATE_CALLBACK,
@@ -438,29 +438,29 @@ nmt_widget_list_class_init(NmtWidgetListClass *list_class)
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtWidgetList:user-data:
- *
- * User data for #NmtWidgetList:create-callback
- */
+ * NmtWidgetList:user-data:
+ *
+ * User data for #NmtWidgetList:create-callback
+ */
g_object_class_install_property(
object_class,
PROP_USER_DATA,
g_param_spec_pointer("user-data", "", "", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtWidgetList:destroy-notify:
- *
- * #GDestroyNotify for #NmtWidgetList:user-data
- */
+ * NmtWidgetList:destroy-notify:
+ *
+ * #GDestroyNotify for #NmtWidgetList:user-data
+ */
g_object_class_install_property(
object_class,
PROP_DESTROY_NOTIFY,
g_param_spec_pointer("destroy-notify", "", "", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtWidgetList:length:
- *
- * The length of the widget list; changing this value will add or
- * remove widgets from the list.
- */
+ * NmtWidgetList:length:
+ *
+ * The length of the widget list; changing this value will add or
+ * remove widgets from the list.
+ */
g_object_class_install_property(object_class,
PROP_LENGTH,
g_param_spec_int("length",
@@ -471,11 +471,11 @@ nmt_widget_list_class_init(NmtWidgetListClass *list_class)
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * NmtWidgetList:empty-widget:
- *
- * If non-%NULL, this widget will be displayed when there are
- * no "real" widgets in the list.
- */
+ * NmtWidgetList:empty-widget:
+ *
+ * If non-%NULL, this widget will be displayed when there are
+ * no "real" widgets in the list.
+ */
g_object_class_install_property(
object_class,
PROP_EMPTY_WIDGET,
diff --git a/clients/tui/nmtui-connect.c b/clients/tui/nmtui-connect.c
index 8948b1d695..7c4edceeab 100644
--- a/clients/tui/nmtui-connect.c
+++ b/clients/tui/nmtui-connect.c
@@ -259,10 +259,10 @@ activate_connection(NMConnection *connection, NMDevice *device, NMObject *specif
specific_object_path = specific_object ? nm_object_get_path(specific_object) : NULL;
/* There's no way to cancel an nm_client_activate_connection() /
- * nm_client_add_and_activate_connection() call, so we always let them
- * complete, even if the user hits Esc; they shouldn't normally take long
- * to complete anyway.
- */
+ * nm_client_add_and_activate_connection() call, so we always let them
+ * complete, even if the user hits Esc; they shouldn't normally take long
+ * to complete anyway.
+ */
nmt_sync_op_init(&op);
if (connection) {
@@ -306,8 +306,8 @@ activate_connection(NMConnection *connection, NMDevice *device, NMObject *specif
}
/* Now wait for the connection to actually reach the ACTIVATED state,
- * allowing the user to cancel if it takes too long.
- */
+ * allowing the user to cancel if it takes too long.
+ */
nmt_sync_op_init(&op);
info.active = ac;
info.device = device;