upgrade gtk-rs version
This commit is contained in:
parent
0b5f6b8386
commit
cc577b1367
23 changed files with 401 additions and 317 deletions
|
|
@ -102,18 +102,15 @@ impl SearchResultRow {
|
|||
|
||||
pub fn set_search_result(&self, search_obj: SearchResultObject) {
|
||||
let self_ = imp::SearchResultRow::from_instance(self);
|
||||
if let Ok(search_result) = search_obj.property("data") {
|
||||
if let Ok(search_result) = search_result.get::<BoxedSearchResult>() {
|
||||
if let Some(search_result) = search_result.0 {
|
||||
self_.name.borrow().set_text(&search_result.name);
|
||||
self_
|
||||
.description
|
||||
.borrow()
|
||||
.set_text(&search_result.description);
|
||||
icon_source(&self_.image, &search_result.icon);
|
||||
icon_source(&self_.category_image, &search_result.category_icon);
|
||||
}
|
||||
}
|
||||
let search_result = search_obj.property::<BoxedSearchResult>("data");
|
||||
if let Some(search_result) = search_result.0 {
|
||||
self_.name.borrow().set_text(&search_result.name);
|
||||
self_
|
||||
.description
|
||||
.borrow()
|
||||
.set_text(&search_result.description);
|
||||
icon_source(&self_.image, &search_result.icon);
|
||||
icon_source(&self_.category_image, &search_result.category_icon);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue