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.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-08 15:51:14 -03:00
parent 360c5b0271
commit bb0865eb23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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. */