[10460] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: hex spin button

daemon@ATHENA.MIT.EDU (Mitsuru Oka)
Thu Nov 26 04:44:49 1998

To: gtk-list@redhat.com
From: Mitsuru Oka <95i44@is.kochi-u.ac.jp>
In-Reply-To: Your message of "Wed, 25 Nov 1998 14:09:42 -0800 (PST)"
	<199811252209.OAA25718@cx983858-b.orng1.occa.home.com>
Date: Thu, 26 Nov 1998 18:41:40 +0900
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


On Wed, 25 Nov 1998 14:09:42 -0800 (PST)
	wroberts1@home.com(Wayne roberts)  said:
Wayne> I need a spin button that displays as hex.
Wayne> I need it for BROWSING MEMORY, it is an ADDRESS button.
Wayne> hex mode is set with gtk_spin_button_show_as_hex()
Wayne> In gtk_wpin_button_update it will not parse entry as hex unless first to
Wayne> chars are 0x.
Wayne> I tried to follow the numeric & wrap parameters as examples for this patch:

I wonder why spin button widget display only integer and float.

I made gtk_numeric (subclass of gtk_label), it is more flexible
than gtk_spin_button' way. It use g_string_sprintf setting
display format.

  http://www.globe.to/~moka/gtk/gtknumeric.tar.gz

--
Mitsuru Oka
95i44@is.kochi-u.ac.jp

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post