[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: ComboBox and TreeView issues
- From: Kristian Rietveld <kris imendio com>
- To: omar crea jusan it
- Cc: GTK+ mailing list <gtk-app-devel-list gnome org>
- Subject: Re: ComboBox and TreeView issues
- Date: Mon, 8 Oct 2007 10:30:12 +0200
Hi,
On Thu, Oct 04, 2007 at 05:53:23PM +0200, omar crea jusan it wrote:
> (when opening the tab)
> barcode_buttons[2561]: GLIB CRITICAL ** Gtk - gtk_tree_store_get_path: assertion
> `iter->user_data != NULL' failed
These usually mean that the iterator you are passing to
gtk_tree_store_get_path() is invalid.
> (when closing the tab)
> barcode_buttons[2561]: GLIB CRITICAL ** GLib-GObject - g_object_unref: assertion
> `G_IS_OBJECT (object)' failed
Here you are trying to unreference an invalid object (or one that has
already been destroyed).
> then I use this code to get data from the combobox:
>
> 369 result = gtk_combo_box_get_active_iter(GTK_COMBO_BOX(c.dataCombo),
> &iter);
> 370 model = gtk_combo_box_get_model(GTK_COMBO_BOX(c.dataCombo));
> 371 gtk_tree_model_get(model, &iter,
> 372 STRING_COL, &tf.data,
> 373 -1);
> 374 printf("Getted data: %s\n", tf.data);
> 375 g_object_unref(model);
In this code segment you should not be unreferencing the model you got
from gtk_combo_box_get_model().
Hope this helps.
regards,
-kris.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]