im.pidgin.pidgin: 72df99671f84834d934f83b25ce492f289d77063
sadrul at pidgin.im
sadrul at pidgin.im
Fri Dec 21 04:35:42 EST 2007
-----------------------------------------------------------------
Revision: 72df99671f84834d934f83b25ce492f289d77063
Ancestor: a6134133e4aaabe5472511722ebd1f17e07134cc
Author: sadrul at pidgin.im
Date: 2007-12-21T09:32:30
Branch: im.pidgin.pidgin
Modified files:
pidgin/gtkconv.c
ChangeLog:
Avoid jumpiness when typing notification in the conv. history is removed.
-------------- next part --------------
============================================================
--- pidgin/gtkconv.c a4c13291d5cf51b3653ee86a0cb31f842d44fbf1
+++ pidgin/gtkconv.c f889d0e30e1e5daaff79eeeede5e67fb9812fa56
@@ -3392,7 +3392,8 @@ update_typing_message(PidginConversation
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 @@ update_typing_icon(PidginConversation *g
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 @@ private_gtkconv_new(PurpleConversation *
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 @@ pidgin_conv_write_conv(PurpleConversatio
(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
More information about the Commits
mailing list