[Gnucash-changes] r13784 - gnucash/trunk - Allow the account tree view callback to run in addition the the page

David Hampton hampton at cvs.gnucash.org
Fri Apr 14 20:14:20 EDT 2006


Author: hampton
Date: 2006-04-14 20:14:19 -0400 (Fri, 14 Apr 2006)
New Revision: 13784
Trac: http://svn.gnucash.org/trac/changeset/13784

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c
Log:
Allow the account tree view callback to run in addition the the page
callback.  Fixes 303995.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-04-14 22:56:06 UTC (rev 13783)
+++ gnucash/trunk/ChangeLog	2006-04-15 00:14:19 UTC (rev 13784)
@@ -1,5 +1,9 @@
 2006-04-14  David Hampton  <hampton at employees.org>
 
+	* src/gnome/gnc-plugin-page-account-tree.c: Allow the account tree
+	view callback to run in addition the the page callback.  Fixes
+	303995.
+
 	* src/gnome-utils/glade/preferences.glade: Clarify text regarding
 	the lines in the register.  Fixes 338479.
 

Modified: gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c	2006-04-14 22:56:06 UTC (rev 13783)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c	2006-04-15 00:14:19 UTC (rev 13784)
@@ -588,7 +588,12 @@
   ENTER("widget %p, event %p, page %p", widget, event, page);
   result = gnc_main_window_button_press_cb(widget, event, page);
   LEAVE(" ");
-  return result;
+
+  /* Always return FALSE.  This will let the tree view callback run as
+   * well which will select the item under the cursor.  By the time
+   * the user sees the menu both callbacks will have run and the menu
+   * actions will operate on the just-selected account. */
+  return FALSE;
 }
 
 static void



More information about the gnucash-changes mailing list