set_model method

"Dmitry Bely" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
Compare

class view : tree_view obj ->
...
    method set_model : model option -> unit

and

class entry_completion :
  ([> `entrycompletion|`celllayout] as 'a) Gtk.obj ->
...
    method set_model : GTree.model -> unit

class combo_box :
  ([> Gtk.combo_box] as 'a) Gtk.obj ->
...
    method set_model : GTree.model -> unit

I believe combo_box & entry_completion classes should also have "model
option" as a parameter (you pass None to unset the current model).
This is mentioned in GTK docs:

void gtk_combo_box_set_model (GtkComboBox *combo_box,
                              GtkTreeModel *model);

Sets the model used by combo_box to be model. Will unset a previously
set model (if applicable). If model is NULL, then it will unset the
model.

- Dmitry Bely
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.