[gtk+/gtk-2-24] demos/gtk-demo/rotated_text.c: Remove C99ism



commit 3047719340cf3894652a534d1b3f7a1c511bbe40
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Jul 26 17:15:23 2012 +0800

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

 demos/gtk-demo/rotated_text.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/demos/gtk-demo/rotated_text.c b/demos/gtk-demo/rotated_text.c
index 67b29aa..9778857 100644
--- a/demos/gtk-demo/rotated_text.c
+++ b/demos/gtk-demo/rotated_text.c
@@ -108,13 +108,14 @@ rotated_text_expose_event (GtkWidget      *widget,
 
   PangoAttrList *attrs;
   GtkAllocation allocation;
+  int width, height;
+  double device_radius;
+  int i;
   
   gtk_widget_get_allocation (widget, &allocation);
 
-  int width = allocation.width;
-  int height = allocation.height;
-  double device_radius;
-  int i;
+  width = allocation.width;
+  height = allocation.height;
 
   /* 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],



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]