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:
parent
360c5b0271
commit
bb0865eb23
|
@ -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
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue