[moserial] Fixed non-functional recording timeout spinbutton
- From: Michael J. Chudobiak <mjc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [moserial] Fixed non-functional recording timeout spinbutton
- Date: Fri, 20 Jan 2012 20:26:16 +0000 (UTC)
commit c0b2944741b7f1f3a8d14a7d6b4c85a501c433d2
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Fri Jan 20 15:25:50 2012 -0500
Fixed non-functional recording timeout spinbutton
data/glade/moserial.ui | 1 +
src/PreferencesDialog.vala | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/data/glade/moserial.ui b/data/glade/moserial.ui
index 9e50548..45e53f2 100644
--- a/data/glade/moserial.ui
+++ b/data/glade/moserial.ui
@@ -320,6 +320,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
+ <property name="numeric">True</property>
</object>
<packing>
<property name="expand">False</property>
diff --git a/src/PreferencesDialog.vala b/src/PreferencesDialog.vala
index 430de64..4802bdd 100644
--- a/src/PreferencesDialog.vala
+++ b/src/PreferencesDialog.vala
@@ -53,6 +53,11 @@ public class moserial.PreferencesDialog : GLib.Object
enableTimeout.set_tooltip_text (_("If this option is enabled, recording will be automatically stopped after an adjustable period of inactivity after receiving some data. Moserial will wait indefinitely to record the first data byte before activating the inactivity timer."));
timeout = (SpinButton)builder.get_object("preferences_record_timeout");
+ timeout.adjustment.lower = 0;
+ timeout.adjustment.upper = 600;
+ timeout.adjustment.step_increment = 1;
+ timeout.adjustment.page_increment = 60;
+
systemFont.toggled.connect(this.systemFontToggled);
enableTimeout.toggled.connect(this.enableTimeoutToggled);
okButton.clicked.connect(ok);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]