mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Fix a C99ism
This commit is contained in:
parent
b8b1e8eca4
commit
5c62a90e38
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
@ -1,3 +1,7 @@
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user