Place the cursor at drop point. (#72384) (gtk_text_view_size_allocate):

2002-12-27  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
	cursor at drop point.  (#72384)
	(gtk_text_view_size_allocate): Update the horizontal adjustment
	value.  (#75694)
This commit is contained in:
Matthias Clasen 2002-12-27 02:04:01 +00:00 committed by Matthias Clasen
parent ddf982804f
commit 0ff9554fc3
7 changed files with 46 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2002-12-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
cursor at drop point. (#72384)
(gtk_text_view_size_allocate): Update the horizontal adjustment
value. (#75694)
2002-12-25 Matthias Clasen <maclas@gmx.de> 2002-12-25 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of

View File

@ -1,3 +1,10 @@
2002-12-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
cursor at drop point. (#72384)
(gtk_text_view_size_allocate): Update the horizontal adjustment
value. (#75694)
2002-12-25 Matthias Clasen <maclas@gmx.de> 2002-12-25 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of

View File

@ -1,3 +1,10 @@
2002-12-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
cursor at drop point. (#72384)
(gtk_text_view_size_allocate): Update the horizontal adjustment
value. (#75694)
2002-12-25 Matthias Clasen <maclas@gmx.de> 2002-12-25 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of

View File

@ -1,3 +1,10 @@
2002-12-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
cursor at drop point. (#72384)
(gtk_text_view_size_allocate): Update the horizontal adjustment
value. (#75694)
2002-12-25 Matthias Clasen <maclas@gmx.de> 2002-12-25 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of

View File

@ -1,3 +1,10 @@
2002-12-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
cursor at drop point. (#72384)
(gtk_text_view_size_allocate): Update the horizontal adjustment
value. (#75694)
2002-12-25 Matthias Clasen <maclas@gmx.de> 2002-12-25 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of

View File

@ -1,3 +1,10 @@
2002-12-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
cursor at drop point. (#72384)
(gtk_text_view_size_allocate): Update the horizontal adjustment
value. (#75694)
2002-12-25 Matthias Clasen <maclas@gmx.de> 2002-12-25 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of

View File

@ -2986,6 +2986,8 @@ gtk_text_view_size_allocate (GtkWidget *widget,
text_view->hadjustment->upper = MAX (SCREEN_WIDTH (text_view), text_view->hadjustment->upper = MAX (SCREEN_WIDTH (text_view),
text_view->width); text_view->width);
gtk_adjustment_changed (text_view->hadjustment); gtk_adjustment_changed (text_view->hadjustment);
set_adjustment_clamped (text_view->hadjustment,
text_view->hadjustment->upper - text_view->hadjustment->page_size);
text_view->vadjustment->page_size = SCREEN_HEIGHT (text_view); text_view->vadjustment->page_size = SCREEN_HEIGHT (text_view);
text_view->vadjustment->page_increment = SCREEN_HEIGHT (text_view) * 0.9; text_view->vadjustment->page_increment = SCREEN_HEIGHT (text_view) * 0.9;
@ -5836,6 +5838,8 @@ gtk_text_view_drag_data_received (GtkWidget *widget,
else else
insert_text_data (text_view, &drop_point, selection_data); insert_text_data (text_view, &drop_point, selection_data);
gtk_text_buffer_place_cursor (get_buffer (text_view), &drop_point);
success = TRUE; success = TRUE;
done: done: