[gnoduino] add upload.verbose save/restore function
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnoduino] add upload.verbose save/restore function
- Date: Mon, 9 Apr 2012 18:01:28 +0000 (UTC)
commit 8436354cbc3874340641b7fabbdb35e2a05198e3
Author: Lucian Langa <lucilanga gnome org>
Date: Mon Apr 9 19:27:02 2012 +0200
add upload.verbose save/restore function
src/ui.py | 14 ++++++++++++++
ui/main.ui | 2 +-
2 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/src/ui.py b/src/ui.py
index 28ce761..943fbc0 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -295,6 +295,7 @@ def preferences(widget, data=None):
fe = gui.get_object("fontbutton1")
fc = gui.get_object("fontbutton2")
bv = gui.get_object("build.verbose")
+ uv = gui.get_object("upload.verbose")
sn = gui.get_object("show.numbers")
ul = gui.get_object("user.library")
p = prefs.preferences()
@@ -309,6 +310,14 @@ def preferences(widget, data=None):
val = 1
bv.set_active(val)
val = 0
+ if config.upload_verbose != -1:
+ if config.upload_verbose == 'true':
+ val = 1
+ else:
+ if p.getSafeValue("upload.verbose", "false") == 'true':
+ val = 1
+ uv.set_active(val)
+ val = 0
if config.show_numbers != -1:
if config.show_numbers == 'true':
val = 1
@@ -332,6 +341,11 @@ def preferences(widget, data=None):
else:
config.build_verbose = 'false'
p.setValue("build.verbose", config.build_verbose)
+ if uv.get_active() == 1:
+ config.upload_verbose = 'true'
+ else:
+ config.upload_verbose = 'false'
+ p.setValue("upload.verbose", config.upload_verbose)
if sn.get_active() == 1:
config.show_numbers = 'true'
else:
diff --git a/ui/main.ui b/ui/main.ui
index 7745768..407c254 100644
--- a/ui/main.ui
+++ b/ui/main.ui
@@ -402,7 +402,7 @@ Pascal de Bruijn <pmjdebruijn pcode nl></property>
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="build.upload">
+ <object class="GtkCheckButton" id="upload.verbose">
<property name="label" translatable="yes">Verbose upload</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]