gtk-rs / gtk

DEPRECATED, use https://github.com/gtk-rs/gtk3-rs repository instead!
https://gtk-rs.org/
MIT License
1.25k stars 82 forks source link

argument to set_title not consistent #1034

Closed russel closed 4 years ago

russel commented 4 years ago

For Window:

fn set_title(&self, title: &str)

for NativeDialog:

fn set_title(&self, title: &str)

but for HeaderBar:

fn set_title(&self, title: Option<&str>)

is the Option needed in this last case?

sdroege commented 4 years ago

Yes, see the docs: https://developer.gnome.org/gtk3/stable/GtkHeaderBar.html#gtk-header-bar-set-title . It allows NULL.