[gnome-logs] Replace show with present for window
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs] Replace show with present for window
- Date: Mon, 28 Mar 2022 16:44:00 +0000 (UTC)
commit b762e8dd4c74f952d202d97fd5c0b921af210114
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Mon Oct 11 23:13:44 2021 +0200
Replace show with present for window
Show only can cause problems in x11.
src/gl-application.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gl-application.c b/src/gl-application.c
index 9e2995c..a547c16 100644
--- a/src/gl-application.c
+++ b/src/gl-application.c
@@ -65,7 +65,7 @@ on_new_window (GSimpleAction *action,
window = gl_window_new (GTK_APPLICATION (application));
gl_window_load_journal (GL_WINDOW (window), priv->journal);
- gtk_widget_show (window);
+ gtk_window_present (GTK_WINDOW (window));
}
static void
@@ -218,7 +218,7 @@ launch_window (GApplication *application)
window = gl_window_new (GTK_APPLICATION (application));
gl_window_load_journal (GL_WINDOW (window), priv->journal);
- gtk_widget_show (window);
+ gtk_window_present (GTK_WINDOW (window));
gtk_application_set_accels_for_action (GTK_APPLICATION (application),
"win.close", close_accel);
gtk_application_set_accels_for_action (GTK_APPLICATION (application),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]