Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Documentation for ScrolledWindow::new misleading #87

Open
@donaldcallen

Description

@donaldcallen

"Usually you want to pass None for the adjustments, which will cause the scrolled window to create them for you."

Pass 'None' for the adjustments leads to

error[E0283]: type annotations required: cannot resolve _: gtk::IsA<gtk::Adjustment>
--> src/main.rs:159:42
|
159 | let scrolled_window:ScrolledWindow = ScrolledWindow::new(None, None);
| ^^^^^^^^^^^^^^^^^^^
|
= note: required by gtk::ScrolledWindow::new

You have gtk::NONE_ADJUSTMENT defined. Why not mention that in the documentation instead of 'None' and avoid leading users down this incorrect path?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgtk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions