mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-20 11:54:23 +02:00
9 lines
199 B
Rust
9 lines
199 B
Rust
|
use glib::IsA;
|
||
|
use gtk::prelude::*;
|
||
|
use gtk::Widget;
|
||
|
|
||
|
/// Adds a new CSS class to a widget.
|
||
|
pub fn add_class<W: IsA<Widget>>(widget: &W, class: &str) {
|
||
|
widget.style_context().add_class(class);
|
||
|
}
|