* GestionDriversUI.cs: Correction d'un oubli après test

Evite plantage si port série au nom court

* SeqMacroUI.cs: On ne reconstruit pas la liste au changement de
  ligne, on la rafraichit simplement
This commit is contained in:
tzim 2013-11-29 15:50:43 +00:00
parent fda262cca4
commit bc18b51425
2 changed files with 5 additions and 4 deletions

View file

@ -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)

View file

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