file, it saves some 2-3 seconds
pmo-trunk-r3865
/* Setup the combo box: */
GtkComboBox *combobox = GTK_COMBO_BOX (self);
/* Setup the combo box: */
GtkComboBox *combobox = GTK_COMBO_BOX (self);
- gtk_combo_box_set_model (combobox, priv->model);
/* Country column:
* The ID model column in not shown in the view. */
/* Country column:
* The ID model column in not shown in the view. */
/* Fill the model with rows: */
load_from_file (self);
/* Fill the model with rows: */
load_from_file (self);
+ /* Set this _after_ loading from file, it makes loading faster */
+ gtk_combo_box_set_model (combobox, priv->model);
}
EasysetupCountryComboBox*
}
EasysetupCountryComboBox*