This commit is contained in:
Tristan B. Kildaire 2020-10-28 08:23:34 +02:00
parent 624d53d909
commit d10c8f1c3c
1 changed files with 10 additions and 8 deletions

View File

@ -98,6 +98,7 @@ public final class Channel
/* The text input */
textInput = new Entry();
textInput.addOnActivate(&sendMessageEnter);
textInput.addOnChanged(&textChangd);
Box textInputBox = new Box(GtkOrientation.HORIZONTAL, 1);
textInputBox.packStart(textInput,1,1,0);
@ -108,14 +109,6 @@ public final class Channel
textInputBox.add(sendButton);
textBox.add(textInputBox);
// import gtk.TextView;
// TextView f = new TextView();
// textBox.add(f);
box.add(textBox);
box.packEnd(userBox,0,0,0);
@ -124,6 +117,15 @@ public final class Channel
}
import gtk.EditableIF;
private void textChangd(EditableIF)
{
/* If the text box just became empty stop ssending typing notifications */
/* Send typing stats */
// client.sendIsTyping(channelName, true);
/* TODO: Client implement wiht different tag? */
}
private void sendMessageEnter(Entry)
{
/* Retrieve the message */