Bug in scrollbar adjustments?

I'm fairly new to Gtk programming, so I'd appreciate it if I could get
some feedback as to whether what I am doing is legal or useful ...

I created an adjustment and connected a scrollbar to it.  So far, so froody ...

Now, I twizzle the values such that I get the following feedback from my line:

  fprintf(stderr,"adjvals: %f %f %f %f %f %f",gs->hadj->value,


adjvals: 0.100000 -20.000000 40.000000 5.000000 20.000000 20.000000

And the scrollbar looks correct.  If, however, I change the value to 0.0,
the scrollbar slams all the way to minimum in spite of the fact that there
should have been minimal change in position.

Yes, I did call gtk_adjustment_changed(gs->hadj) or the scrollbar wouldn't
have picked up any changes at all.

Is this a bug?  Should I not be using negative numbers?  Should I only
be using 0.0 -> 1.0?

Any help would be appreciated.

Andy L.

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