Re: GtkHScale slider increment

Dear Luciano,

    You can use this function for that,


this might solve your continuous updation problem as default value for
updating hscale value is continuous.

Rahul Karurkar
----- Original Message -----
From: Luciano Chavez <lnx1138 us ibm com>
To: <gtk-list gnome org>
Sent: Wednesday, June 19, 2002 3:33 AM
Subject: GtkHScale slider increment

> Hello,
> I have a simple problem that probably has a simple solution that I've
> overlooked.
> I created a GtkAdjustment as such:
> adj = gtk_adjustment_new (6.0, 6.0, 18.0, 6.0, 0.0, 0.0);
> hscale = gtk_hscale_new (adj);
> I connected the "value_changed" signal to the GtkAdjustment.
> My problem is that if using the mouse to slide the scale, I get values
> like 7.0, 8.0, etc. that are not in increments of 6.0 but if I use the
> left and arrow keys, I get the expected climb rate, i.e. i get 12.0 then
> 18.0.
> What do I change to be able to have an increment of 6.0 when sliding the
> hscale with the mouse?
> --
> regards,
> Luciano Chavez
> lnx1138 us ibm com
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org


This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

Visit us at

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