summaryrefslogtreecommitdiff
path: root/tui
diff options
context:
space:
mode:
Diffstat (limited to 'tui')
-rw-r--r--tui/newt/nmt-newt-button-box.c13
-rw-r--r--tui/newt/nmt-newt-button.c11
-rw-r--r--tui/newt/nmt-newt-checkbox.c22
-rw-r--r--tui/newt/nmt-newt-component.c20
-rw-r--r--tui/newt/nmt-newt-entry-numeric.c26
-rw-r--r--tui/newt/nmt-newt-entry.c46
-rw-r--r--tui/newt/nmt-newt-form.c130
-rw-r--r--tui/newt/nmt-newt-label.c33
-rw-r--r--tui/newt/nmt-newt-listbox.c57
-rw-r--r--tui/newt/nmt-newt-popup.c22
-rw-r--r--tui/newt/nmt-newt-section.c11
-rw-r--r--tui/newt/nmt-newt-stack.c22
-rw-r--r--tui/newt/nmt-newt-textbox.c37
-rw-r--r--tui/newt/nmt-newt-toggle-button.c33
-rw-r--r--tui/newt/nmt-newt-widget.c44
-rw-r--r--tui/nmt-address-list.c24
-rw-r--r--tui/nmt-device-entry.c57
-rw-r--r--tui/nmt-edit-connection-list.c70
-rw-r--r--tui/nmt-editor-page.c26
-rw-r--r--tui/nmt-editor.c24
-rw-r--r--tui/nmt-ip-entry.c39
-rw-r--r--tui/nmt-mac-entry.c22
-rw-r--r--tui/nmt-mtu-entry.c11
-rw-r--r--tui/nmt-page-device.c26
-rw-r--r--tui/nmt-page-main.c11
-rw-r--r--tui/nmt-password-dialog.c39
-rw-r--r--tui/nmt-password-fields.c57
-rw-r--r--tui/nmt-route-editor.c13
-rw-r--r--tui/nmt-route-entry.c61
-rw-r--r--tui/nmt-route-table.c35
-rw-r--r--tui/nmt-slave-list.c35
-rw-r--r--tui/nmt-widget-list.c51
-rw-r--r--tui/nmtui-edit.c67
33 files changed, 648 insertions, 547 deletions
diff --git a/tui/newt/nmt-newt-button-box.c b/tui/newt/nmt-newt-button-box.c
index 0199ebe937..4fba1daf92 100644
--- a/tui/newt/nmt-newt-button-box.c
+++ b/tui/newt/nmt-newt-button-box.c
@@ -376,10 +376,11 @@ nmt_newt_button_box_class_init (NmtNewtButtonBoxClass *bbox_class)
container_class->remove = nmt_newt_button_box_remove;
- g_object_class_install_property (object_class, PROP_ORIENTATION,
- g_param_spec_int ("orientation", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_ORIENTATION,
+ g_param_spec_int ("orientation", "", "",
+ 0, G_MAXINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-button.c b/tui/newt/nmt-newt-button.c
index 97ad50ca67..00dbcd79a4 100644
--- a/tui/newt/nmt-newt-button.c
+++ b/tui/newt/nmt-newt-button.c
@@ -252,9 +252,10 @@ nmt_newt_button_class_init (NmtNewtButtonClass *button_class)
*
* The button's label
*/
- g_object_class_install_property (object_class, PROP_LABEL,
- g_param_spec_string ("label", "", "",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_LABEL,
+ g_param_spec_string ("label", "", "",
+ NULL,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-checkbox.c b/tui/newt/nmt-newt-checkbox.c
index 168fada20e..69d9920a46 100644
--- a/tui/newt/nmt-newt-checkbox.c
+++ b/tui/newt/nmt-newt-checkbox.c
@@ -217,19 +217,21 @@ nmt_newt_checkbox_class_init (NmtNewtCheckboxClass *checkbox_class)
*
* 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));
+ 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
*/
- g_object_class_install_property (object_class, PROP_ACTIVE,
- g_param_spec_boolean ("active", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_ACTIVE,
+ g_param_spec_boolean ("active", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-component.c b/tui/newt/nmt-newt-component.c
index 877b53dbf1..98f6df63f0 100644
--- a/tui/newt/nmt-newt-component.c
+++ b/tui/newt/nmt-newt-component.c
@@ -288,10 +288,11 @@ nmt_newt_component_class_init (NmtNewtComponentClass *component_class)
*
* 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));
+ g_object_class_install_property
+ (object_class, PROP_COMPONENT,
+ g_param_spec_pointer ("component", "", "",
+ G_PARAM_READABLE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtNewtComponent:sensitive:
*
@@ -299,9 +300,10 @@ nmt_newt_component_class_init (NmtNewtComponentClass *component_class)
* be skipped over in the keyboard tab chain, and may be displayed
* differently.
*/
- g_object_class_install_property (object_class, PROP_SENSITIVE,
- g_param_spec_boolean ("sensitive", "", "",
- TRUE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_SENSITIVE,
+ g_param_spec_boolean ("sensitive", "", "",
+ TRUE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-entry-numeric.c b/tui/newt/nmt-newt-entry-numeric.c
index 753c209a3d..416b4b79bb 100644
--- a/tui/newt/nmt-newt-entry-numeric.c
+++ b/tui/newt/nmt-newt-entry-numeric.c
@@ -193,21 +193,23 @@ nmt_newt_entry_numeric_class_init (NmtNewtEntryNumericClass *entry_class)
* is non-negative, then the entry will not allow negative numbers
* to be entered.
*/
- g_object_class_install_property (object_class, PROP_MINIMUM,
- g_param_spec_int ("minimum", "", "",
- G_MININT, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_MINIMUM,
+ g_param_spec_int ("minimum", "", "",
+ G_MININT, G_MAXINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtNewtEntryNumeric:maximum:
*
* The maximum #NmtNewtWidget:valid value for the entry.
*/
- g_object_class_install_property (object_class, PROP_MAXIMUM,
- g_param_spec_int ("maximum", "", "",
- G_MININT, G_MAXINT, G_MAXINT,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_MAXIMUM,
+ g_param_spec_int ("maximum", "", "",
+ G_MININT, G_MAXINT, G_MAXINT,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-entry.c b/tui/newt/nmt-newt-entry.c
index c98fcee8a4..7c92d00ada 100644
--- a/tui/newt/nmt-newt-entry.c
+++ b/tui/newt/nmt-newt-entry.c
@@ -496,41 +496,45 @@ nmt_newt_entry_class_init (NmtNewtEntryClass *entry_class)
*
* 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));
+ 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
*/
- g_object_class_install_property (object_class, PROP_WIDTH,
- g_param_spec_int ("width", "", "",
- -1, 80, -1,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ 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
*/
- g_object_class_install_property (object_class, PROP_FLAGS,
- g_param_spec_uint ("flags", "", "",
- 0, 0xFFFF, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_FLAGS,
+ g_param_spec_uint ("flags", "", "",
+ 0, 0xFFFF, 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.
*/
- g_object_class_install_property (object_class, PROP_PASSWORD,
- g_param_spec_boolean ("password", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_PASSWORD,
+ g_param_spec_boolean ("password", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-form.c b/tui/newt/nmt-newt-form.c
index 0c2063be7a..8172b84368 100644
--- a/tui/newt/nmt-newt-form.c
+++ b/tui/newt/nmt-newt-form.c
@@ -627,117 +627,127 @@ nmt_newt_form_class_init (NmtNewtFormClass *form_class)
* 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,
- g_param_spec_string ("title", "", "",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS |
- G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (object_class, PROP_TITLE,
+ g_param_spec_string ("title", "", "",
+ 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).
*/
- g_object_class_install_property (object_class, PROP_FULLSCREEN,
- g_param_spec_boolean ("fullscreen", "", "",
- FALSE,
- G_PARAM_WRITABLE |
- G_PARAM_STATIC_STRINGS |
- G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (object_class, PROP_FULLSCREEN,
+ g_param_spec_boolean ("fullscreen", "", "",
+ 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.
*/
- g_object_class_install_property (object_class, PROP_FULLSCREEN_VERTICAL,
- g_param_spec_boolean ("fullscreen-vertical", "", "",
- FALSE,
- G_PARAM_WRITABLE |
- G_PARAM_STATIC_STRINGS |
- G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (object_class, PROP_FULLSCREEN_VERTICAL,
+ g_param_spec_boolean ("fullscreen-vertical", "", "",
+ 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.
*/
- g_object_class_install_property (object_class, PROP_FULLSCREEN_HORIZONTAL,
- g_param_spec_boolean ("fullscreen-horizontal", "", "",
- FALSE,
- G_PARAM_WRITABLE |
- G_PARAM_STATIC_STRINGS |
- G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (object_class, PROP_FULLSCREEN_HORIZONTAL,
+ g_param_spec_boolean ("fullscreen-horizontal", "", "",
+ 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.
*/
- g_object_class_install_property (object_class, PROP_X,
- g_param_spec_uint ("x", "", "",
- 0, G_MAXUINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS |
- G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (object_class, PROP_X,
+ g_param_spec_uint ("x", "", "",
+ 0, G_MAXUINT, 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.
*/
- g_object_class_install_property (object_class, PROP_Y,
- g_param_spec_uint ("y", "", "",
- 0, G_MAXUINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS |
- G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (object_class, PROP_Y,
+ g_param_spec_uint ("y", "", "",
+ 0, G_MAXUINT, 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.
*/
- g_object_class_install_property (object_class, PROP_WIDTH,
- g_param_spec_uint ("width", "", "",
- 0, G_MAXUINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS |
- G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (object_class, PROP_WIDTH,
+ g_param_spec_uint ("width", "", "",
+ 0, G_MAXUINT, 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.
*/
- g_object_class_install_property (object_class, PROP_HEIGHT,
- g_param_spec_uint ("height", "", "",
- 0, G_MAXUINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS |
- G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (object_class, PROP_HEIGHT,
+ g_param_spec_uint ("height", "", "",
+ 0, G_MAXUINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS |
+ G_PARAM_CONSTRUCT_ONLY));
/**
* NmtNewtForm:padding:
*
* The padding between the form's content and its border.
*/
- g_object_class_install_property (object_class, PROP_PADDING,
- g_param_spec_uint ("padding", "", "",
- 0, G_MAXUINT, 1,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS |
- G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (object_class, PROP_PADDING,
+ g_param_spec_uint ("padding", "", "",
+ 0, G_MAXUINT, 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.
*/
- g_object_class_install_property (object_class, PROP_ESCAPE_EXITS,
- g_param_spec_boolean ("escape-exits", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS |
- G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (object_class, PROP_ESCAPE_EXITS,
+ g_param_spec_boolean ("escape-exits", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS |
+ G_PARAM_CONSTRUCT_ONLY));
}
diff --git a/tui/newt/nmt-newt-label.c b/tui/newt/nmt-newt-label.c
index a9d44b04f1..9c4df8ed4e 100644
--- a/tui/newt/nmt-newt-label.c
+++ b/tui/newt/nmt-newt-label.c
@@ -295,29 +295,32 @@ nmt_newt_label_class_init (NmtNewtLabelClass *label_class)
*
* 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));
+ 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
*/
- g_object_class_install_property (object_class, PROP_STYLE,
- g_param_spec_int ("style", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_STYLE,
+ g_param_spec_int ("style", "", "",
+ 0, G_MAXINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtNewtLabel:highlight:
*
* Whether the label is highlighted.
*/
- g_object_class_install_property (object_class, PROP_HIGHLIGHT,
- g_param_spec_boolean ("highlight", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_HIGHLIGHT,
+ g_param_spec_boolean ("highlight", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-listbox.c b/tui/newt/nmt-newt-listbox.c
index 78c55dbe31..e450df9123 100644
--- a/tui/newt/nmt-newt-listbox.c
+++ b/tui/newt/nmt-newt-listbox.c
@@ -493,51 +493,56 @@ nmt_newt_listbox_class_init (NmtNewtListboxClass *listbox_class)
*
* 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", "", "",
- -1, 255, -1,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_HEIGHT,
+ g_param_spec_int ("height", "", "",
+ -1, 255, -1,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtNewtListbox:flags:
*
* The listbox's #NmtNewtListboxFlags.
*/
- g_object_class_install_property (object_class, PROP_FLAGS,
- g_param_spec_uint ("flags", "", "",
- 0, 0xFFFF, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_FLAGS,
+ g_param_spec_uint ("flags", "", "",
+ 0, 0xFFFF, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtNewtListbox:active:
*
* The currently-selected row.
*/
- g_object_class_install_property (object_class, PROP_ACTIVE,
- g_param_spec_int ("active", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_ACTIVE,
+ g_param_spec_int ("active", "", "",
+ 0, G_MAXINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* 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));
+ 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.
*/
- g_object_class_install_property (object_class, PROP_SKIP_NULL_KEYS,
- g_param_spec_boolean ("skip-null-keys", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_SKIP_NULL_KEYS,
+ g_param_spec_boolean ("skip-null-keys", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-popup.c b/tui/newt/nmt-newt-popup.c
index e9757eac20..80fa0181c5 100644
--- a/tui/newt/nmt-newt-popup.c
+++ b/tui/newt/nmt-newt-popup.c
@@ -325,19 +325,21 @@ nmt_newt_popup_class_init (NmtNewtPopupClass *popup_class)
*
* The index of the currently-active entry.
*/
- g_object_class_install_property (object_class, PROP_ACTIVE,
- g_param_spec_uint ("active", "", "",
- 0, G_MAXUINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_ACTIVE,
+ g_param_spec_uint ("active", "", "",
+ 0, G_MAXUINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtNewtPopup:active-id:
*
* The textual ID of the currently-active entry.
*/
- g_object_class_install_property (object_class, PROP_ACTIVE_ID,
- g_param_spec_string ("active-id", "", "",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_ACTIVE_ID,
+ g_param_spec_string ("active-id", "", "",
+ NULL,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-section.c b/tui/newt/nmt-newt-section.c
index 094b41b731..7b93b32f3b 100644
--- a/tui/newt/nmt-newt-section.c
+++ b/tui/newt/nmt-newt-section.c
@@ -383,11 +383,12 @@ nmt_newt_section_class_init (NmtNewtSectionClass *section_class)
* %TRUE if the section is open (ie, its body is visible), %FALSE
* if not.
*/
- g_object_class_install_property (object_class, PROP_OPEN,
- g_param_spec_boolean ("open", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_OPEN,
+ g_param_spec_boolean ("open", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/* globals */
closed_glyph = nmt_newt_locale_from_utf8 ("\342\225\220"); /* ═ */
diff --git a/tui/newt/nmt-newt-stack.c b/tui/newt/nmt-newt-stack.c
index 1b31d58fe2..d94bdebffc 100644
--- a/tui/newt/nmt-newt-stack.c
+++ b/tui/newt/nmt-newt-stack.c
@@ -348,19 +348,21 @@ nmt_newt_stack_class_init (NmtNewtStackClass *stack_class)
*
* The index of the active page
*/
- g_object_class_install_property (object_class, PROP_ACTIVE,
- g_param_spec_uint ("active", "", "",
- 0, G_MAXUINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_ACTIVE,
+ g_param_spec_uint ("active", "", "",
+ 0, G_MAXUINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtNewtStack:active-id:
*
* The ID of the active page
*/
- g_object_class_install_property (object_class, PROP_ACTIVE_ID,
- g_param_spec_string ("active-id", "", "",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_ACTIVE_ID,
+ g_param_spec_string ("active-id", "", "",
+ NULL,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-textbox.c b/tui/newt/nmt-newt-textbox.c
index 67b8b247d4..3d297160d3 100644
--- a/tui/newt/nmt-newt-textbox.c
+++ b/tui/newt/nmt-newt-textbox.c
@@ -261,32 +261,35 @@ nmt_newt_textbox_class_init (NmtNewtTextboxClass *textbox_class)
*
* 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));
+ 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
*/
- g_object_class_install_property (object_class, PROP_FLAGS,
- g_param_spec_uint ("flags", "", "",
- 0, G_MAXUINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_FLAGS,
+ g_param_spec_uint ("flags", "", "",
+ 0, G_MAXUINT, 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.
*/
- g_object_class_install_property (object_class, PROP_WRAP_WIDTH,
- g_param_spec_int ("wrap-width", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_WRAP_WIDTH,
+ g_param_spec_int ("wrap-width", "", "",
+ 0, G_MAXINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-toggle-button.c b/tui/newt/nmt-newt-toggle-button.c
index d435e459e5..ec4d9aca51 100644
--- a/tui/newt/nmt-newt-toggle-button.c
+++ b/tui/newt/nmt-newt-toggle-button.c
@@ -206,29 +206,32 @@ nmt_newt_toggle_button_class_init (NmtNewtToggleButtonClass *button_class)
*
* 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));
+ 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".
*/
- g_object_class_install_property (object_class, PROP_OFF_LABEL,
- g_param_spec_string ("off-label", "", "",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ 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)
*/
- g_object_class_install_property (object_class, PROP_ACTIVE,
- g_param_spec_boolean ("active", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_ACTIVE,
+ g_param_spec_boolean ("active", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/newt/nmt-newt-widget.c b/tui/newt/nmt-newt-widget.c
index 24ee8b0a61..24c94db940 100644
--- a/tui/newt/nmt-newt-widget.c
+++ b/tui/newt/nmt-newt-widget.c
@@ -622,22 +622,24 @@ nmt_newt_widget_class_init (NmtNewtWidgetClass *widget_class)
*
* 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", "", "",
- NMT_TYPE_NEWT_WIDGET,
- G_PARAM_READABLE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_PARENT,
+ g_param_spec_object ("parent", "", "",
+ 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.
*/
- g_object_class_install_property (object_class, PROP_VISIBLE,
- g_param_spec_boolean ("visible", "", "",
- TRUE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_VISIBLE,
+ g_param_spec_boolean ("visible", "", "",
+ TRUE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtNewtWidget:valid:
*
@@ -645,20 +647,22 @@ nmt_newt_widget_class_init (NmtNewtWidgetClass *widget_class)
* 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));
+ 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.
*/
- g_object_class_install_property (object_class, PROP_EXIT_ON_ACTIVATE,
- g_param_spec_boolean ("exit-on-activate", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_EXIT_ON_ACTIVATE,
+ g_param_spec_boolean ("exit-on-activate", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-address-list.c b/tui/nmt-address-list.c
index da301a2fda..b822243c32 100644
--- a/tui/nmt-address-list.c
+++ b/tui/nmt-address-list.c
@@ -265,20 +265,22 @@ nmt_address_list_class_init (NmtAddressListClass *list_class)
*
* The type of address the list holds.
*/
- g_object_class_install_property (object_class, PROP_LIST_TYPE,
- g_param_spec_uint ("list-type", "", "",
- 0, G_MAXUINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_LIST_TYPE,
+ g_param_spec_uint ("list-type", "", "",
+ 0, G_MAXUINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtAddressList:strings:
*
* The strings in the list's entries.
*/
- g_object_class_install_property (object_class, PROP_STRINGS,
- g_param_spec_boxed ("strings", "", "",
- G_TYPE_STRV,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_STRINGS,
+ g_param_spec_boxed ("strings", "", "",
+ G_TYPE_STRV,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-device-entry.c b/tui/nmt-device-entry.c
index 7ce6d7d420..de8b630554 100644
--- a/tui/nmt-device-entry.c
+++ b/tui/nmt-device-entry.c
@@ -538,22 +538,24 @@ nmt_device_entry_class_init (NmtDeviceEntryClass *deventry_class)
*
* The entry's label
*/
- g_object_class_install_property (object_class, PROP_LABEL,
- g_param_spec_string ("label", "", "",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_LABEL,
+ g_param_spec_string ("label", "", "",
+ NULL,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* 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));
+ 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:
*
@@ -561,29 +563,32 @@ nmt_device_entry_class_init (NmtDeviceEntryClass *deventry_class)
* 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", "", "",
- G_TYPE_NONE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_HARDWARE_TYPE,
+ g_param_spec_gtype ("hardware-type", "", "",
+ G_TYPE_NONE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtDeviceEntry:interface-name:
*
* The interface name of the device identified by the entry.
*/
- g_object_class_install_property (object_class, PROP_INTERFACE_NAME,
- g_param_spec_string ("interface-name", "", "",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_INTERFACE_NAME,
+ g_param_spec_string ("interface-name", "", "",
+ NULL,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtDeviceEntry:mac-address:
*
* The hardware address of the device identified by the entry.
*/
- g_object_class_install_property (object_class, PROP_MAC_ADDRESS,
- g_param_spec_boxed ("mac-address", "", "",
- DBUS_TYPE_G_UCHAR_ARRAY,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_MAC_ADDRESS,
+ g_param_spec_boxed ("mac-address", "", "",
+ DBUS_TYPE_G_UCHAR_ARRAY,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-edit-connection-list.c b/tui/nmt-edit-connection-list.c
index ec0a66845c..2c2c084646 100644
--- a/tui/nmt-edit-connection-list.c
+++ b/tui/nmt-edit-connection-list.c
@@ -490,12 +490,13 @@ nmt_edit_connection_list_class_init (NmtEditConnectionListClass *list_class)
* 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,
- g_param_spec_boolean ("grouped", "", "",
- TRUE,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_GROUPED,
+ g_param_spec_boolean ("grouped", "", "",
+ TRUE,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtEditConnectionListFilter:
@@ -513,21 +514,23 @@ nmt_edit_connection_list_class_init (NmtEditConnectionListClass *list_class)
* A callback function for filtering which connections appear in
* the list.
*/
- g_object_class_install_property (object_class, PROP_CONNECTION_FILTER,
- g_param_spec_pointer ("connection-filter", "", "",
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_CONNECTION_FILTER,
+ g_param_spec_pointer ("connection-filter", "", "",
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtEditConnectionList:connection-filter-data:
*
* Data for the #NmtEditConnectionList:connection-filter.
*/
- g_object_class_install_property (object_class, PROP_CONNECTION_FILTER_DATA,
- g_param_spec_pointer ("connection-filter-data", "", "",
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_CONNECTION_FILTER_DATA,
+ g_param_spec_pointer ("connection-filter-data", "", "",
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtEditConnectionList:extra-widget:
@@ -535,12 +538,13 @@ nmt_edit_connection_list_class_init (NmtEditConnectionListClass *list_class)
* An extra button widget to display at the bottom of the button
* box.
*/
- g_object_class_install_property (object_class, PROP_EXTRA_WIDGET,
- g_param_spec_object ("extra-widget", "", "",
- NMT_TYPE_NEWT_WIDGET,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_EXTRA_WIDGET,
+ g_param_spec_object ("extra-widget", "", "",
+ NMT_TYPE_NEWT_WIDGET,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtEditConnectionList:connections:
@@ -549,20 +553,22 @@ nmt_edit_connection_list_class_init (NmtEditConnectionListClass *list_class)
*
* Element-Type: #NMConnection
*/
- g_object_class_install_property (object_class, PROP_CONNECTIONS,
- g_param_spec_boxed ("connections", "", "",
- G_TYPE_PTR_ARRAY,
- G_PARAM_READABLE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_CONNECTIONS,
+ g_param_spec_boxed ("connections", "", "",
+ G_TYPE_PTR_ARRAY,
+ G_PARAM_READABLE |
+ G_PARAM_STATIC_STRINGS));
/**
* 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", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READABLE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_NUM_CONNECTIONS,
+ g_param_spec_int ("num-connections", "", "",
+ 0, G_MAXINT, 0,
+ G_PARAM_READABLE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-editor-page.c b/tui/nmt-editor-page.c
index 549a86a6f5..80fb163bb4 100644
--- a/tui/nmt-editor-page.c
+++ b/tui/nmt-editor-page.c
@@ -207,21 +207,23 @@ nmt_editor_page_class_init (NmtEditorPageClass *page_class)
*
* The page's #NMConnection.
*/
- g_object_class_install_property (object_class, PROP_CONNECTION,
- g_param_spec_object ("connection", "", "",
- NM_TYPE_CONNECTION,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_CONNECTION,
+ g_param_spec_object ("connection", "", "",
+ NM_TYPE_CONNECTION,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtEditorPage:title:
*
* The page's title.
*/
- g_object_class_install_property (object_class, PROP_TITLE,
- g_param_spec_string ("title", "", "",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_TITLE,
+ g_param_spec_string ("title", "", "",
+ NULL,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-editor.c b/tui/nmt-editor.c
index b204a5c861..c200045ab9 100644
--- a/tui/nmt-editor.c
+++ b/tui/nmt-editor.c
@@ -311,20 +311,22 @@ nmt_editor_class_init (NmtEditorClass *entry_class)
*
* The connection being edited.
*/
- g_object_class_install_property (object_class, PROP_CONNECTION,
- g_param_spec_object ("connection", "", "",
- NM_TYPE_CONNECTION,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_CONNECTION,
+ g_param_spec_object ("connection", "", "",
+ NM_TYPE_CONNECTION,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtEditor:type-data:
*
* The #NmEditorConnectionTypeData for #NmtEditor:connection.
*/
- g_object_class_install_property (object_class, PROP_TYPE_DATA,
- g_param_spec_pointer ("type-data", "", "",
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_TYPE_DATA,
+ g_param_spec_pointer ("type-data", "", "",
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-ip-entry.c b/tui/nmt-ip-entry.c
index 85a29fcce5..30c7e2e48f 100644
--- a/tui/nmt-ip-entry.c
+++ b/tui/nmt-ip-entry.c
@@ -231,24 +231,26 @@ nmt_ip_entry_class_init (NmtIPEntryClass *entry_class)
*
* The address family. Eg, %AF_INET
*/
- g_object_class_install_property (object_class, PROP_FAMILY,
- g_param_spec_int ("family", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_FAMILY,
+ g_param_spec_int ("family", "", "",
+ 0, G_MAXINT, 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.
*/
- g_object_class_install_property (object_class, PROP_PREFIX,
- g_param_spec_boolean ("prefix", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_PREFIX,
+ g_param_spec_boolean ("prefix", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtIPEntry:optional:
*
@@ -256,10 +258,11 @@ nmt_ip_entry_class_init (NmtIPEntryClass *entry_class)
* 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,
- g_param_spec_boolean ("optional", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_OPTIONAL,
+ g_param_spec_boolean ("optional", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-mac-entry.c b/tui/nmt-mac-entry.c
index 5e1c41743e..0dad12363b 100644
--- a/tui/nmt-mac-entry.c
+++ b/tui/nmt-mac-entry.c
@@ -217,20 +217,22 @@ nmt_mac_entry_class_init (NmtMacEntryClass *entry_class)
* 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", "", "",
- 0, INFINIBAND_ALEN, ETH_ALEN,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_MAC_LENGTH,
+ g_param_spec_int ("mac-length", "", "",
+ 0, INFINIBAND_ALEN, ETH_ALEN,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtMacEntry:mac-address:
*
* The MAC address, in binary (in the same format used by the various
* #NMSetting "mac-address" properties).
*/
- g_object_class_install_property (object_class, PROP_MAC_ADDRESS,
- g_param_spec_boxed ("mac-address", "", "",
- DBUS_TYPE_G_UCHAR_ARRAY,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_MAC_ADDRESS,
+ g_param_spec_boxed ("mac-address", "", "",
+ DBUS_TYPE_G_UCHAR_ARRAY,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-mtu-entry.c b/tui/nmt-mtu-entry.c
index da3746ccbb..f599557aea 100644
--- a/tui/nmt-mtu-entry.c
+++ b/tui/nmt-mtu-entry.c
@@ -183,9 +183,10 @@ nmt_mtu_entry_class_init (NmtMtuEntryClass *entry_class)
*
* The contents of the entry, as a number.
*/
- g_object_class_install_property (object_class, PROP_MTU,
- g_param_spec_int ("mtu", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_MTU,
+ g_param_spec_int ("mtu", "", "",
+ 0, G_MAXINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-page-device.c b/tui/nmt-page-device.c
index 8ab0747e59..811b5a7db8 100644
--- a/tui/nmt-page-device.c
+++ b/tui/nmt-page-device.c
@@ -136,16 +136,18 @@ nmt_page_device_class_init (NmtPageDeviceClass *page_device_class)
object_class->finalize = nmt_page_device_finalize;
/* properties */
- g_object_class_install_property (object_class, PROP_DEVICE_ENTRY,
- g_param_spec_object ("device-entry", "", "",
- NMT_TYPE_DEVICE_ENTRY,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (object_class, PROP_SHOW_BY_DEFAULT,
- g_param_spec_boolean ("show-by-default", "", "",
- TRUE,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_DEVICE_ENTRY,
+ g_param_spec_object ("device-entry", "", "",
+ NMT_TYPE_DEVICE_ENTRY,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_SHOW_BY_DEFAULT,
+ g_param_spec_boolean ("show-by-default", "", "",
+ TRUE,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-page-main.c b/tui/nmt-page-main.c
index f49b155b3c..d22ec83459 100644
--- a/tui/nmt-page-main.c
+++ b/tui/nmt-page-main.c
@@ -319,9 +319,10 @@ nmt_page_main_class_init (NmtPageMainClass *main_class)
*
* The page's connection's #NMEditorConnectionTypeData
*/
- g_object_class_install_property (object_class, PROP_TYPE_DATA,
- g_param_spec_pointer ("type-data", "", "",
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_TYPE_DATA,
+ g_param_spec_pointer ("type-data", "", "",
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-password-dialog.c b/tui/nmt-password-dialog.c
index 6d52c75abb..3023404d96 100644
--- a/tui/nmt-password-dialog.c
+++ b/tui/nmt-password-dialog.c
@@ -261,23 +261,25 @@ nmt_password_dialog_class_init (NmtPasswordDialogClass *dialog_class)
*
* The request ID from the #NmtSecretAgent
*/
- g_object_class_install_property (object_class, PROP_REQUEST_ID,
- g_param_spec_string ("request-id", "", "",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_REQUEST_ID,
+ g_param_spec_string ("request-id", "", "",
+ NULL,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtPasswordDialog:prompt:
*
* The prompt text.
*/
- g_object_class_install_property (object_class, PROP_PROMPT,
- g_param_spec_string ("prompt", "", "",
- NULL,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_PROMPT,
+ g_param_spec_string ("prompt", "", "",
+ NULL,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtPasswordDialog:secrets:
*
@@ -285,12 +287,13 @@ nmt_password_dialog_class_init (NmtPasswordDialogClass *dialog_class)
*
* Element-Type: #NmtSecretAgentSecret.
*/
- g_object_class_install_property (object_class, PROP_SECRETS,
- g_param_spec_boxed ("secrets", "", "",
- G_TYPE_PTR_ARRAY,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_SECRETS,
+ g_param_spec_boxed ("secrets", "", "",
+ G_TYPE_PTR_ARRAY,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
/**
diff --git a/tui/nmt-password-fields.c b/tui/nmt-password-fields.c
index ec8b521825..8fba33fd97 100644
--- a/tui/nmt-password-fields.c
+++ b/tui/nmt-password-fields.c
@@ -261,50 +261,55 @@ nmt_password_fields_class_init (NmtPasswordFieldsClass *entry_class)
*
* 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));
+ 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
*/
- g_object_class_install_property (object_class, PROP_EXTRAS,
- g_param_spec_uint ("extras", "", "",
- 0, 0xFFFF, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_EXTRAS,
+ g_param_spec_uint ("extras", "", "",
+ 0, 0xFFFF, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* 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));
+ 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.
*/
- g_object_class_install_property (object_class, PROP_ALWAYS_ASK,
- g_param_spec_boolean ("always-ask", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_ALWAYS_ASK,
+ g_param_spec_boolean ("always-ask", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtPasswordFields:show-password:
*
* The current state of the "Show password" checkbox.
*/
- g_object_class_install_property (object_class, PROP_SHOW_PASSWORD,
- g_param_spec_boolean ("show-password", "", "",
- FALSE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_SHOW_PASSWORD,
+ g_param_spec_boolean ("show-password", "", "",
+ FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-route-editor.c b/tui/nmt-route-editor.c
index 053cdb0275..98fd9ccbb6 100644
--- a/tui/nmt-route-editor.c
+++ b/tui/nmt-route-editor.c
@@ -210,10 +210,11 @@ nmt_route_editor_class_init (NmtRouteEditorClass *entry_class)
* The #NMSettingIP4Config or #NMSettingIP6Config whose routes are
* being edited.
*/
- g_object_class_install_property (object_class, PROP_SETTING,
- g_param_spec_object ("setting", "", "",
- NM_TYPE_SETTING,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_SETTING,
+ g_param_spec_object ("setting", "", "",
+ NM_TYPE_SETTING,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-route-entry.c b/tui/nmt-route-entry.c
index 1b20ca646c..70a9003b43 100644
--- a/tui/nmt-route-entry.c
+++ b/tui/nmt-route-entry.c
@@ -270,54 +270,59 @@ nmt_route_entry_class_init (NmtRouteEntryClass *entry_class)
*
* The address family of the route, eg, %AF_INET
*/
- g_object_class_install_property (object_class, PROP_FAMILY,
- g_param_spec_int ("family", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_FAMILY,
+ g_param_spec_int ("family", "", "",
+ 0, G_MAXINT, 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
*/
- g_object_class_install_property (object_class, PROP_IP_ENTRY_WIDTH,
- g_param_spec_int ("ip-entry-width", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_IP_ENTRY_WIDTH,
+ g_param_spec_int ("ip-entry-width", "", "",
+ 0, G_MAXINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtRouteEntry:metric-entry-width:
*
* The width in characters of the metric entry
*/
- g_object_class_install_property (object_class, PROP_METRIC_ENTRY_WIDTH,
- g_param_spec_int ("metric-entry-width", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_METRIC_ENTRY_WIDTH,
+ g_param_spec_int ("metric-entry-width", "", "",
+ 0, G_MAXINT, 0,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtRouteEntry:ip4-route:
*
* The contents of the entries, as an #NMIP4Route. Only valid
* if #NmtRouteEntry:family is %AF_INET.
*/
- g_object_class_install_property (object_class, PROP_IP4_ROUTE,
- g_param_spec_boxed ("ip4-route", "", "",
- nm_ip4_route_get_type (),
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_IP4_ROUTE,
+ g_param_spec_boxed ("ip4-route", "", "",
+ nm_ip4_route_get_type (),
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtRouteEntry:ip6-route:
*
* The contents of the entries, as an #NMIP6Route. Only valid
* if #NmtRouteEntry:family is %AF_INET6.
*/
- g_object_class_install_property (object_class, PROP_IP6_ROUTE,
- g_param_spec_boxed ("ip6-route", "", "",
- nm_ip6_route_get_type (),
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_IP6_ROUTE,
+ g_param_spec_boxed ("ip6-route", "", "",
+ nm_ip6_route_get_type (),
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-route-table.c b/tui/nmt-route-table.c
index d6173a0bc9..c2edf2ac5c 100644
--- a/tui/nmt-route-table.c
+++ b/tui/nmt-route-table.c
@@ -360,12 +360,13 @@ nmt_route_table_class_init (NmtRouteTableClass *table_class)
*
* The network address family of the routes, eg %AF_INET
*/
- g_object_class_install_property (object_class, PROP_FAMILY,
- g_param_spec_int ("family", "", "",
- -1, G_MAXINT, -1,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_FAMILY,
+ g_param_spec_int ("family", "", "",
+ -1, G_MAXINT, -1,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtRouteTable:ip4-routes:
*
@@ -374,11 +375,12 @@ nmt_route_table_class_init (NmtRouteTableClass *table_class)
*
* Only valid if #NmtRouteTable:family is %AF_INET
*/
- g_object_class_install_property (object_class, PROP_IP4_ROUTES,
- g_param_spec_boxed ("ip4-routes", "", "",
- DBUS_TYPE_G_ARRAY_OF_ARRAY_OF_UINT,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_IP4_ROUTES,
+ g_param_spec_boxed ("ip4-routes", "", "",
+ DBUS_TYPE_G_ARRAY_OF_ARRAY_OF_UINT,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtRouteTable:ip6-routes:
*
@@ -387,9 +389,10 @@ nmt_route_table_class_init (NmtRouteTableClass *table_class)
*
* Only valid if #NmtRouteTable:family is %AF_INET6
*/
- g_object_class_install_property (object_class, PROP_IP6_ROUTES,
- g_param_spec_boxed ("ip6-routes", "", "",
- DBUS_TYPE_G_ARRAY_OF_IP6_ROUTE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_IP6_ROUTES,
+ g_param_spec_boxed ("ip6-routes", "", "",
+ DBUS_TYPE_G_ARRAY_OF_IP6_ROUTE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-slave-list.c b/tui/nmt-slave-list.c
index 284614aa2f..d6b60be42a 100644
--- a/tui/nmt-slave-list.c
+++ b/tui/nmt-slave-list.c
@@ -229,12 +229,13 @@ nmt_slave_list_class_init (NmtSlaveListClass *list_class)
*
* The master #NMConnection whose slaves are being displayed.
*/
- g_object_class_install_property (object_class, PROP_MASTER,
- g_param_spec_object ("master", "", "",
- NM_TYPE_CONNECTION,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_MASTER,
+ g_param_spec_object ("master", "", "",
+ NM_TYPE_CONNECTION,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtSlaveList:type-filter:
*
@@ -246,19 +247,21 @@ nmt_slave_list_class_init (NmtSlaveListClass *list_class)
* taken to an editor window for the new slave after clicking
* "Add".
*/
- g_object_class_install_property (object_class, PROP_TYPE_FILTER,
- g_param_spec_pointer ("type-filter", "", "",
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_TYPE_FILTER,
+ g_param_spec_pointer ("type-filter", "", "",
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* NmtSlaveList:type-filter-data:
*
* User data passed to #NmtSlaveList:type-filter
*/
- g_object_class_install_property (object_class, PROP_TYPE_FILTER_DATA,
- g_param_spec_pointer ("type-filter-data", "", "",
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_TYPE_FILTER_DATA,
+ g_param_spec_pointer ("type-filter-data", "", "",
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmt-widget-list.c b/tui/nmt-widget-list.c
index 83c0b9b9e8..6dc3f5c926 100644
--- a/tui/nmt-widget-list.c
+++ b/tui/nmt-widget-list.c
@@ -443,49 +443,54 @@ nmt_widget_list_class_init (NmtWidgetListClass *list_class)
*
* Callback called to create a new widget.
*/
- g_object_class_install_property (object_class, PROP_CREATE_CALLBACK,
- g_param_spec_pointer ("create-callback", "", "",
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_CREATE_CALLBACK,
+ g_param_spec_pointer ("create-callback", "", "",
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
/**
* 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));
+ 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
*/
- g_object_class_install_property (object_class, PROP_DESTROY_NOTIFY,
- g_param_spec_pointer ("destroy-notify", "", "",
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ 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.
*/
- g_object_class_install_property (object_class, PROP_LENGTH,
- g_param_spec_int ("length", "", "",
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_LENGTH,
+ g_param_spec_int ("length", "", "",
+ 0, G_MAXINT, 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.
*/
- g_object_class_install_property (object_class, PROP_EMPTY_WIDGET,
- g_param_spec_object ("empty-widget", "", "",
- NMT_TYPE_NEWT_WIDGET,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_EMPTY_WIDGET,
+ g_param_spec_object ("empty-widget", "", "",
+ NMT_TYPE_NEWT_WIDGET,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
diff --git a/tui/nmtui-edit.c b/tui/nmtui-edit.c
index 2a17b45405..2e59204b64 100644
--- a/tui/nmtui-edit.c
+++ b/tui/nmtui-edit.c
@@ -336,40 +336,45 @@ nmt_add_connection_class_init (NmtAddConnectionClass *add_class)
form_class->show = nmt_add_connection_show;
- g_object_class_install_property (object_class, PROP_PRIMARY_TEXT,
- g_param_spec_string ("primary-text", "", "",
- _("Select the type of connection you wish to create."),
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (object_class, PROP_SECONDARY_TEXT,
- g_param_spec_string ("secondary-text", "", "",
+ g_object_class_install_property
+ (object_class, PROP_PRIMARY_TEXT,
+ g_param_spec_string ("primary-text", "", "",
+ _("Select the type of connection you wish to create."),
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_SECONDARY_TEXT,
+ g_param_spec_string ("secondary-text", "", "",
#if 0
- _("If you are creating a VPN, and the VPN connection you "
- "wish to create does not appear in the list, you may "
- "not have the correct VPN plugin installed."),
+ _("If you are creating a VPN, and the VPN connection you "
+ "wish to create does not appear in the list, you may "
+ "not have the correct VPN plugin installed."),
#else
- NULL,
+ NULL,
#endif
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (object_class, PROP_MASTER,
- g_param_spec_object ("master", "", "",
- NM_TYPE_CONNECTION,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (object_class, PROP_TYPE_FILTER,
- g_param_spec_pointer ("type-filter", "", "",
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (object_class, PROP_TYPE_FILTER_DATA,
- g_param_spec_pointer ("type-filter-data", "", "",
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_STRINGS));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_MASTER,
+ g_param_spec_object ("master", "", "",
+ NM_TYPE_CONNECTION,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_TYPE_FILTER,
+ g_param_spec_pointer ("type-filter", "", "",
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property
+ (object_class, PROP_TYPE_FILTER_DATA,
+ g_param_spec_pointer ("type-filter-data", "", "",
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
void