Re: GtkText: how to ensure it gets to be a child ?
- From: Owen Taylor <otaylor redhat com>
- To: Paul Barton-Davis <pbd Op Net>
- Cc: gtk-list redhat com
- Subject: Re: GtkText: how to ensure it gets to be a child ?
- Date: 07 Mar 1999 11:46:35 -0500
Paul Barton-Davis <pbd@Op.Net> writes:
> If you insert text into a GtkText widget, it realizes itself. If you
> do this before its parent window (c/o some packing operation), then it
> ends up in its own separate window, rather than as a visible child of
> the container. How can I avoid this without actually realizing the
> text widget and its container in the right order, since I want to be
> able to insert text into a text widget without the widget becoming
> visible (if it currently is not) ?
>
> I know about freeze and thaw, but they don't seem appropriate here,
> since it means that the caller of the insert function needs to know if
> it should thaw the text widget, and this seems unwise.
You can call gtk_wiget_realize() to realize a widget before
it is shown (though it must still have a parent widget).
Or, better, upgrade to GTK+-1.2, which removes the requirement
that the Text widget is realized when inserting text.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]