demos/gtk-demo/rotated_text.c: Remove C99ism

This commit is contained in:
Chun-wei Fan 2012-07-26 17:15:23 +08:00
parent a9fb816a3f
commit 3047719340

View File

@ -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],