[beast: 2/12] BST: adjust to use Item.check_is_a()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 2/12] BST: adjust to use Item.check_is_a()
- Date: Sat, 30 Sep 2017 11:48:31 +0000 (UTC)
commit a4309994fdd74e8db786ad43038ff6cd3dbf3a18
Author: Tim Janik <timj gnu org>
Date: Thu Sep 7 02:37:25 2017 +0200
BST: adjust to use Item.check_is_a()
Signed-off-by: Tim Janik <timj gnu org>
beast-gtk/bstparam-item-seq.cc | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/beast-gtk/bstparam-item-seq.cc b/beast-gtk/bstparam-item-seq.cc
index c477653..ceda8ff 100644
--- a/beast-gtk/bstparam-item-seq.cc
+++ b/beast-gtk/bstparam-item-seq.cc
@@ -101,11 +101,14 @@ param_item_seq_update (GxkParam *param,
for (i = 0; i < iseq->n_items; i++)
{
for (j = 0; j < pc->partitions->n_types; j++)
- if (bse_item_check_is_a (iseq->items[i], pc->partitions->types[j]))
- {
- partitions[j]++;
- break;
- }
+ {
+ Bse::ItemH item = Bse::ItemH::down_cast (bse_server.from_proxy (iseq->items[i]));
+ if (item.check_is_a (pc->partitions->types[j]))
+ {
+ partitions[j]++;
+ break;
+ }
+ }
if (j >= pc->partitions->n_types)
other++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]