Before, in C++ gtkmm
I’ve used
Glib::ustring::sprintf("some prefix %s", some_postfix)
now it’s
gtk::glib::GString::from(format!("some prefix {some_postfix}"))
Not sure that’s correct with format
, can’t find native implementation
Before, in C++ gtkmm
I’ve used
Glib::ustring::sprintf("some prefix %s", some_postfix)
now it’s
gtk::glib::GString::from(format!("some prefix {some_postfix}"))
Not sure that’s correct with format
, can’t find native implementation
You can use glib::gformat!
, which has the same syntax as format!
but builds a glib::GString
instead.
Thank you much!
applied by use gtk::glib::gformat