[retro-gtk/notify-by-pspec] core: Use g_object_notify_by_pspec() everywhere
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/notify-by-pspec] core: Use g_object_notify_by_pspec() everywhere
- Date: Sun, 19 Jan 2020 12:31:05 +0000 (UTC)
commit 7d7aa1d9557fe36055b28bde7960608d35a5524a
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Jan 19 13:29:34 2020 +0100
core: Use g_object_notify_by_pspec() everywhere
Replace the only call to g_object_notify_by_pspec() by a call to
g_object_notify_by_pspec(), unifying the property notifications.
retro-gtk/retro-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/retro-gtk/retro-core.c b/retro-gtk/retro-core.c
index 7486278..3799a3f 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -620,7 +620,7 @@ retro_core_set_system_av_info (RetroCore *self,
{
if (self->frames_per_second != system_av_info->timing.fps) {
self->frames_per_second = system_av_info->timing.fps;
- g_object_notify (G_OBJECT (self), "frames-per-second");
+ g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_FRAMES_PER_SECOND]);
}
retro_core_set_geometry (self, &system_av_info->geometry);
self->sample_rate = system_av_info->timing.sample_rate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]