Skip to content

Commit c7b3e44

Browse files
committed
DMPage: Use CbTextView::send signal to send DM
And remove the g_warning() call reminding me to implement it. See #804
1 parent e93bd95 commit c7b3e44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/DMPage.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class DMPage : IPage, Cb.MessageReceiver, Gtk.Box {
6262
this.text_view = new Cb.TextView ();
6363
text_view.set_hexpand (true);
6464
text_view.changed.connect (recalc_length);
65+
text_view.send.connect (send_button_clicked_cb);
6566
bottom_box.add (text_view);
6667

6768
this.send_button = new Gtk.Button.with_label (_("Send"));
@@ -208,8 +209,6 @@ class DMPage : IPage, Cb.MessageReceiver, Gtk.Box {
208209
}
209210

210211
public void on_join (int page_id, Cb.Bundle? args) {
211-
warning ("Add send-activated signal or similar to CbTextView for catching ctrl+return");
212-
213212
int64 user_id = args.get_int64 (KEY_SENDER_ID);
214213
if (user_id == 0)
215214
return;

0 commit comments

Comments
 (0)