# HG changeset patch # User Sadrul Habib Chowdhury # Date 1198229550 0 # Node ID a64a7bc69f428e7c271d2daad56ecb4cd0801595 # Parent 31a48cbc5e12e16c501422aedf6da5011d78a7b3 Avoid jumpiness when typing notification in the conv. history is removed. diff -r 31a48cbc5e12 -r a64a7bc69f42 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Fri Dec 21 09:03:20 2007 +0000 +++ b/pidgin/gtkconv.c Fri Dec 21 09:32:30 2007 +0000 @@ -3392,7 +3392,8 @@ gtk_text_buffer_delete_mark(buffer, stmark); gtk_text_buffer_delete_mark(buffer, enmark); gtk_text_buffer_delete(buffer, &start, &end); - } + } else if (message && *message == '\n' && !*(message + 1)) + message = NULL; if (message) { GtkTextIter iter; @@ -3431,7 +3432,7 @@ g_source_remove(gtkconv->u.im->typing_timer); gtkconv->u.im->typing_timer = 0; } - update_typing_message(gtkconv, NULL); + update_typing_message(gtkconv, "\n"); return; } @@ -5068,7 +5069,9 @@ gtk_text_buffer_create_tag(GTK_IMHTML(gtkconv->imhtml)->text_buffer, "TYPING-NOTIFICATION", "foreground", "#888888", "justification", GTK_JUSTIFY_LEFT, /* XXX: RTL'ify */ - "weight", PANGO_WEIGHT_BOLD, NULL); + "weight", PANGO_WEIGHT_BOLD, + "scale", PANGO_SCALE_SMALL, + NULL); /* Setup the container for the tab. */ gtkconv->tab_cont = tab_cont = gtk_vbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); @@ -5840,6 +5843,7 @@ (type == PURPLE_CONV_TYPE_IM ? "displayed-im-msg" : "displayed-chat-msg"), account, name, displaying, conv, flags); g_free(displaying); + update_typing_message(gtkconv, NULL); } static void