Spinbutton : binary and source incompatible changes



Hi !

Because of bad design, we are going to change the following in
the 1.1 developer branch :

The update policy will be changed from :

typedef enum
{
  GTK_UPDATE_ALWAYS        = 1 << 0,
  GTK_UPDATE_IF_VALID      = 1 << 1,
  GTK_UPDATE_SNAP_TO_TICKS = 1 << 2
} GtkSpinButtonUpdatePolicy;

to:

typedef enum
{
  GTK_UPDATE_ALWAYS,
  GTK_UPDATE_IF_VALID
} GtkSpinButtonUpdatePolicy;

The snap-to-ticks property really doesn't belong here, and will be
replaced by "guint snap_to_ticks : 1" and the function
"gtk_spin_button_set_snap_to_ticks".

Besides, the new default behaviour will be "GTK_UPDATE_ALWAYS" and
"snap_to_ticks = FALSE" instead of "GTK_UPDATE_ALWAYS |
GTK_UPDATE_SNAP_TO_TICKS". So, if you want this feature, you have to
explicitly turn it on.

Apart from the above, the implementation of keyboard acceleration
(which is still missing) requires the addition of just another member
to the GtkSpinButton struct.

Sorry, but it really has to be done, the earlier the better.

bye,
   Stefan Jeske <stefan@gtk.org>
   Lars Hamann  <lars@gtk.org>



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