summaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-08-21 10:27:43 +0200
committerxengineering <me@xengineering.eu>2022-08-21 10:27:43 +0200
commiteffdc7d687caf331217b6fc20ba51cabf3c56f20 (patch)
tree276b1982fd9b44a3fc6f046464d767b0d7a52a65 /gtk.c
parenta036f4b00cb0c2a7e6c070667ac562f0e585c7e4 (diff)
downloadlimox-effdc7d687caf331217b6fc20ba51cabf3c56f20.tar
limox-effdc7d687caf331217b6fc20ba51cabf3c56f20.tar.zst
limox-effdc7d687caf331217b6fc20ba51cabf3c56f20.zip
Implement own JID for send_message()
Diffstat (limited to 'gtk.c')
-rw-r--r--gtk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk.c b/gtk.c
index 45e6f10..477bd71 100644
--- a/gtk.c
+++ b/gtk.c
@@ -70,11 +70,11 @@ void send_message(chat_t* chat) {
chat_widget_t* chat_widget = (chat_widget_t*)chat->widget;
- // get recipient and message text
const char* text = gtk_editable_get_text(GTK_EDITABLE(chat_widget->entry));
+ const char* self = gtk_editable_get_text(GTK_EDITABLE(connector_jid_entry));
// execute dummy XMPP send TODO
- printf("Sending to %s:\n> %s\n", chat->jid, text);
+ printf("Sending from %s to %s:\n> %s\n", self, chat->jid, text);
//// add message content to the chat
//GtkWidget* message = gtk_label_new(text);