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



commit 762191420a79eeec88c57fa606a8e937d7361d15
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 7b25d991a9..57d80c0db6 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]