Commit 920f91af authored by Julian Sparber's avatar Julian Sparber
Browse files

contact-sheet: add button to send sms

parent 3fe31393
Pipeline #19640 failed with stage
......@@ -181,11 +181,20 @@ public class Contacts.ContactSheet : ContactForm {
#if HAVE_TELEPATHY
if (this.store.caller_account != null) {
var call_button = create_button ("call-start-symbolic");
var sms_button = create_button ("user-available-symbolic");
call_button.clicked.connect (() => {
Utils.start_call (phone.value, this.store.caller_account);
});
sms_button.clicked.connect (() => {
print("SMS is not yet implemented\n");
});
var box = new Box(Orientation.HORIZONTAL, 0);
box.add(call_button);
box.add(sms_button);
box.get_style_context ().add_class ("linked");
add_row_with_label (TypeSet.phone.format_type (phone), phone.value, call_button);
add_row_with_label (TypeSet.phone.format_type (phone), phone.value, box);
} else {
add_row_with_label (TypeSet.phone.format_type (phone), phone.value);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment