Re: [gtk-list] gtk_adjustment_set_value seems to not work (0.99.7)



//The subject says it all. If I do
//
//gtk_adjustment_set_value(GTK_ADJUSTMENT(adj), (gfloat)num);
//
//nothing happens. On the other hand,
//
//GTK_ADJUSTMENT(adj)->value = (gfloat)num;
//
//works fine. What's up?

Perhaps num is out of range for the adjustment? ..._set_value does a CLAMP( 
value, adjustment->lower, adjustment->upper ). Regardless, the "value_changed" 
signal will still be emitted, though, so you should be able to detect that.

//Nathan

Regards,

Johannes.
--
"Part of what we are is whom we've loved." - Parke Godwin in Firelord

How do I connect to that real-life thing I keep hearing about?




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