From e29b00f068f1e727da34e877b7efaf92992fe9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Mon, 2 Aug 2021 14:43:03 +0200 Subject: [PATCH 1/2] 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. --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 7609a93..a67d938 100644 --- a/src/main.c +++ b/src/main.c @@ -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", From b86fb80ed8ad2f88bd6617e72fa453d254380898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Sun, 16 Jan 2022 15:48:00 +0100 Subject: [PATCH 2/2] Update website URL in About dialog --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index a67d938..7b4c088 100644 --- a/src/main.c +++ b/src/main.c @@ -536,7 +536,7 @@ run_about_action(GSimpleAction *action, GVariant *param, GApplication *app) "comments", "The postmarketOS camera application", "website", - "https://sr.ht/~martijnbraam/megapixels", + "https://gitlab.com/postmarketOS/megapixels", "version", VERSION, "license-type",