diff options
author | Havoc Pennington <hp@pobox.com> | 2000-12-02 07:51:37 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-12-02 07:51:37 +0000 |
commit | 35876710dc133b5cab14241174ba0e680ca854af (patch) | |
tree | cab3760bbea08fdcb20e9a9a9f10f6eff3c00b07 /gtk/gtktextlayout.h | |
parent | fb14d1299e3b81a70938462f841f17ea1e217ded (diff) | |
download | gtk+-35876710dc133b5cab14241174ba0e680ca854af.tar.gz |
don't create dangling pointers to the appearance attributes from the line
2000-11-30 Havoc Pennington <hp@pobox.com>
* gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
dangling pointers to the appearance attributes from the
line display
* gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
width/height to mean "full width/height of drawable"
* gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
click to select word/line
* gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters
when getting log attrs. Get a slice, so that pixmaps and stuff
are properly handled.
* gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
paste into the selection (replaces selection now, previously
crashed or added to selection). Reveals longstanding btree bug -
select multiple lines, middle-click on the selection, boom. This
isn't related to my changes though.
* gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
PangoLogAttrs changes
(gtk_entry_move_backward_word): ditto
* gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
functions return bool whether the iter moved onto a
dereferenceable position.
* gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
functions for motion in terms of display lines.
* gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
get the buffer a mark is inside
Diffstat (limited to 'gtk/gtktextlayout.h')
-rw-r--r-- | gtk/gtktextlayout.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h index 81e8824f01..8977a97eb7 100644 --- a/gtk/gtktextlayout.h +++ b/gtk/gtktextlayout.h @@ -339,20 +339,22 @@ gboolean gtk_text_layout_clamp_iter_to_vrange (GtkTextLayout *layout, gint top, gint bottom); -void gtk_text_layout_move_iter_to_line_end (GtkTextLayout *layout, - GtkTextIter *iter, - gint direction); -void gtk_text_layout_move_iter_to_previous_line (GtkTextLayout *layout, - GtkTextIter *iter); -void gtk_text_layout_move_iter_to_next_line (GtkTextLayout *layout, - GtkTextIter *iter); -void gtk_text_layout_move_iter_to_x (GtkTextLayout *layout, - GtkTextIter *iter, - gint x); -void gtk_text_layout_move_iter_visually (GtkTextLayout *layout, - GtkTextIter *iter, - gint count); - +gboolean gtk_text_layout_move_iter_to_line_end (GtkTextLayout *layout, + GtkTextIter *iter, + gint direction); +gboolean gtk_text_layout_move_iter_to_previous_line (GtkTextLayout *layout, + GtkTextIter *iter); +gboolean gtk_text_layout_move_iter_to_next_line (GtkTextLayout *layout, + GtkTextIter *iter); +void gtk_text_layout_move_iter_to_x (GtkTextLayout *layout, + GtkTextIter *iter, + gint x); +gboolean gtk_text_layout_move_iter_visually (GtkTextLayout *layout, + GtkTextIter *iter, + gint count); + +gboolean gtk_text_layout_iter_starts_line (GtkTextLayout *layout, + const GtkTextIter *iter); /* Don't use these. Use gtk_text_view_add_child_at_anchor(). * These functions are defined in gtktextchild.c, but here |