]> Pileus Git - ~andy/gtk/commitdiff
Place the cursor at drop point. (#72384) (gtk_text_view_size_allocate):
authorMatthias Clasen <maclas@gmx.de>
Fri, 27 Dec 2002 02:04:01 +0000 (02:04 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 27 Dec 2002 02:04:01 +0000 (02:04 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextview.c

index 2c08f9e81c7512b0f257bb0e25f67d351b9a795d..f09eb9101f4a697eccb42d470fc35cabac815145 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
index 2c08f9e81c7512b0f257bb0e25f67d351b9a795d..f09eb9101f4a697eccb42d470fc35cabac815145 100644 (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>
 
        * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
index 2c08f9e81c7512b0f257bb0e25f67d351b9a795d..f09eb9101f4a697eccb42d470fc35cabac815145 100644 (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>
 
        * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
index 2c08f9e81c7512b0f257bb0e25f67d351b9a795d..f09eb9101f4a697eccb42d470fc35cabac815145 100644 (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>
 
        * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
index 2c08f9e81c7512b0f257bb0e25f67d351b9a795d..f09eb9101f4a697eccb42d470fc35cabac815145 100644 (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>
 
        * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
index 2c08f9e81c7512b0f257bb0e25f67d351b9a795d..f09eb9101f4a697eccb42d470fc35cabac815145 100644 (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>
 
        * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
index 9530cc674fa18ef675b916066bc49fd95970c998..5c41ecb66de7e9524293c8beaae2fe642aea361c 100644 (file)
@@ -2986,6 +2986,8 @@ gtk_text_view_size_allocate (GtkWidget *widget,
   text_view->hadjustment->upper = MAX (SCREEN_WIDTH (text_view),
                                        text_view->width);
   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_increment = SCREEN_HEIGHT (text_view) * 0.9;
@@ -5836,6 +5838,8 @@ gtk_text_view_drag_data_received (GtkWidget        *widget,
   else
     insert_text_data (text_view, &drop_point, selection_data);
 
+  gtk_text_buffer_place_cursor (get_buffer (text_view), &drop_point);
+
   success = TRUE;
 
  done: