Re: [gtk-list] Re: scrollbars and signals



Nicholas Lamb wrote:
> 
> On Fri, 30 Jan 1998, Nathan Froyd wrote:
> 
> [On the subject of Adjustments]
> [deleted]
> Uh? How does this let me connect a Scrollbar and a slider together?
> Now I would have to write loads of "look in the scrollbar, put the
> value in the slider" and "look in the slider, put the value in the
> scrollbar" code. And the code which cares about the value elsewhere
> must know which I have used, a slider or a scrollbar... Arrrgh!
> 
> I think a few extra lines of code here and there are not much to pay
> for the advantages of the current design.

What advantages, in particular do you see? It's not that hard to write a
little extra code in the app to work with returned values from
scrollbars. Say you wanted RGB to HSV (like the ColorSel widget). You'd
simply have the RGB sliders connected to a common callback, which would
register the RGB values and translate them into the equivalent HSV
values. Finally, you'd set the HSV scrollbars. Of course, you'd work in
reverse (sort of) to go HSV->RGB. I'm still not convinced of the wisdom
of creating a separate adjustment object for each range (scrollbar,
slider, whatever).

Nathan



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