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 ); }