Provide information about how an adjustment change in a range widget
Thu Aug 26 22:44:12 2004 Matthias Clasen <maclas@gmx.de> Provide information about how an adjustment change in a range widget happened. Add a "slider-moved" signal which reports how a user is interacting with the range, whether they are clicking on a stepper or the trough, or dragging the slider. (#133263, Thomas Fitzsimmons) * gtk/gtkmarshalers.list: Add signal type BOOLEAN:ENUM,DOUBLE. * gtk/gtkrange.c (gtk_range_class_init): Add "change-value" signal. (gtk_range_internal_set_value): Rename to gtk_range_real_change_value. Add GtkScrollType parameter. Emit the change-value signal when the range's value changes. (update_slider_position, gtk_range_scroll_event, step_back, step_forward, page_back, page_forward, scroll_begin, scroll_end): Change gtk_range_internal_set_value to gtk_range_real_change_value. * gtk/gtkrange.h (struct _GtkRangeClass): Declare change_value function.
This commit is contained in:
committed by
Matthias Clasen
parent
24dd1030f0
commit
01bc563147
@ -120,11 +120,14 @@ struct _GtkRangeClass
|
||||
void (* get_range_border) (GtkRange *range,
|
||||
GtkBorder *border_);
|
||||
|
||||
gboolean (* change_value) (GtkRange *range,
|
||||
GtkScrollType scroll,
|
||||
gdouble new_value);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved1) (void);
|
||||
void (*_gtk_reserved2) (void);
|
||||
void (*_gtk_reserved3) (void);
|
||||
void (*_gtk_reserved4) (void);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user