mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
make editing inline, add up arrow shortcut
This commit is contained in:
@@ -565,6 +565,16 @@ void ChatInput::StopReplying() {
|
||||
m_input.Get().get_style_context()->remove_class("replying");
|
||||
}
|
||||
|
||||
void ChatInput::StartEditing(const Message &message) {
|
||||
m_input.Get().grab_focus();
|
||||
m_input.Get().get_style_context()->add_class("editing");
|
||||
GetBuffer()->set_text(message.Content);
|
||||
}
|
||||
|
||||
void ChatInput::StopEditing() {
|
||||
m_input.Get().get_style_context()->remove_class("editing");
|
||||
}
|
||||
|
||||
bool ChatInput::AddFileAsImageAttachment(const Glib::RefPtr<Gio::File> &file) {
|
||||
try {
|
||||
const auto read_stream = file->read();
|
||||
|
||||
Reference in New Issue
Block a user