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



commit 36925ca7f814af380c99b89dfdc2f9eb6e986e99
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]