/[pspp]/psppire/src/data_sheet.c
ViewVC logotype

Diff of /psppire/src/data_sheet.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by jmd, Sun Nov 27 08:21:33 2005 UTC revision 1.24 by jmd, Mon Nov 28 07:14:23 2005 UTC
# Line 285  update_column(GtkSheet *sheet, gint colu Line 285  update_column(GtkSheet *sheet, gint colu
285                             convert);                             convert);
286    
287    
288      /* Kludge: Happily GtkJustification is defined similarly
289         to enum alignment from pspp/var.h */
290      gtk_sheet_column_set_justification(sheet, column, var->alignment);
291    gtk_sheet_column_button_add_label(sheet, column, var->name);    gtk_sheet_column_button_add_label(sheet, column, var->name);
292    gtk_sheet_column_set_sensitivity(sheet, column, TRUE);    gtk_sheet_column_set_sensitivity(sheet, column, TRUE);
293    
# Line 343  repopulate_columns(GtkSheet *sheet, PSPP Line 346  repopulate_columns(GtkSheet *sheet, PSPP
346        if ( col < pspp_dict_get_var_cnt(dict))        if ( col < pspp_dict_get_var_cnt(dict))
347          {          {
348            const struct variable *var = pspp_dict_get_var(dict, col);                  const struct variable *var = pspp_dict_get_var(dict, col);      
349          
350              /* Kludge: Happily GtkJustification is defined similarly
351                 to enum alignment from pspp/var.h */
352              gtk_sheet_column_set_justification(sheet, col,
353                                                 var->alignment);
354            gtk_sheet_column_button_add_label (sheet, col, var->name);            gtk_sheet_column_button_add_label (sheet, col, var->name);
355            gtk_sheet_set_column_width (sheet, col,            gtk_sheet_set_column_width (sheet, col,
356                                        columnWidthToPixels(sheet, col,                                        columnWidthToPixels(sheet, col,
357                                                            var->display_width));                                                            var->display_width));
358            gtk_sheet_column_set_sensitivity(sheet, col, TRUE);            gtk_sheet_column_set_sensitivity(sheet, col, TRUE);
359    
360          }          }
361        else        else
362          {          {

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26