changeset 13802:a93eeef163a9

[gaim-migrate @ 16216] Part of SF Patch #1500267 from Sadrul 'Fix for a couple of showstopper bugs on status + RFE "The message should be cleared when changing statuses, not saved as it is now." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 04 Jun 2006 08:14:25 +0000
parents 3f23b55a2cc4
children 25a09aff5dde
files src/gtkstatusbox.c
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkstatusbox.c	Sun Jun 04 07:40:13 2006 +0000
+++ b/src/gtkstatusbox.c	Sun Jun 04 08:14:25 2006 +0000
@@ -1465,18 +1465,12 @@
 	{
 		if (status_box->imhtml_visible)
 		{
-			GtkTextBuffer *buf;
-			GtkTextIter start, end;
 			gtk_widget_show_all(status_box->vbox);
 			if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) {
 				status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box);
 			}
 			gtk_widget_grab_focus(status_box->imhtml);
-			buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(status_box->imhtml));
-			gtk_text_buffer_get_start_iter(buf, &start);
-			gtk_text_buffer_get_end_iter(buf, &end);
-			gtk_text_buffer_move_mark_by_name(buf, "insert", &end);
-			gtk_text_buffer_move_mark_by_name(buf, "selection_bound", &start);
+			gtk_imhtml_clear(GTK_IMHTML(status_box->imhtml));
 		}
 		else
 		{