Re: ComboBox and TreeView issues



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]