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



commit e6c96accb6ecb9a5ad507ab51ec15b3525e2076e
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]