Added handler

This commit is contained in:
Tristan B. Kildaire 2021-01-28 13:38:10 +02:00
parent 21f60747a6
commit 37c1afeaaa
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ public final class UserNode
Button messageButton = new Button();
Image messageButtonImg = new Image("mail-forward", GtkIconSize.BUTTON);
messageButton.setImage(messageButtonImg);
/* Set the handler for on click */
messageButton.addOnClicked(&newDirectMessage);
box.add(messageButton);
}