diff --git a/src/bazaar.gresource.xml b/src/bazaar.gresource.xml index 500e4d57..e79e59ab 100644 --- a/src/bazaar.gresource.xml +++ b/src/bazaar.gresource.xml @@ -6,6 +6,7 @@ main-config-schema.xml bz-content-provider-config-schema.xml + release-notes.xml countries.json diff --git a/src/bz-application.c b/src/bz-application.c index 4701b688..bbf7acda 100644 --- a/src/bz-application.c +++ b/src/bz-application.c @@ -474,6 +474,8 @@ bz_application_about_action (GSimpleAction *action, BzApplication *self = user_data; GtkWindow *window = NULL; AdwDialog *dialog = NULL; + g_autoptr(GBytes) release_notes_bytes = NULL; + const char *release_notes_text = NULL; const char *developers[] = { C_ ("About Dialog Developer Credit", "Adam Masciola "), @@ -487,6 +489,14 @@ bz_application_about_action (GSimpleAction *action, window = gtk_application_get_active_window (GTK_APPLICATION (self)); dialog = adw_about_dialog_new (); + release_notes_bytes = g_resources_lookup_data ( + "/io/github/kolunmi/Bazaar/release-notes.xml", + G_RESOURCE_LOOKUP_FLAGS_NONE, + NULL); + + if (release_notes_bytes != NULL) + release_notes_text = g_bytes_get_data (release_notes_bytes, NULL); + g_object_set ( dialog, "application-name", "Bazaar", @@ -500,6 +510,7 @@ bz_application_about_action (GSimpleAction *action, "license-type", GTK_LICENSE_GPL_3_0, "website", "https://github.com/kolunmi/bazaar", "issue-url", "https://github.com/kolunmi/bazaar/issues", + "release-notes", release_notes_text, NULL); adw_dialog_present (dialog, GTK_WIDGET (window)); diff --git a/src/release-notes.xml b/src/release-notes.xml new file mode 100644 index 00000000..22cf698b --- /dev/null +++ b/src/release-notes.xml @@ -0,0 +1,8 @@ +

This release comes with the following improvements:

+