gtk-rs/gtk

Misc is deprecated but Label has a bug

geovex opened this issue · 1 comments

Without v3_16 feature text in Label can be aligned only through gtk_misc_set_alignment (this bug). But gtk::Misc is "deprecated". So what are my options without v3_16 and without wrapping label in another container?

That seems like a bug in GTK: they deprecated it in 3.14 without providing a replacement until 3.16. So your only choices seem to be

  • Use v3_16
  • Use label.set_property("xalign", &123f32)