summaryrefslogtreecommitdiff
path: root/gtk/gtktextiter.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-01-02 03:49:09 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-01-02 03:49:09 +0000
commit290e4efdfeff91b7abad43bb9644e4c8e0ff9887 (patch)
treea8327917ea81dccf0ea7b563bc6f1839de66c1b9 /gtk/gtktextiter.c
parente7153de001f47adcba65c007b202dc583e21e09a (diff)
downloadgtk+-290e4efdfeff91b7abad43bb9644e4c8e0ff9887.tar.gz
propagate exposes to no window children not in the buffer window.
2002-01-01 Havoc Pennington <hp@pobox.com> * gtk/gtktextview.c (gtk_text_view_expose_event): propagate exposes to no window children not in the buffer window. (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab - is this the right way to do it? (gtk_text_view_focus): add focus method, just chains up for now, I'm not sure why the GtkContainer implementation doesn't work * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill in the text line for the child anchor segment * tests/testtext.c (do_add_focus_children): add another test example (to put focusable buttons into the widget)
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r--gtk/gtktextiter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c
index 3399b88544..34086c704b 100644
--- a/gtk/gtktextiter.c
+++ b/gtk/gtktextiter.c
@@ -5134,8 +5134,10 @@ _gtk_text_btree_get_iter_at_child_anchor (GtkTextBTree *tree,
g_return_if_fail (iter != NULL);
g_return_if_fail (tree != NULL);
g_return_if_fail (GTK_IS_TEXT_CHILD_ANCHOR (anchor));
+
+ seg = anchor->segment;
- seg = anchor->segment;
+ g_assert (seg->body.child.line != NULL);
iter_init_from_segment (iter, tree,
seg->body.child.line, seg);