Prototyping: Channel join for uncreated channels

This commit is contained in:
Tristan B. Kildaire 2021-01-27 21:51:26 +02:00
parent 5ea0a76a08
commit ecd23539ab
1 changed files with 19 additions and 0 deletions

View File

@ -253,6 +253,16 @@ public class GUI : Thread
channelListButton.addOnClicked(&listChannels);
toolbar.add(channelListButton);
/* TODO: Join channel button */
ToolButton joinChannelButton = new ToolButton("");
joinChannelButton.setIconName("document-new");
joinChannelButton.setTooltipText("Join channel");
toolbar.add(joinChannelButton);
/* TODO: Leave channel button */
@ -414,6 +424,15 @@ public class GUI : Thread
ListBox channelsList = new ListBox();
win.add(new ScrolledWindow(channelsList));
/* TODO: Temporary, REMOVE AFTWR TESTING (ADDED ON 27th of JAN 2021) */
Box box = new Box(GtkOrientation.HORIZONTAL, 1);
box.packStart(new Entry(), 1, 1, 1);
box.add(new Button("Join"));
channelsList.add(box);
/* Get the current connection */
Connection currentConnection = connections[notebook.getCurrentPage()];