diff options
author | Havoc Pennington <hp@redhat.com> | 2001-11-06 00:54:24 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-11-06 00:54:24 +0000 |
commit | 604eebd380ef05abb84911f341d48b3381abfe49 (patch) | |
tree | 03aa1add30a0d59decb3a0def6c93e8c0e2a7e81 /gtk/gtktextdisplay.h | |
parent | 9af1351da5732a0295e31c7673ec7843ef65efa8 (diff) | |
download | gtk+-604eebd380ef05abb84911f341d48b3381abfe49.tar.gz |
expose the child widgets in here (gtk_text_view_realize): set parent
2001-11-05 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_paint): expose the child
widgets in here
(gtk_text_view_realize): set parent window of child widgets
(gtk_text_view_size_request): use child req to decide whether
to invalidate layout, not widget->requisition
* gtk/gtktextdisplay.c (render_layout_line): set
shaped_width_pixels for NULL shape objects, so that we properly
draw the "missing pixbuf/widget" thing
(render_layout_line): don't draw the widget here
(gtk_text_layout_draw): pass out a list of widgets that need exposing
* demos/gtk-demo/textview.c (insert_text): add demo of child
widgets
* gtk/gtktextlayout.c (add_child_attrs): remove debug spew
* gtk/gtktextdisplay.c (render_layout_line): remove debug spew
* gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
scroll offsets
(gtk_text_view_value_changed): poke new X and Y into child allocations
Diffstat (limited to 'gtk/gtktextdisplay.h')
-rw-r--r-- | gtk/gtktextdisplay.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktextdisplay.h b/gtk/gtktextdisplay.h index c44a90f03a..28735d5763 100644 --- a/gtk/gtktextdisplay.h +++ b/gtk/gtktextdisplay.h @@ -94,6 +94,7 @@ extern "C" { * x_offset/y_offset - Position of the drawable in layout coordinates * x/y/width/height - Region of the layout to render. x,y must be inside * the drawable. + * widgets - list of widgets that need exposing */ void gtk_text_layout_draw (GtkTextLayout *layout, GtkWidget *widget, @@ -104,7 +105,8 @@ void gtk_text_layout_draw (GtkTextLayout *layout, gint x, gint y, gint width, - gint height); + gint height, + GList **widgets); |