Mercurial > pidgin
comparison src/gtkstatusbox.c @ 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 |
comparison
equal
deleted
inserted
replaced
13801:3f23b55a2cc4 | 13802:a93eeef163a9 |
---|---|
1463 | 1463 |
1464 if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) | 1464 if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) |
1465 { | 1465 { |
1466 if (status_box->imhtml_visible) | 1466 if (status_box->imhtml_visible) |
1467 { | 1467 { |
1468 GtkTextBuffer *buf; | |
1469 GtkTextIter start, end; | |
1470 gtk_widget_show_all(status_box->vbox); | 1468 gtk_widget_show_all(status_box->vbox); |
1471 if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) { | 1469 if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) { |
1472 status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box); | 1470 status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box); |
1473 } | 1471 } |
1474 gtk_widget_grab_focus(status_box->imhtml); | 1472 gtk_widget_grab_focus(status_box->imhtml); |
1475 buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(status_box->imhtml)); | 1473 gtk_imhtml_clear(GTK_IMHTML(status_box->imhtml)); |
1476 gtk_text_buffer_get_start_iter(buf, &start); | |
1477 gtk_text_buffer_get_end_iter(buf, &end); | |
1478 gtk_text_buffer_move_mark_by_name(buf, "insert", &end); | |
1479 gtk_text_buffer_move_mark_by_name(buf, "selection_bound", &start); | |
1480 } | 1474 } |
1481 else | 1475 else |
1482 { | 1476 { |
1483 gtk_widget_hide_all(status_box->vbox); | 1477 gtk_widget_hide_all(status_box->vbox); |
1484 if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) | 1478 if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) |