gtk2/tests
Havoc Pennington 7a958797e2 Rearrange all the scroll-while-dragging-or-selecting code to be different,
2000-12-31  Havoc Pennington  <hp@pobox.com>

* gtk/gtktextview.c: Rearrange all the
scroll-while-dragging-or-selecting code to be different, not
necessarily better. ;-)
(gtk_text_view_scroll_to_mark): Change this
function to take within_margin as a fraction instead of a pixel
value, and to take alignment arguments (indicating where to align
the mark inside the visible area)

* gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
to GtkObject

* gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
behavior so that offsets past the end of the line are not
allowed, and an offset equal to the line length moves the iterator
to the next line
(gtk_text_iter_set_line_index): make parallel change
(gtk_text_iter_get_bytes_in_line): add this function

* gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
of byte indexes off the end of the line; byte index at the end of
the line now returns FALSE and doesn't fill in the requested
values, byte index past the end of the line is an error.  Also,
don't allow -1 offset anymore, since its meaning is unclear.

This change exposes some bug in visual cursor motion, where we
end up with a huge invalid byte index; needs fixing. Symptom of
bug is a crash when you hit up arrow.

(_gtk_text_line_char_locate): match the change to byte_locate

* gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
from start of line properly. fixes bug reported by Mikael
Hermansson where backspace would delete all text before the
cursor.
2000-12-31 23:28:57 +00:00
..
3DRings.xpm Initial revision 1997-11-24 22:37:52 +00:00
check-n.xpm reworked the redrawing heuristics somewhat, this fixed a bunch of existing 1999-01-12 15:12:14 +00:00
check-y.xpm reworked the redrawing heuristics somewhat, this fixed a bunch of existing 1999-01-12 15:12:14 +00:00
circles.xbm gtk/gtktext.c 1998-02-27 06:13:22 +00:00
FilesQueue.xpm Initial revision 1997-11-24 22:37:52 +00:00
Makefile.am new directory to contain tests, gtk/test* should move here sometime (with 2000-12-21 01:53:39 +00:00
marble.xpm Initial revision 1997-11-24 22:37:52 +00:00
Modeller.xpm Initial revision 1997-11-24 22:37:52 +00:00
simple.c Add call to g_type_init() - we'll need this later, and this makes sure 2000-06-06 00:56:00 +00:00
test.xpm Initial revision 1997-11-24 22:37:52 +00:00
testcalendar.c Remove all references to offscreen flag which was no longer used. 2000-06-02 03:14:07 +00:00
testdnd.c documented necessary changes for 1.4 transition. 2000-05-12 15:25:50 +00:00
testgtk.1 Added gtk/testgtk.1 man page for testgtk 1998-03-24 04:01:21 +00:00
testgtk.c Add two virtualized functions gdk_drawable_get_clip_region - to get the 2000-12-15 01:46:41 +00:00
testgtkrc create some stock buttons with the default accel group (create_image): 2000-10-20 23:14:41 +00:00
testgtkrc2 Remove all references to offscreen flag which was no longer used. 2000-06-02 03:14:07 +00:00
testinput.c applied patch from Andreas Persenius <ndap@swipnet.se> that updates the 2000-07-26 11:33:08 +00:00
testrgb.c applied patch from Andreas Persenius <ndap@swipnet.se> that updates the 2000-07-26 11:33:08 +00:00
testselection.c applied patch from Andreas Persenius <ndap@swipnet.se> that updates the 2000-07-26 11:33:08 +00:00
testtext.c wow, that implementation was pretty non-working. 2000-12-18 19:12:35 +00:00
testtextbuffer.c Rearrange all the scroll-while-dragging-or-selecting code to be different, 2000-12-31 23:28:57 +00:00
testthreads.c applied patch from Andreas Persenius <ndap@swipnet.se> that updates the 2000-07-26 11:33:08 +00:00
testtreeview.c more work 2000-12-21 22:17:38 +00:00
treestoretest.c :get_property): remove g_value_init calls, as they are no longer needed. 2000-12-21 05:27:06 +00:00