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



commit 63b2f080e5d98ee961e5024451357e2a1a33aad3
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]