[polari] room: Use G_PARAM_EXPLICIT_NOTIFY
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] room: Use G_PARAM_EXPLICIT_NOTIFY
- Date: Wed, 11 Jun 2014 13:33:15 +0000 (UTC)
commit cc5d6b2ca243abd1369fa615dafd30a39a6d7ccc
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Jun 9 22:57:40 2014 +0200
room: Use G_PARAM_EXPLICIT_NOTIFY
We already emit appropriate change notifications, so no need for
g_object_set_property() to do it automatically for us; opting
out hopefully prevents bugs like the one fixed in commit d71c13289a
in the future ...
src/lib/polari-room.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/lib/polari-room.c b/src/lib/polari-room.c
index fc00896..2ee1744 100644
--- a/src/lib/polari-room.c
+++ b/src/lib/polari-room.c
@@ -685,28 +685,28 @@ polari_room_class_init (PolariRoomClass *klass)
"Id",
"Room identifier",
NULL,
- G_PARAM_READABLE);
+ G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_DISPLAY_NAME] =
g_param_spec_string ("display-name",
"Display name",
"Display name",
NULL,
- G_PARAM_READABLE);
+ G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_TOPIC] =
g_param_spec_string ("topic",
"Topic",
"Topic",
NULL,
- G_PARAM_READABLE);
+ G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_ICON] =
g_param_spec_object ("icon",
"Icon",
"Icon",
G_TYPE_ICON,
- G_PARAM_READABLE);
+ G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_ACCOUNT] =
g_param_spec_object ("account",
@@ -736,7 +736,7 @@ polari_room_class_init (PolariRoomClass *klass)
"Channel",
"Channel",
TP_TYPE_CHANNEL,
- G_PARAM_READWRITE);
+ G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_properties (object_class, LAST_PROP, props);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]