279 |
gtk_sheet_range_set_background (sheet, |
gtk_sheet_range_set_background (sheet, |
280 |
urange, |
urange, |
281 |
&sheet->bg_color); |
&sheet->bg_color); |
|
|
|
|
|
|
|
|
|
282 |
} |
} |
283 |
|
|
284 |
|
|
468 |
|
|
469 |
gtk_sheet_range_set_editable (GTK_SHEET(sheet), 0, TRUE); |
gtk_sheet_range_set_editable (GTK_SHEET(sheet), 0, TRUE); |
470 |
|
|
|
|
|
|
|
|
471 |
g_signal_connect (GTK_OBJECT (sheet), "activate", |
g_signal_connect (GTK_OBJECT (sheet), "activate", |
472 |
GTK_SIGNAL_FUNC (var_sheet_cell_set), |
GTK_SIGNAL_FUNC (var_sheet_cell_set), |
473 |
0); |
0); |
474 |
|
|
|
|
|
475 |
g_signal_connect (GTK_OBJECT (sheet), "set_cell", |
g_signal_connect (GTK_OBJECT (sheet), "set_cell", |
476 |
GTK_SIGNAL_FUNC (update_variable), |
GTK_SIGNAL_FUNC (update_variable), |
477 |
0); |
0); |
478 |
|
|
|
|
|
|
|
|
479 |
for (i = 0 ; i < columns ; ++i ) |
for (i = 0 ; i < columns ; ++i ) |
480 |
{ |
{ |
481 |
gtk_sheet_column_button_add_label (GTK_SHEET(sheet), i, col[i].label); |
gtk_sheet_column_button_add_label (GTK_SHEET(sheet), i, col[i].label); |
482 |
gtk_sheet_set_column_width (GTK_SHEET(sheet), i, col[i].width); |
gtk_sheet_set_column_width (GTK_SHEET(sheet), i, col[i].width); |
483 |
} |
} |
484 |
|
|
|
|
|
485 |
/* Set the enabled colour to the default foreground colour */ |
/* Set the enabled colour to the default foreground colour */ |
486 |
GtkSheetCellAttr attributes; |
GtkSheetCellAttr attributes; |
487 |
g_assert(gtk_sheet_get_attributes (GTK_SHEET(sheet), 0, 0, &attributes)); |
g_assert(gtk_sheet_get_attributes (GTK_SHEET(sheet), 0, 0, &attributes)); |
488 |
enabled = attributes.foreground; |
enabled = attributes.foreground; |
489 |
|
|
|
|
|
490 |
g_assert(gdk_color_parse("gray",&disabled)); |
g_assert(gdk_color_parse("gray",&disabled)); |
491 |
|
|
492 |
GdkColormap *colormap = gdk_colormap_get_system(); |
GdkColormap *colormap = gdk_colormap_get_system(); |
496 |
gtk_widget_show(sheet); |
gtk_widget_show(sheet); |
497 |
|
|
498 |
return sheet; |
return sheet; |
|
|
|
499 |
} |
} |
500 |
|
|
501 |
|
|
591 |
pspp_dict_var_changed(pspp_dictionary, row); |
pspp_dict_var_changed(pspp_dictionary, row); |
592 |
} |
} |
593 |
|
|
|
|
|
|
|
|
594 |
if ( row > last_populated_row ) |
if ( row > last_populated_row ) |
595 |
last_populated_row = row ; |
last_populated_row = row ; |
596 |
|
|
|
|
|
597 |
return FALSE; |
return FALSE; |
598 |
} |
} |
599 |
|
|
632 |
|
|
633 |
g_signal_connect(pspp_dictionary, "variable_deleted", |
g_signal_connect(pspp_dictionary, "variable_deleted", |
634 |
G_CALLBACK(remove_variable), sheet); |
G_CALLBACK(remove_variable), sheet); |
|
|
|
635 |
} |
} |
636 |
|
|
637 |
|
|