[Bug#179342: gnucash-hbci: Missing menuentries for HBCI-support]
Christian Stimming
stimming at tuhh.de
Fri Feb 14 00:04:05 CST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hi Thomas,
thanks for the proposed change below. It's good to see some more people from
Germany simly stepping in and submitting changes to the source code.
On Samstag, 8. Februar 2003 17:26, Thomas Viehmann wrote:
> --- gnucash-1.8.0/src/import-export/hbci/gncmod-hbci.c.orig Sat Feb 8
> 17:18:30 2003
> +++ gnucash-1.8.0/src/import-export/hbci/gncmod-hbci.c Sat Feb 8 17:18:44
> 2003@@ -117,5 +117,5 @@
> };
>
> - gnc_add_c_extension (reg_online_menu,
> WINDOW_NAME_REGISTER "/_Actions/");
> + gnc_add_c_extension (reg_online_menu,
> WINDOW_NAME_REGISTER "/Actions/"); }
However, this doesn't work on *my* System (it makes the HBCI menu entries
disappear if I compile with that change). If I remove the leading underscore,
on my system the gnome libraries (gnome-app functions) are no longer able to
look up the correct menu. So since it breaks at least one system where it
used to work (i.e. mine), I will not commit this change to CVS.
Sorry, but the problem is more difficult than that. In
src/gnome-utils/gnc-menu-extensions.c, you will see that in the
gnc_extensions_menu_setup I replaced the call to gnome_app_insert_menus by
gnucash's own version gnc_gnome_app_insert_menus, defined in the very same
file. The difference to the original version lies in the way how translations
of the menu entries (which may or may not have underscores) are handled. More
explanation in the source/header files. As you can see, the
gnc_extensions_menu_setup_with_data still uses the stock
gnome_app_insert_menus_with_data function. I believe the solution here is
that you would need a gnucash replacement for that function as well, with
exactly the same change in the way how translations are handled. I was just
too lazy to code that myself. Maybe you can give it a try.
Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iQCVAwUBPkwkZWXAi+BfhivFAQGJ/wQApK6xue0IsnqQyFLCzv75YqR37ZU0+97e
ovsWW4o8CUgPECkhHcKrI35f3kSFQONIE/wR96SI8iiJPoHyp1W9B5sXyUtuDpFs
+RZpUNQhKCZahRfzWoUhh4my4PJMzITNY/Vaztzv8RL+9uvF3MMvXOKrXLhVewnS
Xo8xQ+QuMJ4=
=0ka1
-----END PGP SIGNATURE-----
More information about the gnucash-devel
mailing list