mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-12-19 14:38:44 +00:00
properties: fix the propery value with combo
The property is now the numerical value of the enum or flags in an element's property
This commit is contained in:
parent
935e6c7fb5
commit
1eb49731e1
1 changed files with 3 additions and 1 deletions
|
@ -154,7 +154,9 @@ pub fn property_to_widget<F: Fn(String, String) + 'static>(
|
|||
|
||||
combo.connect_changed(move |c| {
|
||||
if let Some(text) = c.active_text() {
|
||||
f(c.widget_name().to_string(), text.to_string())
|
||||
let value = text.to_string();
|
||||
let value = value.split_once(':');
|
||||
f(c.widget_name().to_string(), value.unwrap().0.to_string());
|
||||
}
|
||||
});
|
||||
Some(combo.upcast::<gtk::Widget>())
|
||||
|
|
Loading…
Reference in a new issue