X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-var-sheet.c;h=493fd05c04783ac1476ed5eb5b14e92891b1eb69;hb=f79c3114efb645934af16035e489fdedc4cab85e;hp=033652025a870812214b84dcf630702cb04942a2;hpb=4179d3233e97505ed3def53dc02b6a778057d439;p=pspp-builds.git diff --git a/src/ui/gui/psppire-var-sheet.c b/src/ui/gui/psppire-var-sheet.c index 03365202..493fd05c 100644 --- a/src/ui/gui/psppire-var-sheet.c +++ b/src/ui/gui/psppire-var-sheet.c @@ -16,6 +16,7 @@ #include #include "psppire-var-sheet.h" +#include #include #include "helper.h" @@ -483,12 +484,9 @@ var_sheet_change_active_cell (PsppireVarSheet *vs, } - - static void psppire_var_sheet_init (PsppireVarSheet *vs) { - // gint i; GladeXML *xml = XML_NEW ("data-editor.glade"); vs->val_labs_dialog = val_labs_dialog_create (xml); @@ -500,14 +498,6 @@ psppire_var_sheet_init (PsppireVarSheet *vs) vs->dispose_has_run = FALSE; vs->may_create_vars = TRUE; -#if 0 - for (i = 0 ; i < PSPPIRE_VAR_STORE_n_COLS ; ++i ) - { - g_sheet_hetero_column_set_width (G_SHEET_HETERO_COLUMN (geo), i, - column_def[i].width); - } -#endif - g_signal_connect (vs, "activate", G_CALLBACK (var_sheet_change_active_cell), NULL); @@ -534,14 +524,25 @@ GtkWidget* psppire_var_sheet_new (void) { gint i; - PsppireAxis *a = psppire_axis_new (); + PsppireAxisHetero *ha = psppire_axis_hetero_new (); + PsppireAxisHetero *va = psppire_axis_hetero_new (); + GtkWidget *w = g_object_new (psppire_var_sheet_get_type (), NULL); for (i = 0 ; i < 10 ; ++i) - psppire_axis_append (a, column_def[i].width); + psppire_axis_hetero_append (ha, column_def[i].width); + + + g_object_set (va, + "default-size", 25, + NULL); + + g_object_set (ha, "minimum-extent", 0, + NULL); g_object_set (w, - "horizontal-axis", a, + "horizontal-axis", ha, + "vertical-axis", va, NULL); return w;