From 1c7e66a2a609bf5e956c6f76bf7db7e585860731 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 11 Nov 2010 14:31:09 +0100 Subject: add EmpathyInputTextView --- libempathy-gtk/empathy-chat.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'libempathy-gtk/empathy-chat.c') diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 53f046bcd..7c238f0c4 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -48,6 +48,7 @@ #include "empathy-contact-list-store.h" #include "empathy-contact-list-view.h" #include "empathy-contact-menu.h" +#include "empathy-input-text-view.h" #include "empathy-search-bar.h" #include "empathy-theme-manager.h" #include "empathy-smiley-manager.h" @@ -2588,14 +2589,8 @@ chat_create_ui (EmpathyChat *chat) gtk_widget_show (GTK_WIDGET (chat->view)); /* Add input GtkTextView */ - chat->input_text_view = g_object_new (GTK_TYPE_TEXT_VIEW, - "pixels-above-lines", 2, - "pixels-below-lines", 2, - "pixels-inside-wrap", 1, - "right-margin", 2, - "left-margin", 2, - "wrap-mode", GTK_WRAP_WORD_CHAR, - NULL); + chat->input_text_view = empathy_input_text_view_new (); + g_signal_connect (chat->input_text_view, "key-press-event", G_CALLBACK (chat_input_key_press_event_cb), chat); -- cgit v1.2.3