Commit 5c62a90e authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix a C99ism

parent b8b1e8ec
2006-01-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c: Fix a C99ism (#326658, Kazuki Iwamoto)
2006-01-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c: Add some notify batching, always
......
2006-01-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c: Fix a C99ism (#326658, Kazuki Iwamoto)
2006-01-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c: Add some notify batching, always
......
......@@ -1794,11 +1794,12 @@ get_label_wrap_width (GtkLabel *label)
PangoLayout *layout;
GtkStyle *style = GTK_WIDGET (label)->style;
static GQuark quark_label_wrap_width = 0;
LabelWrapWidth *wrap_width;
if (quark_label_wrap_width == 0)
quark_label_wrap_width = g_quark_from_static_string ("gtk-label-wrap-width");
LabelWrapWidth *wrap_width = g_object_get_qdata (G_OBJECT (style), quark_label_wrap_width);
wrap_width = g_object_get_qdata (G_OBJECT (style), quark_label_wrap_width);
if (!wrap_width)
{
wrap_width = g_slice_new0 (LabelWrapWidth);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment