How to adjust a GtkAdjustment...



How would I change the upper value of an already created GtkAdjustment?

I have a code similar to the following snippet:

{
GtkObject *watch_adjust;

watch_adjust=gtk_adjustment_new(0, 0, 0, 1, 1, 10);
}

//////////

Later in the code, I would like to adjust the upper boundary of the adjustment, so I tried this:

{
int x=10;

watch_adjust->upper=(gfloat)x;
}

When I compile I get an error that watch_adjust has no member named upper, however, according to the API 
Reference, it does.

What am I doing wrong? How can I fix it?

(By the way in my actual program watch_adjust is a global variable, so it's not a problem with the variable's 
scope)



Thank You,

Gordon R. Ellsworth, Jr.






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