fix(docs): mention orientation in scale properties

This commit is contained in:
elkowar 2021-10-16 14:01:54 +02:00
parent 7096a5b9d0
commit d708902c03
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F

View file

@ -347,7 +347,7 @@ fn build_gtk_color_chooser(bargs: &mut BuilderArgs) -> Result<gtk::ColorChooserW
Ok(gtk_widget) Ok(gtk_widget)
} }
/// @widget scale extends range /// @widget scale extends range, orientable
/// @desc A slider. /// @desc A slider.
fn build_gtk_scale(bargs: &mut BuilderArgs) -> Result<gtk::Scale> { fn build_gtk_scale(bargs: &mut BuilderArgs) -> Result<gtk::Scale> {
let gtk_widget = gtk::Scale::new(gtk::Orientation::Horizontal, Some(&gtk::Adjustment::new(0.0, 0.0, 100.0, 1.0, 1.0, 1.0))); let gtk_widget = gtk::Scale::new(gtk::Orientation::Horizontal, Some(&gtk::Adjustment::new(0.0, 0.0, 100.0, 1.0, 1.0, 1.0)));