[chronojump] Encoder: Fixed RenderN bad behaviour
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Encoder: Fixed RenderN bad behaviour
- Date: Sat, 26 May 2012 13:33:18 +0000 (UTC)
commit ead3eb51ee134a40d181110415e791b9c5d26830
Author: Xavier de Blas <xaviblas gmail com>
Date: Sat May 26 15:18:18 2012 +0200
Encoder: Fixed RenderN bad behaviour
src/gui/encoder.cs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index b4c8e33..08e4871 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -75,6 +75,7 @@ public partial class ChronoJumpWindow
int image_encoder_height;
private string encoderAnalysis="powerBars";
+ private string ecconLast;
enum encoderModes { CAPTURE, ANALYZE }
GenericWindow genericWinForEncoder;
@@ -228,6 +229,10 @@ public partial class ChronoJumpWindow
"NULL", ep);
Util.RunPythonEncoder(Constants.EncoderScriptGraphCall, es,false);
+
+ //store this to show 1,2,3,4,... or 1e,1c,2e,2c,... in RenderN
+ //if is not stored, it can change when changed eccon radiobutton on cursor is in treeview
+ ecconLast = findEccon(false);
}
void on_button_encoder_load_stream_clicked (object o, EventArgs args)
@@ -506,7 +511,7 @@ public partial class ChronoJumpWindow
private void RenderN (Gtk.TreeViewColumn column, Gtk.CellRenderer cell, Gtk.TreeModel model, Gtk.TreeIter iter)
{
EncoderCurve curve = (EncoderCurve) model.GetValue (iter, 0);
- if(radiobutton_encoder_concentric.Active)
+ if(ecconLast == "c")
(cell as Gtk.CellRendererText).Text =
String.Format(UtilGtk.TVNumPrint(curve.N,1,0),Convert.ToInt32(curve.N));
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]