[gimp] app: add a bold dot in front of each release note item.



commit 4942a9caf3e6245c964ae4fa5887baa6ffc3cda1
Author: Jehan <jehan girinstud io>
Date:   Sun Mar 6 00:25:27 2022 +0100

    app: add a bold dot in front of each release note item.
    
    Even when using a GtkListBox, it's just prettier and clearer when having
    a text list with dots IMO, especially since some text might wrap on
    several lines. Let's just go with that.

 app/dialogs/welcome-dialog.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/app/dialogs/welcome-dialog.c b/app/dialogs/welcome-dialog.c
index 269a327248..2a69aad886 100644
--- a/app/dialogs/welcome-dialog.c
+++ b/app/dialogs/welcome-dialog.c
@@ -384,10 +384,15 @@ welcome_dialog_create (Gimp *gimp)
           for (item = release_items; item; item = item->next)
             {
               GtkWidget *row;
+              gchar     *markup;
+
+              /* Add a bold dot for pretty listing. */
+              markup = g_strdup_printf ("<span weight='ultrabold' >\xe2\x80\xa2</span> %s",
+                                        (gchar *) item->data);
 
               row = gtk_list_box_row_new ();
               widget = gtk_label_new (NULL);
-              gtk_label_set_markup (GTK_LABEL (widget), item->data);
+              gtk_label_set_markup (GTK_LABEL (widget), markup);
               gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
               gtk_label_set_line_wrap_mode (GTK_LABEL (widget), PANGO_WRAP_WORD);
               gtk_label_set_justify (GTK_LABEL (widget), GTK_JUSTIFY_LEFT);
@@ -397,6 +402,8 @@ welcome_dialog_create (Gimp *gimp)
 
               gtk_list_box_insert (GTK_LIST_BOX (listbox), row, -1);
               gtk_widget_show_all (row);
+
+              g_free (markup);
             }
           gtk_container_add (GTK_CONTAINER (scrolled_window), listbox);
           gtk_list_box_set_selection_mode (GTK_LIST_BOX (listbox),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]