[empathy] Print autocompletion suggestions to chatview (#599779)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Print autocompletion suggestions to chatview (#599779)
- Date: Wed, 6 Jan 2010 11:48:26 +0000 (UTC)
commit f65faee618844e60b0910107b683f7e74f4523bb
Author: Thomas Meire <blackskad gmail com>
Date: Wed Jan 6 11:47:29 2010 +0000
Print autocompletion suggestions to chatview (#599779)
libempathy-gtk/empathy-chat.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 61a6f53..624b1a0 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1390,6 +1390,8 @@ chat_input_key_press_event_cb (GtkWidget *widget,
guint len;
const gchar *text;
gchar *complete_char = NULL;
+ GString *message = NULL;
+ GList *l;
gtk_text_buffer_delete (buffer, &start, ¤t);
@@ -1405,6 +1407,18 @@ chat_input_key_press_event_cb (GtkWidget *widget,
text = empathy_contact_get_name (completed_list->data);
} else {
text = completed;
+
+ /* Print all hits to the scrollback view, so the
+ * user knows what possibilities he has.
+ * Fixes #599779
+ * */
+ message = g_string_new ("");
+ for (l = completed_list; l != NULL; l = l->next) {
+ g_string_append (message, empathy_contact_get_name (l->data));
+ g_string_append (message, " - ");
+ }
+ empathy_chat_view_append_event (chat->view, message->str);
+ g_string_free (message, TRUE);
}
gtk_text_buffer_insert_at_cursor (buffer, text, strlen (text));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]