[gtk/wip/otte/listview] Emit selection-changed for autoselection



commit 30db87b12064d605508cc52351b2a0ecb3f829db
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 6 17:43:37 2019 -0500

    Emit selection-changed for autoselection
    
    This was missed in the case that the child model
    goes from empty to non-empty.

 gtk/gtksingleselection.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtksingleselection.c b/gtk/gtksingleselection.c
index 3d4227bd16..22dc6e8eca 100644
--- a/gtk/gtksingleselection.c
+++ b/gtk/gtksingleselection.c
@@ -169,6 +169,7 @@ gtk_single_selection_items_changed_cb (GListModel         *model,
             {
               self->selected = 0;
               g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SELECTED]);
+              emit_selection_changed = TRUE;
             }
         }
     }


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