[gtk+/wip/baedert/drawing: 131/147] range: Emit value-changed when setting the adjustment



commit f0c69de4d1d61d2f1f37c7690b6735e3a84b6e44
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 dc0c167..d427967 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -690,8 +690,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]