From: Olivier Andrieu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17334.54651.591426.400874 at karryall.dnsalias.org> Date: Sat, 31 Dec 2005 20:01:15 +0100 To: Maurizio Colucci Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: bug in GEdit.combo_box_text? In-Reply-To: References: Maurizio Colucci [Friday 30 December 2005] : > > I can't seem to set the default entry in a combo box: the following code > > let surfOptMenu = GEdit.combo_box_text ~strings:["Cement"; "Clay"; "Grass"] > ~packing:(mainGrid#attach ~left:1 ~top:0) ~active:0 () in > > > gives the following output: > > (freetennis:15185): Gtk-CRITICAL **: gtk_tree_row_reference_new: > assertion `GTK_IS_TREE_MODEL (model)' failed > > (freetennis:15185): Gtk-CRITICAL **: gtk_cell_view_set_displayed_row: > assertion `GTK_IS_TREE_MODEL (cell_view->priv->model)' > > > and the combo box appears empty. > > Any ideas for a workaround? I am using lablgtk2 as in Ubuntu Breezy > (version 2.4.0+2005.06.13-1build1). Ah yes, I know about this. Something wrong with the order the combo box is initialized. I'll look into it. -- Olivier