Closed GuillaumeGomez closed 4 years ago
@GuillaumeGomez Thanks.
@sdroege How we implement closing application now?
Just changing to unsafe{window.destroy();}
?
Compiling gtk-rs-examples v0.0.1 (C:\projects\gtk\_examples)
error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
--> src\bin\menu_bar_system.rs:86:9
|
86 | window.destroy();
| ^^^^^^^^^^^^^^^^ call to unsafe function
|
= note: consult the function's documentation for information on how to avoid undefined behavior
error: aborting due to previous error
@sdroege How we implement closing application now? Just changing to
unsafe{window.destroy();}
?
Just window.close() :)
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Looks good to me apart from https://github.com/gtk-rs/gtk/pull/958#discussion_r381716230
And we should first update the examples so that everything continues to compile. Every destroy()
call should be replaced with close()
.
Updated and waiting for https://github.com/gtk-rs/examples/pull/296 now.
Part of #957.
cc @sdroege @EPashkin