diff options
author | Damon Chaplin <damon@ximian.com> | 2001-10-23 06:33:20 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-10-23 06:33:20 +0800 |
commit | b89da79e8c9a5db367cdff556ce024962b2cca82 (patch) | |
tree | 19823590a819dca96a2ab6591f403e3dea2a4075 /widgets/table/e-cell-combo.h | |
parent | 798623d52b0bdf8a77fa7c6a0d1d12c180f3cbe5 (diff) | |
download | gsoc2013-evolution-b89da79e8c9a5db367cdff556ce024962b2cca82.tar.gz gsoc2013-evolution-b89da79e8c9a5db367cdff556ce024962b2cca82.tar.zst gsoc2013-evolution-b89da79e8c9a5db367cdff556ce024962b2cca82.zip |
added set_value() class method, which sets the model value based on the
2001-10-22 Damon Chaplin <damon@ximian.com>
* 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
Diffstat (limited to 'widgets/table/e-cell-combo.h')
-rw-r--r-- | widgets/table/e-cell-combo.h | 4 |
1 files changed, 3 insertions, 1 deletions
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); |