From 4df758dd16a14b99e343af986460a583152ff29f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 25 May 2010 09:44:29 -0400 Subject: [PATCH] Document GtkRange::adjust-bounds --- gtk/gtkrange.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 42dfa1c3dd..744871d065 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -305,6 +305,9 @@ gtk_range_class_init (GtkRangeClass *class) * GtkRange::adjust-bounds: * @range: the #GtkRange that received the signal * @value: the value before we clamp + * + * Emitted before clamping a value, to give the application a + * chance to adjust the bounds. */ signals[ADJUST_BOUNDS] = g_signal_new (I_("adjust-bounds"), @@ -3646,7 +3649,7 @@ gtk_range_real_change_value (GtkRange *range, GtkScrollType scroll, gdouble value) { - /* potentially adjust the bounds _before we clamp */ + /* potentially adjust the bounds _before_ we clamp */ g_signal_emit (range, signals[ADJUST_BOUNDS], 0, value); if (range->layout->restrict_to_fill_level)