X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire.c;h=6e7c6e0a5ea05d25e149bea74eef9415fc031f5b;hb=7ae8b9ba0e2634a5b72ac6470ebbdf92a78b7892;hp=9a341ec424da1922d5246d2b9e1042f86c1c290a;hpb=2c71feac2da7abc2cd178b1ff30e0f217c3b6d86;p=pspp diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index 9a341ec424..6e7c6e0a5e 100644 --- a/src/ui/gui/psppire.c +++ b/src/ui/gui/psppire.c @@ -36,15 +36,12 @@ #include "helper.h" #include "data-sheet.h" #include "var-sheet.h" -#include "psppire-case-array.h" #include "message-dialog.h" GladeXML *xml; PsppireDict *the_dictionary = 0; -PsppireCaseArray *the_cases = 0; - PsppireDataStore *data_store = 0; @@ -84,8 +81,16 @@ main(int argc, char *argv[]) gchar *filename=0; GError *err = 0; + gchar *vers; gtk_init(&argc, &argv); + if ( (vers = gtk_check_version(GTK_MAJOR_VERSION, + GTK_MINOR_VERSION, + GTK_MICRO_VERSION)) ) + { + g_critical(vers); + } + /* gtk_init messes with the locale. So unset the bits we want to control ourselves */ @@ -120,10 +125,7 @@ main(int argc, char *argv[]) /* Create the model for the var_sheet */ var_store = psppire_var_store_new(the_dictionary); - /* Create the model for the data sheet */ - the_cases = psppire_case_array_new(100000, 20); - - data_store = psppire_data_store_new(the_dictionary, the_cases); + data_store = psppire_data_store_new(the_dictionary); /* load the interface */ xml = glade_xml_new(PKGDATADIR "/psppire.glade", NULL, NULL);