Text widget redraw.



1. How can I redraw text widget?
[should I emit signal "expose"? :-| or...]

The problem is: I have GtkNotebook widget with some (currently two)
pages. One of the pages is GtkTable with GtkText and two scrollbars.
So if I freeze text, del it all, insert new text and after that
thaw text - I get a mix of the old text and new one (i.e. old text on the
_screen_ wasn't delete and new text is painting on it). But if I
change page in Notebook (from text to other) and after that change it
back I got what I want: no mix, no old text only new one.
How can I redraw text without ugly page switching?

2. Is text's scrollbars (i.e. adjustments) updated automaticly when I
   change text stuff? (if I add new text or if I del a piece of text so on.)
   or I should do this update manualy? (e.g. emit "changed" signal).

---
Dmitry Ponomaryov





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]