aboutdialog issue solved _()_
This commit is contained in:
parent
a3960851dc
commit
c08887bb68
11
src/lib.rs
11
src/lib.rs
|
|
@ -72,14 +72,19 @@ pub fn build_ui(app: >k::Application, config: Arc::<Mutex::<Config>>) {
|
|||
|
||||
// about_menu
|
||||
let about_menu = builder.get_object::<gtk::MenuItem>("about_menu").expect("Resource file missing!");
|
||||
let about = builder.get_object::<gtk::AboutDialog>("about").expect("Resource file missing!");
|
||||
let about_window = builder.get_object::<gtk::AboutDialog>("about_window").expect("Resource file missing!");
|
||||
about_window.set_transient_for(Some(&win));
|
||||
|
||||
about.connect_close(|a| {
|
||||
about_window.connect_delete_event(|a,_| {
|
||||
a.hide();
|
||||
println!("Hah phirse");
|
||||
Inhibit(true)
|
||||
});
|
||||
|
||||
let a_win = about_window.clone();
|
||||
about_menu.connect_activate(move |_|{
|
||||
about.show_all();
|
||||
a_win.show();
|
||||
a_win.present();
|
||||
});
|
||||
|
||||
// save_log
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<!-- Generated with glade 3.38.2 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.22"/>
|
||||
<object class="GtkAboutDialog" id="about">
|
||||
<object class="GtkAboutDialog" id="about_window">
|
||||
<property name="can-focus">False</property>
|
||||
<property name="type-hint">dialog</property>
|
||||
<property name="program-name">Tarangam (तरंगम्)</property>
|
||||
|
|
@ -36,6 +36,9 @@
|
|||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="titlebar">
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
<object class="GtkImage" id="document_save">
|
||||
<property name="visible">True</property>
|
||||
|
|
|
|||
|
|
@ -36,6 +36,9 @@
|
|||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="titlebar">
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
<object class="GtkImage" id="document_save">
|
||||
<property name="visible">True</property>
|
||||
|
|
|
|||
Loading…
Reference in New Issue