2021-01-25 00:01:02 +13:00
|
|
|
use crate::gui_data::GuiData;
|
|
|
|
use gtk::prelude::*;
|
|
|
|
use gtk::{ResponseType, WindowPosition};
|
|
|
|
|
|
|
|
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 |_| {
|
2021-05-17 21:06:22 +12:00
|
|
|
about_dialog.set_position(WindowPosition::Center);
|
2021-01-25 00:01:02 +13:00
|
|
|
about_dialog.show();
|
|
|
|
let response = about_dialog.run();
|
|
|
|
if response != ResponseType::None {
|
|
|
|
about_dialog.hide();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|