Hi again, Sorry to bother you guys again. I've been at this for a few days now and I really can't figure it out. What I'm trying to do is have a constant string or label in a text view buffer. Something like what gnome-terminal has with the username host What I've tried to do so far is connect to the textview signal_event and look for the backspace or delete key. That worked kind of, but, the user can still add text then delete the constant text. Here is the code for that:
I also tried adding a label to text view, but the same problem
araised again, the user can delete the label. Here is the code for
that:
Any suggestions to what I can do?Thank you all very much Tim O.
|