From eeb1720b27cbc84db599a1de18d81a50c5020ee3 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Sat, 29 Jun 2024 01:10:51 +0300 Subject: [PATCH] what? --- .idea/workspace.xml | 17 ++--------------- src/apt_package_row/imp.rs | 4 ++-- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a3af2f4..d99a9a2 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -8,20 +8,7 @@ - - - - - - - - - - - - - - + diff --git a/src/apt_package_row/imp.rs b/src/apt_package_row/imp.rs index 2aff932..9aa4b1f 100644 --- a/src/apt_package_row/imp.rs +++ b/src/apt_package_row/imp.rs @@ -3,7 +3,7 @@ use std::{cell::RefCell, default, sync::OnceLock}; use adw::*; use adw::{prelude::*, subclass::prelude::*}; use glib::{subclass::Signal, Properties, clone}; -use gtk::{Align, glib, Orientation, SizeGroupMode, SelectionMode, Widget}; +use gtk::{*}; use gtk::Orientation::Horizontal; use crate::apt_update_page::AptPackageSocket; use std::env; @@ -240,7 +240,7 @@ fn create_arch_badge(arch: String) -> gtk::ListBox { boxedlist } -fn remove_all_children(parent: &impl IsA) where impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA, impl IsA: libadwaita::prelude::IsA { +fn remove_all_children(parent: &impl IsA -> Box) { while let Some(child) = parent.last_child() { parent.remove(&child); }