Skip to content

0.6.6

Compare
Choose a tag to compare
@bilelmoussaoui bilelmoussaoui released this 10 Apr 21:34
· 1 commit to 0.6 since this release

Bilal Elmoussaoui:

  • gtk: Implement convenience traits for StringObject
  • gtk: Move gtk::StyleContext::add_provider_for_display & gtk::StyleContext::remove_provider_for_display functions
    outside of gtk::StyleContext type as it was deprecated in GTK 4.10 causing a wrong deprecation warning.
    Switch to gtk::style_context_add_provider_for_display & gtk::style_context_remove_provider_for_display instead.

Yuri Izmer:

#[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>,
}