Re: [gtkmm] TreeView.set_cursor -- assertion failed



Andreas Matthias wrote:

> I have a problem with TreeView.set_cursor where the following two assertions
> are not met if start_editing is set to true:
> 
> GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)
> GTK_IS_TREE_VIEW (tree_view)

Please, can someone compile and run the example I´ve posted
and confirm the assertions and the segfault? I forgot to write
that I am using gtkmm-2.4.4. Here is the exact error message
I get when running this example:


# g++ `pkg-config --cflags --libs gtkmm-2.4` test.cpp && ./a.out

(a.out:221614): Gtk-CRITICAL **: file gtkcontainer.c: line 992 (gtk_container_remove): assertion `GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed

(a.out:221614): Gtk-CRITICAL **: file gtktreeview.c: line 8693 (gtk_tree_view_get_model): assertion `GTK_IS_TREE_VIEW (tree_view)' failed
Segmentation fault


Ciao
Andreas



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