diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-11-11 21:31:09 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-11-11 22:03:56 +0800 |
commit | 1c7e66a2a609bf5e956c6f76bf7db7e585860731 (patch) | |
tree | 559fe1bc7829b8ab624cbb64698061296b298419 /libempathy-gtk/empathy-chat.c | |
parent | b1ca9031bfee03b12d6a4002d223b96a03810c20 (diff) | |
download | gsoc2013-empathy-1c7e66a2a609bf5e956c6f76bf7db7e585860731.tar gsoc2013-empathy-1c7e66a2a609bf5e956c6f76bf7db7e585860731.tar.gz gsoc2013-empathy-1c7e66a2a609bf5e956c6f76bf7db7e585860731.tar.bz2 gsoc2013-empathy-1c7e66a2a609bf5e956c6f76bf7db7e585860731.tar.lz gsoc2013-empathy-1c7e66a2a609bf5e956c6f76bf7db7e585860731.tar.xz gsoc2013-empathy-1c7e66a2a609bf5e956c6f76bf7db7e585860731.tar.zst gsoc2013-empathy-1c7e66a2a609bf5e956c6f76bf7db7e585860731.zip |
add EmpathyInputTextView
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 11 |
1 files changed, 3 insertions, 8 deletions
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); |