mirror of https://github.com/deavminet/gustav.git
Added handler
This commit is contained in:
parent
21f60747a6
commit
37c1afeaaa
|
@ -65,6 +65,10 @@ public final class UserNode
|
||||||
Button messageButton = new Button();
|
Button messageButton = new Button();
|
||||||
Image messageButtonImg = new Image("mail-forward", GtkIconSize.BUTTON);
|
Image messageButtonImg = new Image("mail-forward", GtkIconSize.BUTTON);
|
||||||
messageButton.setImage(messageButtonImg);
|
messageButton.setImage(messageButtonImg);
|
||||||
|
|
||||||
|
/* Set the handler for on click */
|
||||||
|
messageButton.addOnClicked(&newDirectMessage);
|
||||||
|
|
||||||
box.add(messageButton);
|
box.add(messageButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue