[gtk+/wip/baedert/drawing: 78/129] range: Emit value-changed when setting the adjustment
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 78/129] range: Emit value-changed when setting the adjustment
- Date: Sat, 27 May 2017 17:38:45 +0000 (UTC)
commit 5541a5bf472fdff6c08108126534dbcff9066a6b
Author: Timm Bäder <mail baedert org>
Date: Sat May 13 18:56:20 2017 +0200
range: Emit value-changed when setting the adjustment
After all, the value kind of just changed.
gtk/gtkrange.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index cfdfce3..9e572db 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -682,8 +682,9 @@ gtk_range_set_adjustment (GtkRange *range,
g_signal_connect (adjustment, "value-changed",
G_CALLBACK (gtk_range_adjustment_value_changed),
range);
-
+
gtk_range_adjustment_changed (adjustment, range);
+ gtk_range_adjustment_value_changed (adjustment, range);
g_object_notify_by_pspec (G_OBJECT (range), properties[PROP_ADJUSTMENT]);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]