how to hook OpenHBCI menu items in the register window

Christian Stimming stimming@tuhh.de
Sun, 25 Aug 2002 22:05:27 +0200


-----BEGIN PGP SIGNED MESSAGE-----

On Samstag, 24. August 2002 05:38, David Hampton wrote:
> On Fri, 2002-08-23 at 07:25, Derek Atkins wrote:
> > Well, David Hampton was the person working on menus and turning
> > them all to glade.  I warned him that this was going to be an
> > issue.
>
> This has nothing to do with how the windows are created.  Its an issue
> of whether or not there are hooks present to add to a window's menus.

Agreed.

> > I know that there is a programatic way to add items to
> > _some_ menus, but I do not know if there is a way to do it for
> > "any" menu.
>
> Use the gnc_add_c_extension() or gnc_add_scm_extension() functions to
> add items to the main window menus.  One of the arguments to these
> functions is where in the menu hierarchy to put the new item.  I don't
> believe there has ever been a way to add anything to the register window
> menus.

Yes, that's what I groked so far. Nevertheless, for HBCI stuff I need to do 
exactly that: add menu items to the register window menus, and to the account 
tree's account specific menus. Not many, but only two or three: Actions-> 
Online-> "Get balance", "Get transactions". Does anybody happen to volunteer 
to write hooks for that? If not, I'd like to implement that with #ifdef'd 
menu adding commands in src/gnome/window-register.c and 
src/gnome/window-acct-tree.c, respectively.

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iQCVAwUBPWk4h2XAi+BfhivFAQERtQQAmbDwJNHnYN+/8UX+PRSoiDggNdjY+1HC
6cBlyt2FNtefRwzT3dndjmfUwzHy1xn3FooQKv3OCVDVJx4PewrpTWenBtQ6ZPPK
0a+m1K6iYgouepRkrRBaM1EGwBZGtCvaUPP1tg/Kk8+lpkoXK/5kdMbw3sv4AgDJ
QWUOS0QpqiI=
=xGdx
-----END PGP SIGNATURE-----