mirror of https://github.com/deavminet/gustav.git
Prototyping: Channel join for uncreated channels
This commit is contained in:
parent
5ea0a76a08
commit
ecd23539ab
19
source/gui.d
19
source/gui.d
|
@ -253,6 +253,16 @@ public class GUI : Thread
|
||||||
channelListButton.addOnClicked(&listChannels);
|
channelListButton.addOnClicked(&listChannels);
|
||||||
toolbar.add(channelListButton);
|
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();
|
ListBox channelsList = new ListBox();
|
||||||
win.add(new ScrolledWindow(channelsList));
|
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 */
|
/* Get the current connection */
|
||||||
Connection currentConnection = connections[notebook.getCurrentPage()];
|
Connection currentConnection = connections[notebook.getCurrentPage()];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue