scales



Hello,

I'm trying to set a new adjustment of a horizontal scale. This doesn't
seem to work.

Something like this is used:

void setScaleMax(GtkScale *scale, double newMax) {
    GtkAdjustment *adj;

    adj = gtk_adjustment_new(value, minValue, newMax + 1.0, 0.01, 0.1,
newMax);
    gtk_range_set_adjustment((GtkRange *)scale, adj);
}

I suppose the scale doesn't recognize the change, so maybe a
gtk_scale_set_adjustment is need ?!

Thanks
    Helge




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