Set parent window in About dialog

Fixes dialog text not always fitting in screen. Additionally,
the dialog is now centered instead of appearing at the bottom
of the screen.
This commit is contained in:
Pablo Correa Gómez 2021-08-02 14:43:03 +02:00
parent 6f41aad20b
commit e29b00f068
No known key found for this signature in database
GPG Key ID: 7A342565FF635F79
1 changed files with 2 additions and 1 deletions

View File

@ -525,7 +525,8 @@ run_capture_action(GSimpleAction *action, GVariant *param, gpointer user_data)
void
run_about_action(GSimpleAction *action, GVariant *param, GApplication *app)
{
gtk_show_about_dialog(NULL,
GtkWindow *parent = gtk_application_get_active_window(GTK_APPLICATION(app));
gtk_show_about_dialog(parent,
"program-name",
"Megapixels",
"title",