[gtk] switch: Notify :state by pspec
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] switch: Notify :state by pspec
- Date: Fri, 1 Feb 2019 17:53:50 +0000 (UTC)
commit 5852a5ece86c87c68ee4ca1dff1acd34e00996c7
Author: Timm Bäder <mail baedert org>
Date: Wed Jan 30 17:46:08 2019 +0100
switch: Notify :state by pspec
gtk/gtkswitch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 7a0a2f54c2..4bdfb5094f 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -762,7 +762,7 @@ gtk_switch_set_state (GtkSwitch *sw,
else
gtk_widget_unset_state_flags (GTK_WIDGET (sw), GTK_STATE_FLAG_CHECKED);
- g_object_notify (G_OBJECT (sw), "state");
+ g_object_notify_by_pspec (G_OBJECT (sw), switch_props[PROP_STATE]);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]