1
0
Fork 0
mirror of synced 2024-05-05 04:52:38 +12:00
czkawka/czkawka_gui/src/connect_header_buttons.rs
Rafał Mikrut 8c4c67e26f
More GTK 4 related changes (#474)
* More GTK 4 related changes

* More changes

* Change button to MenuButton
2021-12-01 11:09:47 +01:00

18 lines
490 B
Rust

use gtk::prelude::*;
use crate::gui_data::GuiData;
pub fn connect_button_about(gui_data: &GuiData) {
let about_dialog = gui_data.about.about_dialog.clone();
let button_app_info = gui_data.header.button_app_info.clone();
button_app_info.connect_clicked(move |_| {
about_dialog.show();
// Prevent from deleting dialog after close
about_dialog.connect_delete_event(|dialog, _| {
dialog.hide();
Inhibit(true)
});
});
}