Re: Simple GtkRange Problem
- From: Roger Leigh <rleigh whinlatter ukfsn org>
- To: Greg Breland <gbreland mozillanews org>
- Cc: gtk-app-devel <gtk-app-devel-list gnome org>
- Subject: Re: Simple GtkRange Problem
- Date: Tue, 22 Feb 2005 19:20:27 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greg Breland <gbreland mozillanews org> writes:
I must be missing something very obvious, but for the life of me I can't
find it. I'm using a GtkVscale widget with FC2 GTK2.4 like so:
control = gtk_vscale_new(NULL);
gtk_scale_set_digits(GTK_SCALE(control), 0);
gtk_range_set_range(GTK_RANGE(control), 0, 100);
gtk_range_set_increments(GTK_RANGE(control), 1, 10);
The step always works as expected when using the up/down arrow keys.
However, the page is always double what I set. In the case above, Page
Up/Down results in the value changing by 20.
Does the value set match the page size in the underlying
GtkAdjustment? (gtk_range_get_adjustment())
I did see someone in the past have problems on Mac with the page
increment event being called twice, could this be my problem?
If you connect a handler that prints a message to the "value-changed"
signal of either the GtkRange or the GtkAdjustment, this should tell
you if it's adjusted twice.
Does GtkRange use Pango units or something?
It's just a gdouble in the adjustment; no units.
Regards,
Roger
- --
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFCG4X4VcFcaSW/uEgRAveSAKCPv4HgsfMY0STvndvmk9f9x7zXbwCgn6Eh
Awsc6qJxH6P2O2fUTMAGx6o=
=Vh6H
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]