[gtk/stack-fixes: 8/13] Fix GtkSingleSelection property notification



commit ea403ab43a3befbe3216f2a19208bc6feeb76034
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 8 17:50:49 2019 -0500

    Fix GtkSingleSelection property notification
    
    We were forgetting to notify for the ::selected property.

 gtk/gtksingleselection.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtksingleselection.c b/gtk/gtksingleselection.c
index 9a5bd0fad3..b6549b9db6 100644
--- a/gtk/gtksingleselection.c
+++ b/gtk/gtksingleselection.c
@@ -463,6 +463,7 @@ gtk_single_selection_set_selected (GtkSingleSelection *self,
     gtk_selection_model_selection_changed (GTK_SELECTION_MODEL (self), position, old_position - position + 
1);
   else
     gtk_selection_model_selection_changed (GTK_SELECTION_MODEL (self), old_position, position - old_position 
+ 1);
+  g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SELECTED]);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]