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 121695 - RFE: drag and drop account tree widget
RFE: drag and drop account tree widget
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: General
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Chris Lyttle
Chris Lyttle
: 327649 343241 430127 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-09-07 18:52 UTC by rickziegler
Modified: 2018-06-29 20:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to support drag and drop (47.77 KB, patch)
2009-10-31 20:09 UTC, Matt Lavin
committed Details | Review

Description rickziegler 2003-09-07 18:52:57 UTC
Using drag and drop to organize accounts would be very convienient in general.

It would be even more useful if 104056 ( alternate account trees )  for
reports is implemented.

That way, reorganizing accounts for reports would be very easy.
Comment 1 rickziegler 2003-09-07 19:10:54 UTC
Sorry, wrong bug number referenced above. 121696 is the correct number.
Comment 2 David Hampton 2006-02-03 00:20:05 UTC
*** Bug 327649 has been marked as a duplicate of this bug. ***
Comment 3 Josh Sled 2006-05-31 16:50:19 UTC
*** Bug 343241 has been marked as a duplicate of this bug. ***
Comment 4 Christian Stimming 2006-10-18 11:33:26 UTC
Potentially related to bug#343240
Comment 5 Christian Stimming 2007-04-18 09:07:03 UTC
*** Bug 430127 has been marked as a duplicate of this bug. ***
Comment 6 Matt Lavin 2009-10-31 20:09:31 UTC
Created attachment 146654 [details] [review]
Patch to support drag and drop

Here is a patch that implements drag and drop reparenting in the accounts page.  The function works for me, and I can't think of anything more that needs to be done, but I'm new to the Gnucash codebase so a thorough review would be great.
Comment 7 Christian Stimming 2009-11-17 21:24:19 UTC
Comment on attachment 146654 [details] [review]
Patch to support drag and drop

Looks good for trunk. One question though: How hard would it be to make this drag&drop to work only if Ctrl key is pressed as well?
Comment 8 Christian Stimming 2009-11-20 19:57:36 UTC
Comment on attachment 146654 [details] [review]
Patch to support drag and drop

r18426, thanks a lot!
Comment 9 Phil Longstaff 2009-12-10 16:45:59 UTC
I think some problems were introduced with this change.  I created a
report and tried to modify the set of accounts used for this report.
The following showed up in /tmp/gnucash.trace:

* 20:14:20  CRIT <Gtk> gtk_tree_model_sort_convert_iter_to_child_iter:
assertion `GTK_IS_TREE_MODEL_SORT (tree_model_sort)'
failed                                                                                    
* 20:14:20  CRIT <Gtk> gtk_tree_model_sort_get_model: assertion
`GTK_IS_TREE_MODEL_SORT (tree_model)'
failed                                                                                                          
* 20:14:20  CRIT <Gtk> gtk_tree_model_filter_convert_iter_to_child_iter:
assertion `GTK_IS_TREE_MODEL_FILTER (filter)'
failed                                                                                         
* 20:14:20  CRIT <gnc.gui> gnc_tree_view_account_filter_by_view_info:
assertion `GNC_IS_ACCOUNT(acct)'
failed                                                                                                         
* 20:14:20  CRIT <Gtk> gtk_tree_model_sort_convert_iter_to_child_iter:
assertion `GTK_IS_TREE_MODEL_SORT (tree_model_sort)'
failed                                                                                    
* 20:14:20  CRIT <Gtk> gtk_tree_model_sort_get_model: assertion
`GTK_IS_TREE_MODEL_SORT (tree_model)'
failed                                                                                                          
* 20:14:20  CRIT <Gtk> gtk_tree_model_filter_convert_iter_to_child_iter:
assertion `GTK_IS_TREE_MODEL_FILTER (filter)'
failed                                                                                         
* 20:14:20  CRIT <gnc.gui> gnc_tree_view_account_filter_by_view_info:
assertion `GNC_IS_ACCOUNT(acct)'
failed                                                                                                         

More info: I set a breakpoint down in the logging code, and it stopped
on:

Breakpoint 3, log4glib_handler (log_domain=0x806c7c "GLib-GObject",
log_level=G_LOG_LEVEL_WARNING, 
    message=0xa878208 "invalid cast from `GncTreeModelAccountDrag' to
`GtkTreeModelSort'",         
    user_data=0x8052c30) at
qoflog.c:112                                                           

which may provide some clue to the problem.
Comment 10 Christian Stimming 2010-01-27 10:40:27 UTC
Reverted again in r18494 because of the above and also other problems.
Comment 11 John Ralls 2018-06-29 20:37:12 UTC
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=121695. Please continue processing the bug there and please update any external references or bookmarks.