models: Fix up property notifications
authorMatthias Clasen <mclasen@redhat.com>
Fri, 31 Mar 2023 00:18:19 +0000 (20:18 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 31 Mar 2023 00:18:19 +0000 (20:18 -0400)
We were emitting redundant notifications
for the ::model property.

gtk/gtknoselection.c
gtk/gtksingleselection.c

index 3dded4f814a52d199aaebd094e809c1367fe2889..c0848f7c0e860479dc7efbe17e9878f05da8ca28 100644 (file)
@@ -233,7 +233,7 @@ gtk_no_selection_class_init (GtkNoSelectionClass *klass)
   properties[PROP_MODEL] =
     g_param_spec_object ("model", NULL, NULL,
                        G_TYPE_LIST_MODEL,
-                       G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+                       G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkNoSelection:n-items:
index 7e06575872176d59695f298725205d4167f4a79c..e4e148ec83fcb6f07a86b3d803bb9778494394b9 100644 (file)
@@ -431,7 +431,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass)
   properties[PROP_MODEL] =
     g_param_spec_object ("model", NULL, NULL,
                          G_TYPE_LIST_MODEL,
-                         G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+                         G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkSingleSelection:n-items: