r17686 - gnucash/trunk/src/gnome - Bug #559783 – SQL-related menu entry only when --enable-dbi is given

Phil Longstaff plongstaff at cvs.gnucash.org
Sat Nov 8 22:40:58 EST 2008


Author: plongstaff
Date: 2008-11-08 22:40:58 -0500 (Sat, 08 Nov 2008)
New Revision: 17686
Trac: http://svn.gnucash.org/trac/changeset/17686

Modified:
   gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c
Log:
Bug #559783 – SQL-related menu entry only when --enable-dbi is given

Conditionally compile menu entry only if HAVE_DBI_DBI_H is defined.



Modified: gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c	2008-11-08 13:40:33 UTC (rev 17685)
+++ gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c	2008-11-09 03:40:58 UTC (rev 17686)
@@ -103,9 +103,11 @@
   { "FileOpenAction", GTK_STOCK_OPEN, N_("_Open..."), NULL,
     N_("Open an existing GnuCash file"),
     G_CALLBACK (gnc_main_window_cmd_file_open) },
+#ifdef HAVE_DBI_DBI_H
   { "FileDatabaseConnectionAction", NULL, N_("_Database Connection"), NULL,
     N_("Connect to a database"),
     G_CALLBACK (gnc_main_window_cmd_file_db_connection) },
+#endif
   { "FileSaveAction", GTK_STOCK_SAVE, N_("_Save"), "<control>s",
     N_("Save the current file"),
     G_CALLBACK (gnc_main_window_cmd_file_save) },



More information about the gnucash-changes mailing list