Fixed a multitude of C89 compatibility warnings.
[pspp-builds.git] / lib / gtksheet / gsheet-column-iface.c
index f1b915513774fece69f73729fb32d1db88abe1a5..a4cc9f36b3a54359eae56bba396f152c34b08141 100644 (file)
@@ -163,11 +163,11 @@ inline const GtkSheetButton *
 g_sheet_column_get_button(const GSheetColumn *column,
                              gint col, const GtkSheet *sheet)
 {
-  g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE);
-
+  static GtkSheetButton button ;
   GSheetColumnIface *iface = G_SHEET_COLUMN_GET_IFACE (column);
 
-  static GtkSheetButton button ;
+  g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE);
+
   memcpy(&button, &default_button, sizeof (button));
 
   if ( iface->get_button_label)
@@ -251,13 +251,13 @@ g_sheet_column_get_column_count(const GSheetColumn *geo, const GtkSheet *sheet)
 inline gint  
 g_sheet_column_start_pixel(const GSheetColumn *geo, gint col, const GtkSheet *sheet)
 {
+  gint i;
+  gint start_pixel = 0;
+
   g_return_val_if_fail (G_IS_SHEET_COLUMN (geo), -1);
   g_return_val_if_fail (col < 
                        g_sheet_column_get_column_count(geo, sheet),-1);
 
-  gint i;
-  gint start_pixel = 0;
-
   for ( i = 0 ; i < col ; ++i ) 
     {
       if ( g_sheet_column_get_visibility(geo, i, sheet))