+Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklabel.c (gtk_label_size_request): Set the
+ attributes onto the PangoLayout even if they are newly
+ created from label->pattern.
+
Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkdnd-x11.c: Remove unused variable.
+Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklabel.c (gtk_label_size_request): Set the
+ attributes onto the PangoLayout even if they are newly
+ created from label->pattern.
+
Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkdnd-x11.c: Remove unused variable.
+Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklabel.c (gtk_label_size_request): Set the
+ attributes onto the PangoLayout even if they are newly
+ created from label->pattern.
+
Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkdnd-x11.c: Remove unused variable.
+Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklabel.c (gtk_label_size_request): Set the
+ attributes onto the PangoLayout even if they are newly
+ created from label->pattern.
+
Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkdnd-x11.c: Remove unused variable.
+Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklabel.c (gtk_label_size_request): Set the
+ attributes onto the PangoLayout even if they are newly
+ created from label->pattern.
+
Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkdnd-x11.c: Remove unused variable.
+Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklabel.c (gtk_label_size_request): Set the
+ attributes onto the PangoLayout even if they are newly
+ created from label->pattern.
+
Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkdnd-x11.c: Remove unused variable.
+Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklabel.c (gtk_label_size_request): Set the
+ attributes onto the PangoLayout even if they are newly
+ created from label->pattern.
+
Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkdnd-x11.c: Remove unused variable.
* permanently, and just modifes or creates the AttrList
*/
if (label->attrs)
- {
- attrs = pango_attr_list_copy (label->attrs);
- pango_layout_set_attributes (label->layout, attrs);
- }
- else
+ attrs = pango_attr_list_copy (label->attrs);
+ else if (label->pattern)
attrs = pango_attr_list_new ();
-
- gtk_label_pattern_to_attrs (label, attrs);
- pango_attr_list_unref (attrs);
+
+ if (label->pattern)
+ gtk_label_pattern_to_attrs (label, attrs);
+
+ if (attrs)
+ {
+ pango_layout_set_attributes (label->layout, attrs);
+ pango_attr_list_unref (attrs);
+ }
switch (label->jtype)
{