GtkTreeRowReferences and =?ISO-8859-1?Q?=BFsignal_155=3F?=



Hi all,

I'm building an app with a TreeView with the selection mode set to multiple. When i have to delete data from the tree view, i get a list of selection with gtk_tree_selection_get_selected them i transform this list into another list with GtkTreeRowReferences in it.

The deletion of the data works, but just after delete some element i get this error message:

GLib-GObject-WARNING **: gsignal.c:2133: signal id `155' is invalid for instance `0x8072eb8'

Does anybody knows what is this? I didn't connect any signal to the RowReference. Here's goes part of the code: /* act is a GList of GtkTreeRowReferences */
       while (act != NULL)
       {
if (gtk_tree_row_reference_valid ((GtkTreeRowReference*) act->data))
           {
path = gtk_tree_row_reference_get_path ((GtkTreeRowReference*) act->data); gtk_tree_row_reference_free ((GtkTreeRowReference*) act->data); /* Without this the error keep appearing */
               if (path != NULL)
               {
                   gtk_tree_model_get_iter (model, &iter, path);
gtk_tree_model_get (model, &iter, BRAND_ID_COLUMN, &brandid, -1);
                  /* Updates DB */
                   res = db_brand_delete (brandid);
                   if (res == SQLITE_DONE)
                   {
                       /* Updates model */
gtk_list_store_remove (GTK_LIST_STORE (model), &iter);
                   }
               }
           }
           act = g_list_next (act);
       }

I'm using Gtk+-2.10.6 and Glib 2.12.4.

Thanks in advance, Matias.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]