mirror of https://github.com/deavminet/gustav.git
TODO
This commit is contained in:
parent
624d53d909
commit
d10c8f1c3c
|
@ -98,6 +98,7 @@ public final class Channel
|
||||||
/* The text input */
|
/* The text input */
|
||||||
textInput = new Entry();
|
textInput = new Entry();
|
||||||
textInput.addOnActivate(&sendMessageEnter);
|
textInput.addOnActivate(&sendMessageEnter);
|
||||||
|
textInput.addOnChanged(&textChangd);
|
||||||
Box textInputBox = new Box(GtkOrientation.HORIZONTAL, 1);
|
Box textInputBox = new Box(GtkOrientation.HORIZONTAL, 1);
|
||||||
textInputBox.packStart(textInput,1,1,0);
|
textInputBox.packStart(textInput,1,1,0);
|
||||||
|
|
||||||
|
@ -108,14 +109,6 @@ public final class Channel
|
||||||
textInputBox.add(sendButton);
|
textInputBox.add(sendButton);
|
||||||
textBox.add(textInputBox);
|
textBox.add(textInputBox);
|
||||||
|
|
||||||
|
|
||||||
// import gtk.TextView;
|
|
||||||
// TextView f = new TextView();
|
|
||||||
// textBox.add(f);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
box.add(textBox);
|
box.add(textBox);
|
||||||
box.packEnd(userBox,0,0,0);
|
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)
|
private void sendMessageEnter(Entry)
|
||||||
{
|
{
|
||||||
/* Retrieve the message */
|
/* Retrieve the message */
|
||||||
|
|
Loading…
Reference in New Issue