After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 172264 - Copy fails for TreeView
Copy fails for TreeView
Status: RESOLVED FIXED
Product: Gazpacho
Classification: Deprecated
Component: widget support
SVN trunk
Other Linux
: Normal normal
: ---
Assigned To: Gazpacho Maintainer(s)
Gazpacho Maintainer(s)
Depends on:
Blocks: 172261
 
 
Reported: 2005-03-31 14:58 UTC by Mattias Karlsson
Modified: 2005-04-07 12:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mattias Karlsson 2005-03-31 14:58:17 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.
Comment 1 Mattias Karlsson 2005-04-02 10:17:26 UTC
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):
  • File "/home/enki/src/gazpacho/gazpacho/application.py", line 805 in _paste_cb
    self._real_paste()
  • File "/home/enki/src/gazpacho/gazpacho/application.py", line 800 in _real_paste
    self._command_manager.paste(selection, self._project)
  • File "/home/enki/src/gazpacho/gazpacho/command.py", line 176 in paste
    widget_tree, widget_name = clipboard.get_selected_widget()
  • File "/home/enki/src/gazpacho/gazpacho/clipboard.py", line 139 in get_selected_widget
    wt.load_from_xml_document_instance(item.xml)
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 103 in load_from_xml_document_instance
    self._read_xml_tree(document.documentElement)
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 149 in _read_xml_tree
    widget = self._build_object(child_node)
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 219 in _build_object
    self._fill_object_from_node(obj, xml_node)
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 234 in _fill_object_from_node
    self._read_property(obj, child_node)
  • File "/home/enki/src/gazpacho/gazpacho/loader/widgettree.py", line 513 in _read_property
    obj.set_property(name, value)
TypeError: could not convert argument to correct param type

Comment 2 Lorenzo Gil Sanchez 2005-04-07 00:44:20 UTC
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
Comment 3 Mattias Karlsson 2005-04-07 10:20:36 UTC
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).
Comment 4 Lorenzo Gil Sanchez 2005-04-07 12:37:52 UTC
Sure, that's one of the initial goals of Gazpacho: support for TreeView design.
We just need a little bit more of infraestructure