From b89da79e8c9a5db367cdff556ce024962b2cca82 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Mon, 22 Oct 2001 22:33:20 +0000 Subject: added set_value() class method, which sets the model value based on the 2001-10-22 Damon Chaplin * e-cell-text.[hc]: added set_value() class method, which sets the model value based on the text. In ECellText itself it assumes the model value is a char* and passes the text directly. Subclasses may parse the text into some other datatype. Also made the calls the e_cell_text_get_text(), e_cell_text_free_text() and e_cell_text_set_value() public, since we need them in ECellCombo. * e-cell-combo.c (e_cell_combo_select_matching_item): (e_cell_combo_update_cell): use e_cell_text_get_text()/free_text()/ set_value() so it can handle subclasses of ECellText as the child. svn path=/trunk/; revision=13901 --- widgets/table/e-cell-combo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'widgets/table/e-cell-combo.h') diff --git a/widgets/table/e-cell-combo.h b/widgets/table/e-cell-combo.h index 9f8833d029..27b841a936 100644 --- a/widgets/table/e-cell-combo.h +++ b/widgets/table/e-cell-combo.h @@ -25,7 +25,8 @@ /* * ECellCombo - a subclass of ECellPopup used to support popup lists like a * GtkCombo widget. It only supports a basic popup list of strings at present, - * with no auto-completion. + * with no auto-completion. The child ECell of the ECellPopup must be an + * ECellText or subclass. */ #ifndef _E_CELL_COMBO_H_ @@ -56,6 +57,7 @@ typedef struct { GtkType e_cell_combo_get_type (void); ECell *e_cell_combo_new (void); +/* These must be UTF-8. */ void e_cell_combo_set_popdown_strings (ECellCombo *ecc, GList *strings); -- cgit v1.2.3