You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
czkawka/czkawka_gui/src/connect_header_buttons.rs

17 lines
545 B
Rust

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 |_| {
about_dialog.set_position(WindowPosition::Center);
about_dialog.show();
let response = about_dialog.run();
if response != ResponseType::None {
about_dialog.hide();
}
});
}