From df38db70a098c9c064602c732317576a222a11de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 5 May 2016 11:21:56 +0200 Subject: [PATCH] label: Also initialize text So gtk_label_get_text returns the default value of "". Broke the GtkModelButton default value test. --- gtk/gtklabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index c3d5db7fd8..148faa9801 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -1383,7 +1383,7 @@ gtk_label_init (GtkLabel *label) priv->mnemonic_keyval = GDK_KEY_VoidSymbol; priv->layout = NULL; - priv->text = NULL; + priv->text = g_strdup (""); priv->attrs = NULL; priv->mnemonic_widget = NULL;