RE: Deleting text from a GtkExText
- From: "Dugas, Alan" <alan dugas analog com>
- To: gtk-app-devel-list gnome org, detlef reichl arcormail de, gtk-list gnome org
- Subject: RE: Deleting text from a GtkExText
- Date: Mon, 6 Nov 2000 13:30:11 -0500
Well, by scaling down the number of calls to gtk_extext_insert() I found
that the loading scaled proportionatly. This more or less confirms my
suspiction that gtkextext requires significantly more overhead than gtktext.
For the time being I will live with this with an eye towards writing as much
data as possible into one gigantic array to minimize gtk_extext_insert()
calls. However, how do I display text at one location and insert text in
another? The application I am working on collects data real-time and
appends new data to the bottom of the gtkextext. If I wish to view
something at the top of the widget and use either the scrollbar or keyboard
to do so, the text that's supposed to be appended to the bottom gets
inserted into the viewing location instead!! Has anyone else run into this?
>From what I've seen in the gtkextext.h file, the API doesn't appear to have
a function to facilitate this. Thanks again to those who respond.
-- Stupid Genius
> ----------
> From: Detlef Reichl[SMTP:detlef reichl arcormail de]
> Reply To: detlef reichl arcormail de
> Sent: Saturday, November 04, 2000 12:58 PM
> To: GTK app devel
> Subject: RE: Deleting text from a GtkExText
>
>
> On Fri, 3 Nov 2000, Dugas, Alan wrote:
> > Thanks for your responses Chris and Detlef. I keep trying to use this
> > widget as a gtktext. Have either of you run into problems with cpu
> usage
>
> no ;)
>
> > when using gtkextext to insert text? After replacing gtktext with
> > gtkextext, the update rate of the gtkextext is so slow my system locks
> up!
> > In other words this widget appears to have an extremely large amount of
> > overhead.
>
> to me it seems not very slow. but i must say, that i use it in muli only
> for quit small text chunks, aprox 1k. but at this size it is possible to
> switch the page more then 10 times / second on a PII 350, 198 megs of
> ram(not tested with a stopwatch :).
>
> Unless... I have something in my code that's messing with
> the
> > gtkextext. Any ideas?
>
> if you insert your text linewise, that can be realy time consumptiv.
>
> beside of this, is it possible that you not only changed to gtkextext, but
> also to pixmap themes? or in other words try it with the default theme.
> pixmap themes are absolut time suckin pigs
>
> and at least, if you are short of memory, it can give a problem with
> gtkextext, cause it leaks memory. not the most, but if you change the
> contents very often...
>
> if that all not helps, can you send a snippet of code, that shows the
> behaviour? (direct, not over the list, if its bigger)
>
> detlef
> --
> | Multipliciter Lingua |
> | muli.sourceforge.net |
>
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]