Ethereal-dev: RE: [ethereal-dev] patch to have ethereal scroll bold text into v iew
It crashed pretty much the same way your stuff cored. The patch I attached
does work (and doesn't trigger a core in my testing), but could probably be
rewritten at some point to eliminate the unnecessary flicker. (My note might
not have been particularly clear.)
Right now, I'm sure I could access the members of GtkText and the adjusters
directly without it coreing, but that is just bad code.
-- Nathan
------------------------------------------------------------
Nathan Neulinger EMail: nneul@xxxxxxx
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216
> -----Original Message-----
> From: Guy Harris [mailto:gharris@xxxxxxxxxxxx]
> Sent: Tuesday, November 16, 1999 5:16 AM
> To: Nathan Neulinger
> Cc: ethereal-dev@xxxxxxxx
> Subject: Re: [ethereal-dev] patch to have ethereal scroll
> bold text into
> view
>
>
> > Does anyone know how to set the scroll position of a
> GtkText while it is
> > frozen? That is the core of the problem - normally doing
> the inserts will
> > scroll the cursor into position. I tried doing various things with
> > setting the adjustment value, but it seems that this just
> causes crashes,
> > so I'm probably not doing it right.
>
> If the crashes are in the middle of the text widget, it's probably the
> text widget that's not doing something right. An attempt of mine to
> have the text widget move to show the selected field's data when a new
> field is selected (an "#if"ed-out version of which got checked into
> "gtk/main.c" at one point - look for the stuff that a recent
> checkin of
> mine deleted) caused plenty of crashes inside GTK+'s text widget.
>