[gtk/stack-fixes: 1/2] Fix single selection to notify
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/stack-fixes: 1/2] Fix single selection to notify
- Date: Fri, 8 Feb 2019 22:53:13 +0000 (UTC)
commit 6ea1eaf8a819a9ba736e5ef1dccba56272210262
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 8 17:50:49 2019 -0500
Fix single selection to notify
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]