github gtk-rs/gtk4-rs 0.6.6

latest releases: 0.10.3, 0.10.2, 0.10.1...
2 years ago

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

Don't miss a new gtk4-rs release

NewReleases is sending notifications on new releases.