Mercurial > pidgin
changeset 15779:c9f0d675196a
Typing notifications are relevant only for IMs.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 07 Mar 2007 15:38:44 +0000 |
parents | 20e934a1a47e |
children | 567097a973c6 |
files | console/gntconv.c console/libgnt/gntmain.c |
diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/console/gntconv.c Wed Mar 07 13:29:54 2007 +0000 +++ b/console/gntconv.c Wed Mar 07 15:38:44 2007 +0000 @@ -333,7 +333,6 @@ gnt_entry_set_always_suggest(GNT_ENTRY(ggc->entry), FALSE); g_signal_connect_after(G_OBJECT(ggc->entry), "key_pressed", G_CALLBACK(entry_key_pressed), ggc); - g_signal_connect(G_OBJECT(ggc->entry), "text_changed", G_CALLBACK(send_typing_notification), ggc); g_signal_connect(G_OBJECT(ggc->window), "destroy", G_CALLBACK(closing_window), ggc); gnt_widget_set_position(ggc->window, gaim_prefs_get_int(PREF_ROOT "/position/x"), @@ -343,10 +342,13 @@ g_signal_connect(G_OBJECT(ggc->tv), "size_changed", G_CALLBACK(size_changed_cb), NULL); g_signal_connect(G_OBJECT(ggc->window), "position_set", G_CALLBACK(save_position_cb), NULL); - gaim_signal_connect(gaim_conversations_get_handle(), "buddy-typing", gg_conv_get_handle(), - GAIM_CALLBACK(update_buddy_typing), NULL); - gaim_signal_connect(gaim_conversations_get_handle(), "buddy-typing-stopped", gg_conv_get_handle(), - GAIM_CALLBACK(update_buddy_typing), NULL); + if (type == GAIM_CONV_TYPE_IM) { + g_signal_connect(G_OBJECT(ggc->entry), "text_changed", G_CALLBACK(send_typing_notification), ggc); + gaim_signal_connect(gaim_conversations_get_handle(), "buddy-typing", gg_conv_get_handle(), + GAIM_CALLBACK(update_buddy_typing), NULL); + gaim_signal_connect(gaim_conversations_get_handle(), "buddy-typing-stopped", gg_conv_get_handle(), + GAIM_CALLBACK(update_buddy_typing), NULL); + } g_free(title); }
--- a/console/libgnt/gntmain.c Wed Mar 07 13:29:54 2007 +0000 +++ b/console/libgnt/gntmain.c Wed Mar 07 15:38:44 2007 +0000 @@ -181,7 +181,6 @@ { char keys[256]; int rd = read(STDIN_FILENO, keys, sizeof(keys) - 1); - int processed; char *k; if (rd < 0) { @@ -204,7 +203,6 @@ if (mouse_enabled && detect_mouse_action(keys)) return TRUE; - processed = 0; k = keys; while (rd) { char back;