[gtk/wip/baedert/for-master: 38/39] label: Ignore setting attrs from NULL to NULL
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 38/39] label: Ignore setting attrs from NULL to NULL
- Date: Fri, 17 Apr 2020 13:24:46 +0000 (UTC)
commit aad67743b9eec9b09c1dd719926b422ac7c1d93f
Author: Timm Bäder <mail baedert org>
Date: Fri Apr 17 07:37:22 2020 +0200
label: Ignore setting attrs from NULL to NULL
gtk/gtklabel.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index a2ffff86ac..33d5d7cc2b 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -1793,6 +1793,11 @@ gtk_label_set_attributes (GtkLabel *self,
{
g_return_if_fail (GTK_IS_LABEL (self));
+ if (!attrs && !self->attrs)
+ return;
+
+ if (attrs == self->attrs) g_error ("Z");
+
if (attrs)
pango_attr_list_ref (attrs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]