From bc18b514253c247705fb0722a9cf492b35957c11 Mon Sep 17 00:00:00 2001 From: tzim Date: Fri, 29 Nov 2013 15:50:43 +0000 Subject: [PATCH] =?UTF-8?q?*=20GestionDriversUI.cs:=20Correction=20d'un=20?= =?UTF-8?q?oubli=20apr=C3=A8s=20test=20Evite=20plantage=20si=20port=20s?= =?UTF-8?q?=C3=A9rie=20au=20nom=20court?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * SeqMacroUI.cs: On ne reconstruit pas la liste au changement de ligne, on la rafraichit simplement --- DMX-2.0/GestionDriversUI.cs | 6 +++--- DMX-2.0/SeqMacroUI.cs | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/DMX-2.0/GestionDriversUI.cs b/DMX-2.0/GestionDriversUI.cs index 8cc294a..1a4d8f4 100644 --- a/DMX-2.0/GestionDriversUI.cs +++ b/DMX-2.0/GestionDriversUI.cs @@ -18,8 +18,8 @@ namespace DMX2 lsDriver = new Gtk.ListStore(typeof (String)); - lsDriver.AppendValues("V1 256/0/0/8","0"); - lsDriver.AppendValues("V2 1024/512/16/16","2"); + lsDriver.AppendValues("V1 256/0/0/8"); + lsDriver.AppendValues("V2 1024/512/16/16"); comboDriver.Model = lsDriver; @@ -62,7 +62,7 @@ namespace DMX2 void RenderIDUsb (Gtk.TreeViewColumn tree_column, Gtk.CellRenderer cell, Gtk.TreeModel tree_model, Gtk.TreeIter iter) { FileInfo fi = tree_model.GetValue (iter, 0) as FileInfo; - (cell as Gtk.CellRendererText).Text = fi.Name.Substring(0,35); + (cell as Gtk.CellRendererText).Text = fi.Name.Length>35?fi.Name.Substring(0,35):fi.Name; } void RenderSt (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) diff --git a/DMX-2.0/SeqMacroUI.cs b/DMX-2.0/SeqMacroUI.cs index f9c7697..4639156 100644 --- a/DMX-2.0/SeqMacroUI.cs +++ b/DMX-2.0/SeqMacroUI.cs @@ -294,7 +294,8 @@ namespace DMX2 pbDuree.Fraction = 0.0d;*/ if (effetChange) { - UpdListeEffets(); + //UpdListeEffets(); + effetsListe.QueueDraw(); SelectionneEffet (sequenceur.IndexLigneEnCours); posLabel.Text = string.Format("n°{0}",sequenceur.IndexLigneEnCours +1 ); }