application: Use gtk_window_present() instead of gtk_widget_show ()
This commit is contained in:
parent
2757e94e08
commit
947b2101b2
1 changed files with 2 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ impl LpApplication {
|
||||||
gio::ActionEntryBuilder::new("new-window")
|
gio::ActionEntryBuilder::new("new-window")
|
||||||
.activate(|app: &Self, _, _| {
|
.activate(|app: &Self, _, _| {
|
||||||
let win = LpWindow::new(app);
|
let win = LpWindow::new(app);
|
||||||
win.show();
|
win.present();
|
||||||
})
|
})
|
||||||
.build(),
|
.build(),
|
||||||
];
|
];
|
||||||
|
|
@ -227,7 +227,7 @@ impl LpApplication {
|
||||||
about.set_transient_for(Some(&window));
|
about.set_transient_for(Some(&window));
|
||||||
}
|
}
|
||||||
|
|
||||||
about.show();
|
about.present();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn show_help(&self) {
|
pub fn show_help(&self) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue