summaryrefslogtreecommitdiff
path: root/gtk/gtkrange.h
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-08-27 02:54:12 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-08-27 02:54:12 +0000
commit01bc5631473028f475b05c63100cb99025c36284 (patch)
tree45475c7c56883b9f88c523666235bf4e594cbae0 /gtk/gtkrange.h
parent24dd1030f08ae6eec6328cc6407391b3e5ca13d6 (diff)
downloadgtk+-01bc5631473028f475b05c63100cb99025c36284.tar.gz
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.
Diffstat (limited to 'gtk/gtkrange.h')
-rw-r--r--gtk/gtkrange.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h
index 9f3758ea8c..12bcd8048a 100644
--- a/gtk/gtkrange.h
+++ b/gtk/gtkrange.h
@@ -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);
};