More include file tweaking. Don't include gtk.h from any header

files.  Add in some includes that are currently pulled in by
deprecated parts of the gnome library.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11983 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-20 02:54:09 +00:00
parent db2bed0e58
commit 63769c7e31
64 changed files with 72 additions and 41 deletions

View File

@ -1,5 +1,9 @@
2005-11-19 David Hampton <hampton@employees.org>
* various: More include file tweaking. Don't include gtk.h from
any header files. Add in some includes that are currently
pulled in by deprecated parts of the gnome library.
* numerous: Include file cleanup. Remove the messages.[ch] files
in favor of the glib supplied gi18n.h file. Replace includes of
gnome.h with gtk.h (or better yet glib.h) wherever possible.

View File

@ -24,6 +24,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include "dialog-utils.h"
#include "gnc-engine-util.h"

View File

@ -24,6 +24,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <g-wrap-wct.h>
#include <libguile.h>

View File

@ -23,6 +23,9 @@
#include "config.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include "gnc-plugin.h"
#include "dialog-invoice.h"
#include "gnc-plugin-page-invoice.h"

View File

@ -32,6 +32,7 @@
ws
(lambda (wrapset client-wrapset)
(list
"#include <gtk/gtk.h>\n"
"#include <business-urls.h>\n"
"#include <dialog-billterms.h>\n"
"#include <dialog-customer.h>\n"

View File

@ -24,8 +24,6 @@
#ifndef _GNC_DIALOG_SEARCH_H
#define _GNC_DIALOG_SEARCH_H
#include <gtk/gtk.h>
#include "GNCId.h"
#include "QueryNew.h"

View File

@ -29,7 +29,9 @@
@NOTATION@
*/
#include <config.h>
#include "config.h"
#include <gtk/gtk.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>

View File

@ -32,7 +32,6 @@
#ifndef GNC_GENERAL_SEARCH_H
#define GNC_GENERAL_SEARCH_H
#include <gtk/gtk.h>
#include "dialog-search.h"
#include "gnc-book.h"

View File

@ -23,6 +23,8 @@
#include "config.h"
#include <gnome.h>
#include <gdk/gdk.h>
#include <glib/gi18n.h>
#include <g-wrap-wct.h>
#include "gnc-tree-model-budget.h" //FIXME?
@ -45,7 +47,6 @@
#include "gnc-ui.h"
#include "guile-util.h"
#include "option-util.h"
#include "gdk/gdkfont.h"
#include "guile-mappings.h"
#include "gnc-date-format.h"
#include "misc-gnome-utils.h"

View File

@ -36,6 +36,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <string.h>
#include <stdlib.h> /* atoi */
#include <ctype.h> /* isdigit */

View File

@ -23,6 +23,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include "dialog-utils.h"
#include "gnc-gconf-utils.h"

View File

@ -23,10 +23,10 @@
#include "config.h"
#include <string.h>
#include <gtk/gtk.h>
#include <gtkhtml/gtkhtml.h>
#include <gtkhtml/gtkhtml-embedded.h>
#include <string.h>
#include "gnc-html-graph-gog.h"
#include "gnc-html.h"

View File

@ -22,7 +22,7 @@
#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include <string.h>
#include "gnc-html-history.h"

View File

@ -23,10 +23,7 @@
#ifndef GNC_HTML_H
#define GNC_HTML_H
#include <glib.h>
#include <gtkhtml/gtkhtml.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
typedef char * URLType;

View File

@ -36,8 +36,6 @@
#ifndef __GNC_MAIN_WINDOW_H
#define __GNC_MAIN_WINDOW_H
#include <gtk/gtk.h>
#include "gnc-plugin-page.h"
G_BEGIN_DECLS

View File

@ -23,7 +23,6 @@
#ifndef GNC_MENU_EXTENSIONS_H
#define GNC_MENU_EXTENSIONS_H
#include <gtk/gtk.h>
#include <libguile.h>
typedef struct _ExtensionInfo

View File

@ -32,7 +32,6 @@
#ifndef GNC_PERIOD_SELECT_H
#define GNC_PERIOD_SELECT_H
#include <gtk/gtk.h>
#include "gnc-accounting-period.h"
G_BEGIN_DECLS

View File

@ -35,7 +35,6 @@
#ifndef __GNC_PLUGIN_FILE_HISTORY_H
#define __GNC_PLUGIN_FILE_HISTORY_H
#include <gtk/gtk.h>
#include "gnc-plugin.h"
G_BEGIN_DECLS

View File

@ -24,7 +24,7 @@
#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include "gnc-plugin-manager.h"
#include "gnc-engine.h"

View File

@ -38,7 +38,6 @@
#ifndef __GNC_PLUGIN_MENU_ADDITIONS_H
#define __GNC_PLUGIN_MENU_ADDITIONS_H
#include <gtk/gtk.h>
#include "gnc-plugin.h"
G_BEGIN_DECLS

View File

@ -25,9 +25,11 @@
*/
#include "config.h"
#include <gtk/gtk.h>
#include "gnc-trace.h"
#include "gnc-tree-model-account-types.h"
#include "Account.h"
static QofLogModule log_module = GNC_MOD_GUI;

View File

@ -37,8 +37,6 @@
#ifndef __GNC_TREE_MODEL_ACCOUNT_TYPES_H
#define __GNC_TREE_MODEL_ACCOUNT_TYPES_H
#include <gtk/gtk.h>
G_BEGIN_DECLS
/* type macros */

View File

@ -22,6 +22,10 @@
/** @addtogroup gnome-util
* @{ */
#include "config.h"
#include <gtk/gtk.h>
#include "gnc-tree-model-budget.h"
#include "gnc-budget.h"
#include "gnc-ui-util.h"

View File

@ -29,7 +29,6 @@
#ifndef __GNC_TREE_MODEL_BUDGET_H__
#define __GNC_TREE_MODEL_BUDGET_H__
#include <gtk/gtk.h>
#include "gnc-budget.h"
/* The budget list columns. */

View File

@ -25,6 +25,7 @@
#include "config.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <string.h>
#include "gnc-tree-view.h"
@ -38,7 +39,6 @@
#include "gnc-gnome-utils.h"
#include "gnc-icons.h"
#include "gnc-ui-util.h"
#include <libgnome/libgnome.h>
/** Static Globals *******************************************************/

View File

@ -20,8 +20,6 @@
#ifndef __GTT_UTIL_H__
#define __GTT_UTIL_H__
#include <gtk/gtk.h>
/* Some gtk-like utilities */
void xxxgtk_textview_set_text (GtkTextView *text, const char *str);
char * xxxgtk_textview_get_text (GtkTextView *text);

View File

@ -25,6 +25,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <libgnomeprint/gnome-font.h>
#include <libgnomeprintui/gnome-print-job-preview.h>
#include <stdio.h>

View File

@ -24,8 +24,6 @@
#ifndef DIALOG_TOTD_H
#define DIALOG_TOTD_H
#include <gtk/gtk.h>
void gnc_totd_dialog (GtkWindow *parent, gboolean startup);
#endif

View File

@ -23,6 +23,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

View File

@ -24,6 +24,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <string.h>
#include <glade/glade.h>
#include <math.h>

View File

@ -24,6 +24,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

View File

@ -24,6 +24,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include "Group.h"
#include "Transaction.h"

View File

@ -39,6 +39,7 @@
#include "config.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <glade/glade.h>
#include "gnc-plugin-page-register.h"

View File

@ -35,6 +35,7 @@
#include "config.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#ifndef HAVE_GLIB26
#include "gkeyfile.h"
#endif

View File

@ -24,6 +24,8 @@
#include "config.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <string.h>
#include "gnc-component-manager.h"

View File

@ -25,8 +25,6 @@
#ifndef __GNC_PLUGIN_REGISTER_H
#define __GNC_PLUGIN_REGISTER_H
#include <gtk/gtkwindow.h>
#include "gnc-plugin.h"
G_BEGIN_DECLS

View File

@ -68,8 +68,6 @@
#define GNC_SPLIT_REG_H
#include <libguile.h>
#include <gtk/gtk.h>
#include "config.h"
#include "gnc-ledger-display.h"
#include "gnucash-sheet.h"

View File

@ -26,6 +26,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include "Scrub.h"
#include "dialog-commodity.h"

View File

@ -3,6 +3,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include "gnc-druid-gnome-ui.h"
#include "gnc-import-format-gnome.h"

View File

@ -27,6 +27,7 @@
#endif
#include <gnome.h>
#include <glib/gi18n.h>
#include <aqbanking/version.h>
#include <aqbanking/account.h>
#include <aqbanking/jobsingletransfer.h>

View File

@ -23,6 +23,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>

View File

@ -23,6 +23,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include "gnc-hbci-gettrans.h"

View File

@ -23,6 +23,9 @@
#include "config.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include "druid-hbci-initial.h"
#include "gnc-plugin-manager.h"
#include "gnc-gnome-utils.h"

View File

@ -6,8 +6,9 @@
*********************************************************************/
#include "config.h"
#include <gtk/gtk.h>
#include <stdio.h>
#include <glib.h>
#include <libguile.h>
#include "gnc-module.h"

View File

@ -23,6 +23,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <stdio.h>
#include <string.h>
#include <locale.h>

View File

@ -29,7 +29,8 @@
#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <stdlib.h>
#include <math.h>

View File

@ -27,7 +27,6 @@
#ifndef TRANSACTION_MATCHER_H
#define TRANSACTION_MATCHER_H
#include <gtk/gtk.h>
#include "Transaction.h"
#include "import-match-map.h"
#include "import-settings.h"

View File

@ -27,6 +27,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include "import-main-matcher.h"

View File

@ -29,7 +29,7 @@
#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include "import-backend.h"
#include "import-match-picker.h"

View File

@ -24,7 +24,8 @@
@author Copyright (c) 2003 Benoit Grégoire bock@step.polymtl.ca
*/
#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include <libguile.h>
#include "gnc-log-replay.h"

View File

@ -24,7 +24,8 @@
@author Copyright (c) 2002 Benoit Grégoire bock@step.polymtl.ca
*/
#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include "gnc-ofx-import.h"
#include "gnc-module.h"

View File

@ -26,6 +26,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <libguile.h>
#include <stdio.h>
#include <sys/time.h>

View File

@ -35,6 +35,7 @@
#include "config.h"
#include <gnome.h>
#include <string.h>
#include "QuickFill.h"
#include "combocell.h"

View File

@ -29,6 +29,8 @@
#include "config.h"
#include <string.h>
#include "gnucash-sheet.h"
#include "gnucash-grid.h"
#include "gnucash-color.h"

View File

@ -28,6 +28,8 @@
#include "config.h"
#include <string.h>
#include "gnucash-sheet.h"
#include "gnucash-color.h"
#include "gnucash-style.h"

View File

@ -31,6 +31,7 @@
#include "config.h"
#include <gnome.h>
#include <string.h>
#include "gnucash-color.h"
#include "gnucash-cursor.h"

View File

@ -27,6 +27,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include "gnc-engine.h"
#include "gnucash-item-list.h"

View File

@ -30,6 +30,7 @@
#include "config.h"
#include <gnome.h>
#include <string.h>
#include "quickfillcell.h"
#include "quickfillcell-gnome.h"

View File

@ -23,6 +23,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <libguile.h>
#include <g-wrap-wct.h>

View File

@ -24,7 +24,6 @@
#define GNC_DIALOG_COLUMN_VIEW_H
#include <libguile.h>
#include <gtk/gtk.h>
typedef struct gncp_column_view_edit gnc_column_view_edit;

View File

@ -9,9 +9,9 @@
#include <config.h>
#endif
#include <gtk/gtk.h>
#include <stdio.h>
#include <libguile.h>
#include <glib.h>
#include "gnc-module.h"
#include "gnc-module-api.h"

View File

@ -27,8 +27,8 @@
ws
(lambda (wrapset client-wrapset)
(list
"#include <gtk/gtk.h>\n"
"#include <dialog-column-view.h>\n"
"#include <dialog-style-sheet.h>\n"
"#include <gnc-plugin-page-report.h>\n"
"#include <window-report.h>\n")))

View File

@ -28,6 +28,7 @@
#include "config.h"
#include <gnome.h>
#include <glib/gi18n.h>
#include <errno.h>
#include <libguile.h>
#include <sys/stat.h>

View File

@ -6,8 +6,9 @@
*********************************************************************/
#include "config.h"
#include <gtk/gtk.h>
#include <stdio.h>
#include <glib.h>
#include <libguile.h>
#include "gnc-module.h"