GTG

GTK warning when dragging white space

Bug #733102 reported by Izidor Matušov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Low
Izidor Matušov

Bug Description

1, Start GTG with a fresh new set of tasks
2, Resize the window to have some white space there
3, Click on the white space below tasks and start dragging. Put it somewhere also on the white space. (Drag'n'drop of white space)

Result on 0.2.4:

Traceback (most recent call last):
  File "/home/iyo/downloads/gtg-0.2.4/GTG/taskbrowser/tasktree.py", line 547, in on_drag_data_received
    drag_iter = model.get_iter_from_string(iter)
ValueError: invalid tree path

Result on lp:gtg (today):

/home/iyo/downloads/gtg-0.3/GTG/gtk/liblarch_gtk/__init__.py:370: GtkWarning: IA__gtk_tree_path_new_from_string: assertion `*path != '\000'' failed
  dragged_iter = model.get_iter_from_string(iter)
/home/iyo/downloads/gtg-0.3/GTG/gtk/liblarch_gtk/__init__.py:370: GtkWarning: IA__gtk_tree_model_get_iter_from_string: assertion `path != NULL' failed
  dragged_iter = model.get_iter_from_string(iter)
/home/iyo/downloads/gtg-0.3/GTG/gtk/manager.py:252: GtkWarning: You must override the default 'drag_data_delete' handler on GtkTreeView when using models that don't support the GtkTreeDragSource interface and enabling drag-and-drop. The simplest way to do this is to connect to 'drag_data_delete' and call g_signal_stop_emission_by_name() in your signal handler to prevent the default handler from running. Look at the source code for the default handler in gtktreeview.c to get an idea what your handler should do. (gtktreeview.c is in the GTK source code.) If you're using GTK from a language other than C, there may be a more natural way to override default handlers, e.g. via derivation.
  gtk.main()

It is a quite strange error.

Tags: liblarch

Related branches

Izidor Matušov (izidor)
Changed in gtg:
assignee: nobody → Izidor Matušov (izidor)
Izidor Matušov (izidor)
tags: added: liblarch
Changed in gtg:
status: New → In Progress
importance: Undecided → Low
Revision history for this message
Izidor Matušov (izidor) wrote :

Solved in lp:~gtg/gtg/integrate-liblarch-to-gtg, rev 942. ( http://bazaar.launchpad.net/~gtg/gtg/integrate-liblarch-to-gtg/revision/942 )

When you drag white space, no task is selected and selection.data is empty. Splitting by ',' produces list of one empty string [''] instead of empty list [].

Changed in gtg:
status: In Progress → Fix Committed
milestone: 0.3 → 0.2.9
Izidor Matušov (izidor)
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.