Replaces five while-loop child removal patterns with the batched remove_all() method available since GTK 4.12. Avoids per-removal layout invalidation.
12 lines
389 B
Rust
12 lines
389 B
Rust
fn main() {
|
|
// Compile GResource bundle for plugin-specific icons (weather, media, pomodoro)
|
|
glib_build_tools::compile_resources(
|
|
&["src/resources/icons"],
|
|
"src/resources/icons.gresource.xml",
|
|
"icons.gresource",
|
|
);
|
|
|
|
println!("cargo:rerun-if-changed=src/resources/icons.gresource.xml");
|
|
println!("cargo:rerun-if-changed=src/resources/icons/");
|
|
}
|