From 20205a607a3f627d7e6867d3b81b4d6a0e2ac4a4 Mon Sep 17 00:00:00 2001 From: tzim Date: Thu, 3 Oct 2013 09:50:32 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20bug=20affichage=20des=20sequenceur?= =?UTF-8?q?s=20charg=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DMX-2.0/MainWindow.cs | 6 ++++++ DMX-2.0/SeqLinUI.cs | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/DMX-2.0/MainWindow.cs b/DMX-2.0/MainWindow.cs index e4ddf01..a9ca4de 100644 --- a/DMX-2.0/MainWindow.cs +++ b/DMX-2.0/MainWindow.cs @@ -449,6 +449,12 @@ namespace DMX2 } catch (IOException) { } + foreach (Sequenceur s in Conduite.Courante.Sequenceurs) { + VBox newvbox = new VBox(); + newvbox.PackStart(s.GetUI(),false,false,0); + onglets.Add (newvbox); + onglets.ShowAll(); + } MajWidgets(); NextUpdateFull(); } diff --git a/DMX-2.0/SeqLinUI.cs b/DMX-2.0/SeqLinUI.cs index 27217fb..b98ae7d 100644 --- a/DMX-2.0/SeqLinUI.cs +++ b/DMX-2.0/SeqLinUI.cs @@ -24,7 +24,6 @@ namespace DMX2 this.Build (); titreLabel.Text = s.Name; sequenceur = s; - Update(true); #region Construction listeEffets // Construction de la liste d'effets @@ -74,7 +73,9 @@ namespace DMX2 dureeCell.Edited += EditDuree; transCell.Edited += EditTrans; + //Update(true); UpdListeEffets(); + #endregion } @@ -220,10 +221,15 @@ namespace DMX2 protected void FullUpdate () { - fullUpdFlag=true; + fullUpdFlag = true; lastKnownWidth = zoneWid.Allocation.Width; + if (lastKnownWidth < 50) { + fullUpdFlag=false; + return; + } + foreach (Widget wid in new List(zoneWid.Children)) zoneWid.Remove (wid);