diff options
author | Tanu Kaskinen <ext-tanu.kaskinen@nokia.com> | 2010-04-15 13:11:57 +0300 |
---|---|---|
committer | Tanu Kaskinen <ext-tanu.kaskinen@nokia.com> | 2010-05-10 14:33:54 +0300 |
commit | 71ef5fe7e84702ca6a2869702ad4c5a15c9c2f9b (patch) | |
tree | 44b525e044989ed018f56761eca4a6cc472cf751 | |
parent | 5012dc84501917b5db98a8b36cc9de3f09b66653 (diff) |
stream-restore: When changing restore entries with D-Bus, apply the changes immediately.
-rw-r--r-- | src/modules/module-stream-restore.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/module-stream-restore.c b/src/modules/module-stream-restore.c index d7852d04..346b6ad1 100644 --- a/src/modules/module-stream-restore.c +++ b/src/modules/module-stream-restore.c @@ -765,6 +765,7 @@ static void handle_entry_set_device(DBusConnection *conn, DBusMessage *msg, DBus value.size = sizeof(struct entry); pa_assert_se(pa_database_set(de->userdata->database, &key, &value, TRUE) == 0); + apply_entry(de->userdata, de->entry_name, e); send_device_updated_signal(de, e); trigger_save(de->userdata); } @@ -829,6 +830,7 @@ static void handle_entry_set_volume(DBusConnection *conn, DBusMessage *msg, DBus value.size = sizeof(struct entry); pa_assert_se(pa_database_set(de->userdata->database, &key, &value, TRUE) == 0); + apply_entry(de->userdata, de->entry_name, e); send_volume_updated_signal(de, e); trigger_save(de->userdata); } @@ -886,6 +888,7 @@ static void handle_entry_set_mute(DBusConnection *conn, DBusMessage *msg, DBusMe value.size = sizeof(struct entry); pa_assert_se(pa_database_set(de->userdata->database, &key, &value, TRUE) == 0); + apply_entry(de->userdata, de->entry_name, e); send_mute_updated_signal(de, e); trigger_save(de->userdata); } |