[gtk/wip/otte/inscription: 5/6] xxx




commit 4f679ce43b67abf0216ed84eeef8edf176dc73c1
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jun 7 06:21:07 2022 +0200

    xxx

 gtk/gtkinscription.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkinscription.c b/gtk/gtkinscription.c
index 6dce790ae6..6d0972769b 100644
--- a/gtk/gtkinscription.c
+++ b/gtk/gtkinscription.c
@@ -576,7 +576,9 @@ gtk_inscription_set_text (GtkInscription *self,
   g_free (self->text);
   self->text = g_strdup (text);
 
-  pango_layout_set_text (self->layout, self->text, -1);
+  pango_layout_set_text (self->layout,
+                         self->text ? self->text : "",
+                         -1);
 
   /* This here not being a gtk_widget_queue_resize() is why this widget exists */
   gtk_widget_queue_draw (GTK_WIDGET (self));


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