mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
demos/gtk-demo/rotated_text.c: Remove C99ism
This commit is contained in:
parent
a9fb816a3f
commit
3047719340
@ -108,13 +108,14 @@ rotated_text_expose_event (GtkWidget *widget,
|
|||||||
|
|
||||||
PangoAttrList *attrs;
|
PangoAttrList *attrs;
|
||||||
GtkAllocation allocation;
|
GtkAllocation allocation;
|
||||||
|
int width, height;
|
||||||
|
double device_radius;
|
||||||
|
int i;
|
||||||
|
|
||||||
gtk_widget_get_allocation (widget, &allocation);
|
gtk_widget_get_allocation (widget, &allocation);
|
||||||
|
|
||||||
int width = allocation.width;
|
width = allocation.width;
|
||||||
int height = allocation.height;
|
height = allocation.height;
|
||||||
double device_radius;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
/* Create a cairo context and set up a transformation matrix so that the user
|
/* Create a cairo context and set up a transformation matrix so that the user
|
||||||
* space coordinates for the centered square where we draw are [-RADIUS, RADIUS],
|
* space coordinates for the centered square where we draw are [-RADIUS, RADIUS],
|
||||||
|
Loading…
Reference in New Issue
Block a user