revert "keep cursor visible when size changes" since it breaks things

2006-06-26  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktextview.c (gtk_text_view_size_allocate): revert "keep
	cursor visible when size changes" since it breaks things (#344874).
This commit is contained in:
Michael Natterer 2006-06-26 13:03:45 +00:00 committed by Michael Natterer
parent f0b7224fde
commit d7603343d8
3 changed files with 14 additions and 14 deletions

View File

@ -1,3 +1,8 @@
2006-06-26 Michael Natterer <mitch@imendio.com>
* gtk/gtktextview.c (gtk_text_view_size_allocate): revert "keep
cursor visible when size changes" since it breaks things (#344874).
2006-06-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_cell_view_menu_item_new): Avoid

View File

@ -1,3 +1,8 @@
2006-06-26 Michael Natterer <mitch@imendio.com>
* gtk/gtktextview.c (gtk_text_view_size_allocate): revert "keep
cursor visible when size changes" since it breaks things (#344874).
2006-06-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_cell_view_menu_item_new): Avoid

View File

@ -3127,21 +3127,11 @@ gtk_text_view_size_allocate (GtkWidget *widget,
*/
gtk_text_view_flush_first_validate (text_view);
/* widget->window doesn't get auto-redrawn as the layout is computed, so has to
* be invalidated
*/
if (size_changed && GTK_WIDGET_REALIZED (widget))
{
GtkTextBuffer *buffer;
/* widget->window doesn't get auto-redrawn as the layout is
* computed, so has to be invalidated
*/
gdk_window_invalidate_rect (widget->window, NULL, FALSE);
/* keep cursor visible */
buffer = get_buffer (text_view);
gtk_text_view_scroll_to_mark (text_view,
gtk_text_buffer_get_mark (buffer, "insert"),
0.0, FALSE, 0.0, 0.0);
}
gdk_window_invalidate_rect (widget->window, NULL, FALSE);
}
static void