[retro-gtk/notify-by-pspec: 14/14] core: Use g_object_notify_by_pspec() everywhere



commit 41c10ceecea18072022242e9f3fe939741e236d6
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 66165d4..60952ab 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -663,7 +663,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]);
     restart (self);
   }
   retro_core_set_geometry (self, &system_av_info->geometry);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]