From 947b2101b2a0f23f41cb4c85d1119e1caa0f7483 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Sat, 14 Jan 2023 14:43:46 -0500 Subject: [PATCH] application: Use `gtk_window_present()` instead of `gtk_widget_show ()` --- src/application.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/application.rs b/src/application.rs index cf44246..c826e0b 100644 --- a/src/application.rs +++ b/src/application.rs @@ -152,7 +152,7 @@ impl LpApplication { gio::ActionEntryBuilder::new("new-window") .activate(|app: &Self, _, _| { let win = LpWindow::new(app); - win.show(); + win.present(); }) .build(), ]; @@ -227,7 +227,7 @@ impl LpApplication { about.set_transient_for(Some(&window)); } - about.show(); + about.present(); } pub fn show_help(&self) {