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

Diff of /psppire/src/var_sheet.c

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

revision 1.10 by jmd, Wed Nov 2 13:17:29 2005 UTC revision 1.11 by jmd, Thu Nov 3 02:29:26 2005 UTC
# Line 149  set_var_type(GtkWidget *w, gpointer data Line 149  set_var_type(GtkWidget *w, gpointer data
149        spec = make_output_format(FMT_CCA, width, decimals);        spec = make_output_format(FMT_CCA, width, decimals);
150        break;        break;
151      default:      default:
152        g_print("Unknown format\n");        g_print("Unknown variable type: %d\n",
153                  var_type_dialog->active_button) ;
154        break;        break;
155      }      }
156    
# Line 292  populate_row_from_var(GtkSheet *sheet, c Line 293  populate_row_from_var(GtkSheet *sheet, c
293                  gtk_sheet_set_cell_text(sheet, row, c, _("String"));                  gtk_sheet_set_cell_text(sheet, row, c, _("String"));
294                  break;                  break;
295                default:                default:
296                  g_print("Format is unknown\n");                  g_print("Unknown format: \"%s\"\n", fmt_to_string(write_spec));
297                  break;                  break;
298                }                }
299            }            }
# Line 475  update_variable(GtkSheet *sheet, gint ro Line 476  update_variable(GtkSheet *sheet, gint ro
476        pspp_dict_var_changed(pspp_dictionary, row);        pspp_dict_var_changed(pspp_dictionary, row);
477        break;        break;
478      case COL_LABEL:      case COL_LABEL:
479        old_var->label = gtk_sheet_cell_get_text(sheet, row, col);        {
480            const gchar *text = gtk_sheet_cell_get_text(sheet, row, col);
481    
482            if ( !old_var->label || 0 != strcmp(old_var->label, text))
483              {
484                free(old_var->label);
485                old_var->label = strdup(text);
486              }
487          }
488        break;        break;
489    
490       }       }
491    
492    if ( row > last_populated_row )    if ( row > last_populated_row )

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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