[libadwaita/wip/exalm/about: 5/5] about-window: Don't trim the last release notes character
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/about: 5/5] about-window: Don't trim the last release notes character
- Date: Fri, 8 Jul 2022 12:00:38 +0000 (UTC)
commit 0b61fc89594e2d603c275ff62644f76fe5a67f67
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Jul 8 15:54:58 2022 +0400
about-window: Don't trim the last release notes character
Originally release notes were going to have 2 line breaks between
paragraphs. Later it was changed into 1 line break and pixels-above-lines
on the next line, but the code that trims 2 characters at the end was never
changed.
src/adw-about-window.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/adw-about-window.c b/src/adw-about-window.c
index ee06ced6..7fa739a7 100644
--- a/src/adw-about-window.c
+++ b/src/adw-about-window.c
@@ -972,7 +972,8 @@ update_release_notes (AdwAboutWindow *self)
return;
}
- gtk_text_iter_backward_chars (&pdata.iter, 2);
+ /* Remove the trailing newline */
+ gtk_text_iter_backward_chars (&pdata.iter, 1);
gtk_text_buffer_get_end_iter (self->release_notes_buffer, &end_iter);
gtk_text_buffer_delete (self->release_notes_buffer, &pdata.iter, &end_iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]