0.6.6
Bilal Elmoussaoui:
- gtk: Implement convenience traits for StringObject
- gtk: Move
gtk::StyleContext::add_provider_for_display
>k::StyleContext::remove_provider_for_display
functions
outside ofgtk::StyleContext
type as it was deprecated in GTK 4.10 causing a wrong deprecation warning.
Switch togtk::style_context_add_provider_for_display
>k::style_context_remove_provider_for_display
instead.
Yuri Izmer:
- gtk4-macros: Extend blueprint support to files
#[derive(Debug, Default, gtk::CompositeTemplate)]
#[template(file = "src/my_widget.blp")] // relative to the project directory
pub struct MyWidget {
#[template_child]
pub label: TemplateChild<gtk::Label>,
#[template_child(id = "my_label2")]
pub label2: gtk::TemplateChild<gtk::Label>,
}