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

Problem with adjustments



Hi,

I have a noneditable GtkText in my application that the app inserts to. It
has a vertical scroll bar and I want to scroll it to the bottom when I
append stuff. I've tried this code:

      gtk_adjustment_set_value (GTK_TEXT(text)->vadj, GTK_TEXT 
(text)->vadj->upper);
      gtk_widget_queue_draw (text);

The result is a segmentation fault.

If I subtract 1 from upper, then the scrollbar reflects my changes and
moves the thumb to the bottom, but the text widget just turns into a white
rectangle and won't redraw correctly untill I scroll it by hand.

Any ideas?




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