[beast: 7/9] BSE: emit changed() notification for aida properties



commit f2041cd068c3c22dabe46d8fc373ef0428273e7f
Author: Tim Janik <timj gnu org>
Date:   Fri Nov 20 01:02:41 2015 +0100

    BSE: emit changed() notification for aida properties
    
    Signed-off-by: Tim Janik <timj gnu org>

 bse/bsesong.cc |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/bse/bsesong.cc b/bse/bsesong.cc
index d308d5a..89e97bb 100644
--- a/bse/bsesong.cc
+++ b/bse/bsesong.cc
@@ -927,10 +927,11 @@ SongImpl::bpm (double val)
   BseSong *self = as<BseSong*>();
   if (self->bpm != val)
     {
-      push_property_undo ("bpm");
+      const char prop[] = "bpm";
+      push_property_undo (prop);
       self->bpm = val;
       bse_song_update_tpsi_SL (self);
-      // changed ("bpm");
+      changed (prop);
     }
 }
 
@@ -947,12 +948,13 @@ SongImpl::musical_tuning (MusicalTuningType tuning)
   BseSong *self = as<BseSong*>();
   if (!BSE_SOURCE_PREPARED (self) && self->musical_tuning != tuning)
     {
-      push_property_undo ("musical_tuning");
+      const char prop[] = "musical_tuning";
+      push_property_undo (prop);
       self->musical_tuning = tuning;
       SfiRing *ring;
       for (ring = self->parts; ring; ring = sfi_ring_walk (ring, self->parts))
         bse_part_set_semitone_table ((BsePart*) ring->data, bse_semitone_table_from_tuning 
(self->musical_tuning));
-      // changed ("musical_tuning");
+      changed (prop);
     }
 }
 


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