- GVariant *gvar;
-
- Signal::populate_popup_form(parent, form);
-
- // Add the trigger actions
- boost::shared_ptr<DevInst> dev_inst = _session.get_device();
- assert(dev_inst);
-
- const sr_dev_inst *const sdi = dev_inst->dev_inst();
- assert(sdi);
-
- if (sr_config_list(sdi->driver, sdi, NULL, SR_CONF_TRIGGER_TYPE,
- &gvar) == SR_OK)
- {
- const char *const trig_types =
- g_variant_get_string(gvar, NULL);
-
- if (trig_types && trig_types[0] != '\0')
- {
- _trigger_bar = new QToolBar(parent);
-
- init_trigger_actions(_trigger_bar);
- _trigger_bar->addAction(_trigger_none);
- add_trigger_action(trig_types, 'r', _trigger_rising);
- add_trigger_action(trig_types, '1', _trigger_high);
- add_trigger_action(trig_types, 'f', _trigger_falling);
- add_trigger_action(trig_types, '0', _trigger_low);
- add_trigger_action(trig_types, 'c', _trigger_change);
-
- update_trigger_actions();
-
- form->addRow(tr("Trigger"), _trigger_bar);
- }
-
- g_variant_unref(gvar);
+ try {
+ const Glib::VariantContainerBase gvar =
+ device_->config_list(ConfigKey::TRIGGER_MATCH);
+ return Glib::VariantBase::cast_dynamic<
+ Glib::Variant<vector<int32_t>>>(gvar).get();
+ } catch (Error e) {
+ return vector<int32_t>();