Blame gdk/x11/checksettings.c

Packit 98cdb6
/* GDK - The GIMP Drawing Kit
Packit 98cdb6
 * Copyright (C) 2006 Tim Janik
Packit 98cdb6
 *
Packit 98cdb6
 * This library is free software; you can redistribute it and/or
Packit 98cdb6
 * modify it under the terms of the GNU Lesser General Public
Packit 98cdb6
 * License as published by the Free Software Foundation; either
Packit 98cdb6
 * version 2 of the License, or (at your option) any later version.
Packit 98cdb6
 *
Packit 98cdb6
 * This library is distributed in the hope that it will be useful,
Packit 98cdb6
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 98cdb6
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
Packit 98cdb6
 * Lesser General Public License for more details.
Packit 98cdb6
 *
Packit 98cdb6
 * You should have received a copy of the GNU Lesser General Public
Packit 98cdb6
 * License along with this library; if not, write to the
Packit 98cdb6
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit 98cdb6
 * Boston, MA 02111-1307, USA.
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
#include <string.h>
Packit 98cdb6
#include <glib.h>
Packit 98cdb6
#include "gdksettings.c"
Packit 98cdb6
Packit 98cdb6
int
Packit 98cdb6
main (int   argc,
Packit 98cdb6
      char *argv[])
Packit 98cdb6
{
Packit 98cdb6
  guint i, accu = 0;
Packit 98cdb6
Packit 98cdb6
  for (i = 0; i < GDK_SETTINGS_N_ELEMENTS(); i++)
Packit 98cdb6
    {
Packit 98cdb6
      if (gdk_settings_map[i].xsettings_offset != accu)
Packit 98cdb6
        g_error ("settings_map[%u].xsettings_offset != %u\n", i, accu);
Packit 98cdb6
      accu += strlen (gdk_settings_names + accu) + 1;
Packit 98cdb6
      if (gdk_settings_map[i].gdk_offset != accu)
Packit 98cdb6
        g_error ("settings_map[%u].gdk_offset != %u\n", i, accu);
Packit 98cdb6
      accu += strlen (gdk_settings_names + accu) + 1;
Packit 98cdb6
      // g_print ("%u) ok.\n", i);
Packit 98cdb6
    }
Packit 98cdb6
Packit 98cdb6
  g_print ("checksettings: all ok.\n");
Packit 98cdb6
Packit 98cdb6
  return 0;
Packit 98cdb6
}