Skip to content

Commit

Permalink
DMPage: Use CbTextView::send signal to send DM
Browse files Browse the repository at this point in the history
And remove the g_warning() call reminding me to implement it.

See #804
  • Loading branch information
baedert committed Jan 12, 2018
1 parent e93bd95 commit c7b3e44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DMPage.vala
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class DMPage : IPage, Cb.MessageReceiver, Gtk.Box {
this.text_view = new Cb.TextView ();
text_view.set_hexpand (true);
text_view.changed.connect (recalc_length);
text_view.send.connect (send_button_clicked_cb);
bottom_box.add (text_view);

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

public void on_join (int page_id, Cb.Bundle? args) {
warning ("Add send-activated signal or similar to CbTextView for catching ctrl+return");

int64 user_id = args.get_int64 (KEY_SENDER_ID);
if (user_id == 0)
return;
Expand Down

0 comments on commit c7b3e44

Please sign in to comment.