From 695d624fe9aa65b42413ee62c950b8750ac1cb2a Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sun, 18 Oct 2020 12:16:48 +0200 Subject: [PATCH] Now adds, just need to sort out redrawing --- source/Connection.d | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/Connection.d b/source/Connection.d index 77911e8..2ef57e1 100644 --- a/source/Connection.d +++ b/source/Connection.d @@ -258,8 +258,15 @@ public final class Connection : Thread /* Set as the `foundChannel` */ foundChannel = newChannel; + + /* Get the Widgets container for this channel and add a tab for it */ + notebookSwitcher.add(newChannel.getBox()); + + writeln("hdsjghjsd"); } + notebookSwitcher.showAll(); + /* TODO: Now add the widget */ // /* Set this as the currently selected channel */ @@ -339,7 +346,7 @@ public final class Connection : Thread // textBox.add(f); notebookSwitcher = new Notebook(); - notebookSwitcher.add(new Label("test")); + //notebookSwitcher.add(newnew Label("test")); box.add(channelBox); box.add(notebookSwitcher);