From bb0865eb233241676dc2f472e6158fc2dd340ee5 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 8 Jul 2022 15:51:14 -0300 Subject: [PATCH] project: Use gtk_window_present() to present windows Instead of gtk_widget_show(). In practice, it's exactly the same, but it'll make follow-up patches cleaner. --- libmalcontent-ui/user-controls.c | 2 +- malcontent-control/application.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libmalcontent-ui/user-controls.c b/libmalcontent-ui/user-controls.c index 8dcac2e..f2c0a96 100644 --- a/libmalcontent-ui/user-controls.c +++ b/libmalcontent-ui/user-controls.c @@ -597,7 +597,7 @@ on_restrict_applications_action_activated (GSimpleAction *action, mct_restrict_applications_dialog_set_user_display_name (self->restrict_applications_dialog, self->user_display_name); mct_restrict_applications_dialog_set_app_filter (self->restrict_applications_dialog, self->filter); - gtk_widget_show (GTK_WIDGET (self->restrict_applications_dialog)); + gtk_window_present (GTK_WINDOW (self->restrict_applications_dialog)); } static gboolean diff --git a/malcontent-control/application.c b/malcontent-control/application.c index dbde7c8..83b5648 100644 --- a/malcontent-control/application.c +++ b/malcontent-control/application.c @@ -228,7 +228,7 @@ mct_application_activate (GApplication *application) user_selector_notify_user_cb (G_OBJECT (self->user_selector), NULL, self); user_manager_notify_is_loaded_cb (G_OBJECT (self->user_manager), NULL, self); - gtk_widget_show (GTK_WIDGET (window)); + gtk_window_present (GTK_WINDOW (window)); } /* Bring the window to the front. */