[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Spin button problem
- From: Bart Vandewoestyne <Bart Vandewoestyne skynet be>
- To: gtk-app-devel-list redhat com
- Subject: Re: Spin button problem
- Date: Sun, 20 Feb 2000 13:25:54 +0100
Bart Vandewoestyne wrote:
>
> > I'm having the following spin button problem:
> >
> > I have attached two spinbuttons to a horizontal buttonbox. I want to be
> > able to change the value of one spinbutton without changing the value of
> > the other. Now, for some strange reason that i didn't find yet, when i
> > change the value of the first spinbutton, the value of the SECOND
> > spinbutton gets the same value! I don't know WHY this is, and would be
> > glad to get some hints on this one...
OK, i found my problem. The mistake I made was using the same
GtkAdjustment for both spinbuttons. I had to make a GtkAdjustment for
each spinbutton.
Still i find this strange... if both buttons can have the same
GtkAdjustments, then why is it necessary to make two GtkAdjustments?
Wouldn't it be easier to make just one GtkAdjustment and use that for
both the buttons? Of course, both the buttons should be able to change
values without affecting the value of the other buttons that use the
same GtkAdjustment.
Can somebody give me some more reasons why the GTK-people programmed it
that way and not the way I am suggesting here ?
Tnx!
Bart
--
Bart Vandewoestyne http://hello.to/MC303
Hugo Verrieststraat 48 Bart.Vandewoestyne@skynet.be
8550 ZWEVEGEM ICQ# 21275340
BELGIUM - EUROPE nick: MC303
Phone: +32(0)56/75.48.11
-------------------------------------------------------------
"If we knew what it was we were doing, it would not
be called research, would it?"
-- Albert Einstein --
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]