From: Jose Dapena Paz Date: Wed, 15 Oct 2008 11:00:10 +0000 (+0000) Subject: * Fix country picker to fetch the column string where it should.c X-Git-Tag: git_migration_finished~1154 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=9d6ea8ae049bd224af9a21ee49c840d709d26c7e * Fix country picker to fetch the column string where it should.c pmo-trunk-r6049 --- diff --git a/src/hildon2/modest-country-picker.c b/src/hildon2/modest-country-picker.c index 1a6d777..b514942 100644 --- a/src/hildon2/modest-country-picker.c +++ b/src/hildon2/modest-country-picker.c @@ -269,6 +269,7 @@ modest_country_picker_load_data(ModestCountryPicker *self) GtkCellRenderer *renderer; GtkWidget *selector; GtkListStore *model; + HildonTouchSelectorColumn *column; /* Create a tree model for the combo box, * with a string for the name, and an int for the MCC ID. @@ -283,8 +284,9 @@ modest_country_picker_load_data(ModestCountryPicker *self) selector = hildon_touch_selector_new (); hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (self), HILDON_TOUCH_SELECTOR (selector)); - hildon_touch_selector_append_column (HILDON_TOUCH_SELECTOR (selector), GTK_TREE_MODEL (model), - renderer, "text", MODEL_COL_NAME, NULL); + column = hildon_touch_selector_append_column (HILDON_TOUCH_SELECTOR (selector), GTK_TREE_MODEL (model), + renderer, "text", MODEL_COL_NAME, NULL); + g_object_set (G_OBJECT (column), "text-column", MODEL_COL_NAME, NULL); /* Fill the model with rows: */ load_from_file (self, model);