summaryrefslogtreecommitdiff
path: root/libnm-util/nm-setting-serial.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-06-05 16:23:32 -0400
committerDan Winship <danw@gnome.org>2014-06-19 17:45:03 -0400
commitcdc15cb2a6312ab5e6da4618d97e003dce32c1e9 (patch)
treea92ab1ac6917ceedccb7bd8a3405afe4cffde377 /libnm-util/nm-setting-serial.c
parent8252ebd941d17fff932023d29aac0bfe436d4bf9 (diff)
downloadNetworkManager-cdc15cb2a6312ab5e6da4618d97e003dce32c1e9.tar.gz
libnm-util: remove NMSetting* GParamSpec docs
Remove all the GParamSpec docs, since everything now uses the gtk-doc docs instead, so there's no point in having two copies of each (which are often out of sync anyway). Since we're touching so many lines anyway, also fix up the indentation of the remaining property-installing lines, and add G_PARAM_STATIC_STRINGS to each paramspec (so the nick strings don't get strduped). Also, be consistent about starting a new line between "g_object_class_install_property" and its opening parenthesis.
Diffstat (limited to 'libnm-util/nm-setting-serial.c')
-rw-r--r--libnm-util/nm-setting-serial.c52
1 files changed, 20 insertions, 32 deletions
diff --git a/libnm-util/nm-setting-serial.c b/libnm-util/nm-setting-serial.c
index 70152bb3ce..f0d26fad9f 100644
--- a/libnm-util/nm-setting-serial.c
+++ b/libnm-util/nm-setting-serial.c
@@ -261,14 +261,10 @@ nm_setting_serial_class_init (NMSettingSerialClass *setting_class)
**/
g_object_class_install_property
(object_class, PROP_BAUD,
- g_param_spec_uint (NM_SETTING_SERIAL_BAUD,
- "Baud",
- "Speed to use for communication over the serial port. "
- "Note that this value usually has no effect for mobile "
- "broadband modems as they generally ignore speed "
- "settings and use the highest available speed.",
- 0, G_MAXUINT, 57600,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ g_param_spec_uint (NM_SETTING_SERIAL_BAUD, "", "",
+ 0, G_MAXUINT, 57600,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* NMSettingSerial:bits:
@@ -277,12 +273,10 @@ nm_setting_serial_class_init (NMSettingSerialClass *setting_class)
**/
g_object_class_install_property
(object_class, PROP_BITS,
- g_param_spec_uint (NM_SETTING_SERIAL_BITS,
- "Bits",
- "Byte-width of the serial communication. The 8 in "
- "'8n1' for example.",
- 5, 8, 8,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ g_param_spec_uint (NM_SETTING_SERIAL_BITS, "", "",
+ 5, 8, 8,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* NMSettingSerial:parity:
@@ -292,12 +286,10 @@ nm_setting_serial_class_init (NMSettingSerialClass *setting_class)
**/
g_object_class_install_property
(object_class, PROP_PARITY,
- g_param_spec_char (NM_SETTING_SERIAL_PARITY,
- "Parity",
- "Parity setting of the serial port. Either 'E' for even "
- "parity, 'o' for odd parity, or 'n' for no parity.",
- 'E', 'o', 'n',
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ g_param_spec_char (NM_SETTING_SERIAL_PARITY, "", "",
+ 'E', 'o', 'n',
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* NMSettingSerial:stopbits:
@@ -307,12 +299,10 @@ nm_setting_serial_class_init (NMSettingSerialClass *setting_class)
**/
g_object_class_install_property
(object_class, PROP_STOPBITS,
- g_param_spec_uint (NM_SETTING_SERIAL_STOPBITS,
- "Stopbits",
- "Number of stop bits for communication on the serial "
- "port. Either 1 or 2. The 1 in '8n1' for example.",
- 1, 2, 1,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ g_param_spec_uint (NM_SETTING_SERIAL_STOPBITS, "", "",
+ 1, 2, 1,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* NMSettingSerial:send-delay:
@@ -321,10 +311,8 @@ nm_setting_serial_class_init (NMSettingSerialClass *setting_class)
**/
g_object_class_install_property
(object_class, PROP_SEND_DELAY,
- g_param_spec_uint64 (NM_SETTING_SERIAL_SEND_DELAY,
- "SendDelay",
- "Time to delay between each byte sent to the modem, "
- "in microseconds.",
- 0, G_MAXUINT64, 0,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ g_param_spec_uint64 (NM_SETTING_SERIAL_SEND_DELAY, "", "",
+ 0, G_MAXUINT64, 0,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
}