GNOME Bugzilla – Bug 172264
Copy fails for TreeView
Last modified: 2005-04-07 12:37:52 UTC
When trying to copy a treeview I get the following error: /home/enki/src/gazpacho/gazpacho/widget.py:599: GtkWarning: file gtktreeview.c: line 9317 (gtk_tree_view_set_headers_clickable): assertion `tree_view->priv->model != NULL' failed self.gtk_widget.set_property(prop.klass.id, prop.value) When pasting it the column headers doesn't show anymore.
After the changed made to the Clipboard and how Copy/Paste works there are now a new problem instead. I get the following exception when pasting the tree view. Traceback (most recent call last):
+ Trace 57624
self._real_paste()
self._command_manager.paste(selection, self._project)
widget_tree, widget_name = clipboard.get_selected_widget()
wt.load_from_xml_document_instance(item.xml)
self._read_xml_tree(document.documentElement)
widget = self._build_object(child_node)
self._fill_object_from_node(obj, xml_node)
self._read_property(obj, child_node)
obj.set_property(name, value)
Fixed in trunk. I removed the columns of the treeview since there is not support to edit or save them and because of that we lost then after a copy-paste operation
The only problem with this is that it isn't as obvious that this is a tree view anymore, but I guess we can live with that. It would be nice to implement some simple support for adding columns later though (if that is possible).
Sure, that's one of the initial goals of Gazpacho: support for TreeView design. We just need a little bit more of infraestructure