From: <rl...@us...> - 2006-06-06 02:55:20
|
Revision: 16216 Author: rlaager Date: 2006-06-04 01:14:25 -0700 (Sun, 04 Jun 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16216&view=rev Log Message: ----------- 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." Modified Paths: -------------- trunk/src/gtkstatusbox.c Modified: trunk/src/gtkstatusbox.c =================================================================== --- trunk/src/gtkstatusbox.c 2006-06-04 07:40:13 UTC (rev 16215) +++ trunk/src/gtkstatusbox.c 2006-06-04 08:14:25 UTC (rev 16216) @@ -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 { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |