[moserial] use int.parse() instead of string.to_int()
- From: Michael J. Chudobiak <mjc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [moserial] use int.parse() instead of string.to_int()
- Date: Wed, 17 Aug 2011 14:07:53 +0000 (UTC)
commit 65135e057a8d493a3bff8278142ad5c7eefe13f1
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Wed Aug 17 10:07:28 2011 -0400
use int.parse() instead of string.to_int()
src/SettingsDialog.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/SettingsDialog.vala b/src/SettingsDialog.vala
index 92f046e..8b0f8d6 100644
--- a/src/SettingsDialog.vala
+++ b/src/SettingsDialog.vala
@@ -182,9 +182,9 @@ public class moserial.SettingsDialog : GLib.Object
Settings.AccessMode accessMode;
bool pLocalEcho;
device = deviceCombo.get_active_text();
- baudRate = baudRateCombo.get_active_text().to_int();
- dataBits = dataBitsCombo.get_active_text().to_int();
- stopBits = stopBitsCombo.get_active_text().to_int();
+ baudRate = int.parse (baudRateCombo.get_active_text());
+ dataBits = int.parse (dataBitsCombo.get_active_text());
+ stopBits = int.parse (stopBitsCombo.get_active_text());
/* Glade choices must be in same order as Settings enums */
parity = (Settings.Parity)parityCombo.get_active();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]