mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-07-01 15:57:46 +02:00
remove placeholder breadcrumb
This commit is contained in:
parent
babc0e8cc4
commit
d9d5d2960d
3 changed files with 13 additions and 42 deletions
|
@ -5,7 +5,7 @@ use adw::glib::Object;
|
|||
use adw::prelude::{ComboRowExt, PreferencesRowExt};
|
||||
use dbus::blocking::Connection;
|
||||
use dbus::Error;
|
||||
use glib::{Cast, clone};
|
||||
use glib::{Cast, clone, ObjectExt, ToValue};
|
||||
use glib::subclass::types::ObjectSubclassIsExt;
|
||||
use gtk::{Align, gio, SignalListItemFactory, StringList, StringObject};
|
||||
use gtk::prelude::{GObjectPropertyExpressionExt, ListItemExt, WidgetExt};
|
||||
|
@ -59,6 +59,18 @@ impl CardEntry {
|
|||
let factory = &SignalListItemFactory::new();
|
||||
factory.connect_setup(|_, item| {
|
||||
let item = item.downcast_ref::<gtk::ListItem>().unwrap();
|
||||
|
||||
let value = item.property_value("selected");
|
||||
let value2 = item.property_value("item");
|
||||
|
||||
let result = value.get::<bool>().unwrap();
|
||||
|
||||
dbg!(result);
|
||||
|
||||
for x in item.list_properties() {
|
||||
|
||||
}
|
||||
|
||||
let label = gtk::Label::new(None);
|
||||
label.set_halign(Align::Start);
|
||||
item.property_expression("item")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue