make maximum digits compile time configurable via MAX_DIGITS and up to 20.

Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>

        * gtk/gtkspinbutton.c: make maximum digits compile time configurable
        via MAX_DIGITS and up to 20. 5 was just ridiculously small.
        don't use automatic fixed size buffer for printf-ing floats, doubles
        can expand to really _huge_ strings, use g_strdup_printf() instead.
This commit is contained in:
Tim Janik
2001-06-20 04:13:37 +00:00
committed by Tim Janik
parent 9e171fcc95
commit 444bf88aba
9 changed files with 57 additions and 8 deletions

View File

@ -93,7 +93,7 @@ struct _GtkSpinButton
guint button : 2;
guint need_timer : 1;
guint timer_calls : 3;
guint digits : 3;
guint digits : 10;
guint numeric : 1;
guint wrap : 1;
guint snap_to_ticks : 1;