From da042c898d574dd58614ade2b6a09945cd42e518 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 28 May 2008 12:59:48 +0000 Subject: [PATCH] include instead of 2008-05-28 Michael Natterer * modules/other/gail/gailwidget.h: include instead of * modules/other/gail/*.h: don't include anyting from gtk since all headers indirectly include gailwidget.h. * modules/other/gail/gailcellparent.c: include instead of individual files. * modules/other/gail/gailcheckmenuitem.c * modules/other/gail/gailmenu.c * modules/other/gail/gailtreeview.c: remove all gtk includes since it's always included by including any gail header. svn path=/trunk/; revision=20211 --- ChangeLog | 16 ++++++++++++++++ modules/other/gail/gailarrow.h | 1 - modules/other/gail/gailbox.h | 1 - modules/other/gail/gailbutton.h | 1 - modules/other/gail/gailcalendar.h | 1 - modules/other/gail/gailcellparent.c | 2 +- modules/other/gail/gailcheckmenuitem.c | 1 - modules/other/gail/gailcheckmenuitem.h | 1 - modules/other/gail/gailchecksubmenuitem.h | 1 - modules/other/gail/gailclist.h | 1 - modules/other/gail/gailcombo.h | 1 - modules/other/gail/gailcombobox.h | 1 - modules/other/gail/gailcontainer.h | 1 - modules/other/gail/gailentry.h | 1 - modules/other/gail/gailexpander.h | 1 - modules/other/gail/gailframe.h | 1 - modules/other/gail/gailimage.h | 1 - modules/other/gail/gailimagecell.h | 2 +- modules/other/gail/gailitem.h | 1 - modules/other/gail/gaillabel.h | 1 - modules/other/gail/gaillist.h | 1 - modules/other/gail/gailmenu.c | 4 ---- modules/other/gail/gailmenu.h | 1 - modules/other/gail/gailmenuitem.h | 1 - modules/other/gail/gailmenushell.h | 1 - modules/other/gail/gailnotebook.h | 3 +-- modules/other/gail/gailnotebookpage.h | 2 -- modules/other/gail/gailoptionmenu.h | 1 - modules/other/gail/gailpaned.h | 1 - modules/other/gail/gailpixmap.h | 1 - modules/other/gail/gailprogressbar.h | 1 - modules/other/gail/gailradiobutton.h | 1 - modules/other/gail/gailradiomenuitem.h | 1 - modules/other/gail/gailradiosubmenuitem.h | 1 - modules/other/gail/gailrange.h | 1 - modules/other/gail/gailscale.h | 1 - modules/other/gail/gailscrollbar.h | 1 - modules/other/gail/gailscrolledwindow.h | 1 - modules/other/gail/gailseparator.h | 1 - modules/other/gail/gailspinbutton.h | 1 - modules/other/gail/gailstatusbar.h | 1 - modules/other/gail/gailsubmenuitem.h | 1 - modules/other/gail/gailtextview.h | 1 - modules/other/gail/gailtogglebutton.h | 1 - modules/other/gail/gailtreeview.c | 1 - modules/other/gail/gailwidget.h | 2 +- modules/other/gail/gailwindow.h | 1 - 47 files changed, 20 insertions(+), 51 deletions(-) diff --git a/ChangeLog b/ChangeLog index 69e4d3070..72fc14c75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,21 @@ 2008-05-28 Michael Natterer + * modules/other/gail/gailwidget.h: include instead of + + + * modules/other/gail/*.h: don't include anyting from gtk since all + headers indirectly include gailwidget.h. + + * modules/other/gail/gailcellparent.c: include instead + of individual files. + + * modules/other/gail/gailcheckmenuitem.c + * modules/other/gail/gailmenu.c + * modules/other/gail/gailtreeview.c: remove all gtk includes since + it's always included by including any gail header. + +2008-05-28 Michael Natterer + * modules/printbackends/cups/gtkcupsutils.c * modules/printbackends/cups/gtkprintbackendcups.c * modules/printbackends/file/gtkprintbackendfile.c diff --git a/modules/other/gail/gailarrow.h b/modules/other/gail/gailarrow.h index 91f8894bf..f2bfa3e3f 100644 --- a/modules/other/gail/gailarrow.h +++ b/modules/other/gail/gailarrow.h @@ -20,7 +20,6 @@ #ifndef __GAIL_ARROW_H__ #define __GAIL_ARROW_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailbox.h b/modules/other/gail/gailbox.h index dd92ea7bc..403f163b8 100644 --- a/modules/other/gail/gailbox.h +++ b/modules/other/gail/gailbox.h @@ -20,7 +20,6 @@ #ifndef __GAIL_BOX_H__ #define __GAIL_BOX_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailbutton.h b/modules/other/gail/gailbutton.h index 3ce770d47..cf6d715ed 100644 --- a/modules/other/gail/gailbutton.h +++ b/modules/other/gail/gailbutton.h @@ -20,7 +20,6 @@ #ifndef __GAIL_BUTTON_H__ #define __GAIL_BUTTON_H__ -#include #include #include diff --git a/modules/other/gail/gailcalendar.h b/modules/other/gail/gailcalendar.h index 352098c6c..5a99976a0 100644 --- a/modules/other/gail/gailcalendar.h +++ b/modules/other/gail/gailcalendar.h @@ -20,7 +20,6 @@ #ifndef __GAIL_CALENDAR_H__ #define __GAIL_CALENDAR_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailcellparent.c b/modules/other/gail/gailcellparent.c index 5ca6bb29a..d67fff2e2 100644 --- a/modules/other/gail/gailcellparent.c +++ b/modules/other/gail/gailcellparent.c @@ -20,7 +20,7 @@ #include -#include +#include #include "gailcellparent.h" GType diff --git a/modules/other/gail/gailcheckmenuitem.c b/modules/other/gail/gailcheckmenuitem.c index 362562d4c..8befef914 100644 --- a/modules/other/gail/gailcheckmenuitem.c +++ b/modules/other/gail/gailcheckmenuitem.c @@ -20,7 +20,6 @@ #include #include -#include #include "gailcheckmenuitem.h" #include "gailchecksubmenuitem.h" diff --git a/modules/other/gail/gailcheckmenuitem.h b/modules/other/gail/gailcheckmenuitem.h index 5821ce77c..e78d38fb3 100644 --- a/modules/other/gail/gailcheckmenuitem.h +++ b/modules/other/gail/gailcheckmenuitem.h @@ -20,7 +20,6 @@ #ifndef __GAIL_CHECK_MENU_ITEM_H__ #define __GAIL_CHECK_MENU_ITEM_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailchecksubmenuitem.h b/modules/other/gail/gailchecksubmenuitem.h index f46e66ff1..c77bd663c 100644 --- a/modules/other/gail/gailchecksubmenuitem.h +++ b/modules/other/gail/gailchecksubmenuitem.h @@ -20,7 +20,6 @@ #ifndef __GAIL_CHECK_SUB_MENU_ITEM_H__ #define __GAIL_CHECK_SUB_MENU_ITEM_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailclist.h b/modules/other/gail/gailclist.h index f51104ea2..44eba4d17 100644 --- a/modules/other/gail/gailclist.h +++ b/modules/other/gail/gailclist.h @@ -20,7 +20,6 @@ #ifndef __GAIL_CLIST_H__ #define __GAIL_CLIST_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailcombo.h b/modules/other/gail/gailcombo.h index 3acc74b07..e7155e87d 100644 --- a/modules/other/gail/gailcombo.h +++ b/modules/other/gail/gailcombo.h @@ -20,7 +20,6 @@ #ifndef __GAIL_COMBO_H__ #define __GAIL_COMBO_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailcombobox.h b/modules/other/gail/gailcombobox.h index b34271590..be8eae99e 100644 --- a/modules/other/gail/gailcombobox.h +++ b/modules/other/gail/gailcombobox.h @@ -20,7 +20,6 @@ #ifndef __GAIL_COMBO_BOX_H__ #define __GAIL_COMBO_BOX_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailcontainer.h b/modules/other/gail/gailcontainer.h index 3ad738193..58adc88eb 100644 --- a/modules/other/gail/gailcontainer.h +++ b/modules/other/gail/gailcontainer.h @@ -20,7 +20,6 @@ #ifndef __GAIL_CONTAINER_H__ #define __GAIL_CONTAINER_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailentry.h b/modules/other/gail/gailentry.h index 150025e50..4387730c5 100644 --- a/modules/other/gail/gailentry.h +++ b/modules/other/gail/gailentry.h @@ -20,7 +20,6 @@ #ifndef __GAIL_ENTRY_H__ #define __GAIL_ENTRY_H__ -#include #include #include diff --git a/modules/other/gail/gailexpander.h b/modules/other/gail/gailexpander.h index 721a115a2..0e958b5f7 100644 --- a/modules/other/gail/gailexpander.h +++ b/modules/other/gail/gailexpander.h @@ -20,7 +20,6 @@ #ifndef __GAIL_EXPANDER_H__ #define __GAIL_EXPANDER_H__ -#include #include #include diff --git a/modules/other/gail/gailframe.h b/modules/other/gail/gailframe.h index 49f2b55d0..4c832ed53 100644 --- a/modules/other/gail/gailframe.h +++ b/modules/other/gail/gailframe.h @@ -20,7 +20,6 @@ #ifndef __GAIL_FRAME_H__ #define __GAIL_FRAME_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailimage.h b/modules/other/gail/gailimage.h index 9feadd44f..d3d2b523c 100644 --- a/modules/other/gail/gailimage.h +++ b/modules/other/gail/gailimage.h @@ -20,7 +20,6 @@ #ifndef __GAIL_IMAGE_H__ #define __GAIL_IMAGE_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailimagecell.h b/modules/other/gail/gailimagecell.h index d6f3ebc2c..f31780132 100644 --- a/modules/other/gail/gailimagecell.h +++ b/modules/other/gail/gailimagecell.h @@ -31,7 +31,7 @@ G_BEGIN_DECLS #define GAIL_IS_IMAGE_CELL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GAIL_TYPE_IMAGE_CELL)) #define GAIL_IS_IMAGE_CELL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GAIL_TYPE_IMAGE_CELL))78 #define GAIL_IMAGE_CELL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GAIL_TYPE_IMAGE_CELL, GailImageCellClass)) - + typedef struct _GailImageCell GailImageCell; typedef struct _GailImageCellClass GailImageCellClass; diff --git a/modules/other/gail/gailitem.h b/modules/other/gail/gailitem.h index 08b0eb647..c356279a2 100644 --- a/modules/other/gail/gailitem.h +++ b/modules/other/gail/gailitem.h @@ -20,7 +20,6 @@ #ifndef __GAIL_ITEM_H__ #define __GAIL_ITEM_H__ -#include #include #include diff --git a/modules/other/gail/gaillabel.h b/modules/other/gail/gaillabel.h index 24e2af7f7..1706aa5f3 100644 --- a/modules/other/gail/gaillabel.h +++ b/modules/other/gail/gaillabel.h @@ -20,7 +20,6 @@ #ifndef __GAIL_LABEL_H__ #define __GAIL_LABEL_H__ -#include #include #include diff --git a/modules/other/gail/gaillist.h b/modules/other/gail/gaillist.h index d2e2ce5bd..e33e87cbc 100644 --- a/modules/other/gail/gaillist.h +++ b/modules/other/gail/gaillist.h @@ -20,7 +20,6 @@ #ifndef __GAIL_LIST_H__ #define __GAIL_LIST_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailmenu.c b/modules/other/gail/gailmenu.c index 57de76d68..32de2905f 100644 --- a/modules/other/gail/gailmenu.c +++ b/modules/other/gail/gailmenu.c @@ -19,10 +19,6 @@ #include -#include -#include -#include -#include #include "gailmenu.h" static void gail_menu_class_init (GailMenuClass *klass); diff --git a/modules/other/gail/gailmenu.h b/modules/other/gail/gailmenu.h index f25aae542..7efed5e7f 100644 --- a/modules/other/gail/gailmenu.h +++ b/modules/other/gail/gailmenu.h @@ -20,7 +20,6 @@ #ifndef __GAIL_MENU_H__ #define __GAIL_MENU_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailmenuitem.h b/modules/other/gail/gailmenuitem.h index fd011beba..5f83db752 100644 --- a/modules/other/gail/gailmenuitem.h +++ b/modules/other/gail/gailmenuitem.h @@ -20,7 +20,6 @@ #ifndef __GAIL_MENU_ITEM_H__ #define __GAIL_MENU_ITEM_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailmenushell.h b/modules/other/gail/gailmenushell.h index 17b32c6c0..53e39f67a 100644 --- a/modules/other/gail/gailmenushell.h +++ b/modules/other/gail/gailmenushell.h @@ -20,7 +20,6 @@ #ifndef __GAIL_MENU_SHELL_H__ #define __GAIL_MENU_SHELL_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailnotebook.h b/modules/other/gail/gailnotebook.h index db6ebe276..36cd4c675 100644 --- a/modules/other/gail/gailnotebook.h +++ b/modules/other/gail/gailnotebook.h @@ -20,7 +20,6 @@ #ifndef __GAIL_NOTEBOOK_H__ #define __GAIL_NOTEBOOK_H__ -#include #include G_BEGIN_DECLS @@ -38,7 +37,7 @@ typedef struct _GailNotebookClass GailNotebookClass; struct _GailNotebook { GailContainer parent; - + /* * page_cache maintains a list of pre-ref'd Notebook Pages. * This cache is queried by gail_notebook_ref_child(). diff --git a/modules/other/gail/gailnotebookpage.h b/modules/other/gail/gailnotebookpage.h index 9210c65e0..38e2acfb8 100644 --- a/modules/other/gail/gailnotebookpage.h +++ b/modules/other/gail/gailnotebookpage.h @@ -20,8 +20,6 @@ #ifndef __GAIL_NOTEBOOK_PAGE_H__ #define __GAIL_NOTEBOOK_PAGE_H__ -#include -#include #include #include diff --git a/modules/other/gail/gailoptionmenu.h b/modules/other/gail/gailoptionmenu.h index 608ec26af..1939a9aae 100644 --- a/modules/other/gail/gailoptionmenu.h +++ b/modules/other/gail/gailoptionmenu.h @@ -20,7 +20,6 @@ #ifndef __GAIL_OPTION_MENU_H__ #define __GAIL_OPTION_MENU_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailpaned.h b/modules/other/gail/gailpaned.h index 250e890dc..bb4412f00 100644 --- a/modules/other/gail/gailpaned.h +++ b/modules/other/gail/gailpaned.h @@ -20,7 +20,6 @@ #ifndef __GAIL_PANED_H__ #define __GAIL_PANED_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailpixmap.h b/modules/other/gail/gailpixmap.h index 8a4df448d..41cdcd8f0 100644 --- a/modules/other/gail/gailpixmap.h +++ b/modules/other/gail/gailpixmap.h @@ -20,7 +20,6 @@ #ifndef __GAIL_PIXMAP_H__ #define __GAIL_PIXMAP_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailprogressbar.h b/modules/other/gail/gailprogressbar.h index 27b578a1f..37e096a6d 100644 --- a/modules/other/gail/gailprogressbar.h +++ b/modules/other/gail/gailprogressbar.h @@ -20,7 +20,6 @@ #ifndef __GAIL_PROGRESS_BAR_H__ #define __GAIL_PROGRESS_BAR_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailradiobutton.h b/modules/other/gail/gailradiobutton.h index 938c2830b..0a4fe2154 100644 --- a/modules/other/gail/gailradiobutton.h +++ b/modules/other/gail/gailradiobutton.h @@ -20,7 +20,6 @@ #ifndef __GAIL_RADIO_BUTTON_H__ #define __GAIL_RADIO_BUTTON_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailradiomenuitem.h b/modules/other/gail/gailradiomenuitem.h index 332d81f82..8dfa6880e 100644 --- a/modules/other/gail/gailradiomenuitem.h +++ b/modules/other/gail/gailradiomenuitem.h @@ -20,7 +20,6 @@ #ifndef __GAIL_RADIO_MENU_ITEM_H__ #define __GAIL_RADIO_MENU_ITEM_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailradiosubmenuitem.h b/modules/other/gail/gailradiosubmenuitem.h index 5bcf168b4..2433a3ba0 100644 --- a/modules/other/gail/gailradiosubmenuitem.h +++ b/modules/other/gail/gailradiosubmenuitem.h @@ -20,7 +20,6 @@ #ifndef __GAIL_RADIO_SUB_MENU_ITEM_H__ #define __GAIL_RADIO_SUB_MENU_ITEM_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailrange.h b/modules/other/gail/gailrange.h index 5e6bc0de1..7761265cd 100644 --- a/modules/other/gail/gailrange.h +++ b/modules/other/gail/gailrange.h @@ -20,7 +20,6 @@ #ifndef __GAIL_RANGE_H__ #define __GAIL_RANGE_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailscale.h b/modules/other/gail/gailscale.h index b670a42bf..fd0252f1c 100644 --- a/modules/other/gail/gailscale.h +++ b/modules/other/gail/gailscale.h @@ -20,7 +20,6 @@ #ifndef __GAIL_SCALE_H__ #define __GAIL_SCALE_H__ -#include #include #include diff --git a/modules/other/gail/gailscrollbar.h b/modules/other/gail/gailscrollbar.h index 37830e62e..bfcf1758a 100644 --- a/modules/other/gail/gailscrollbar.h +++ b/modules/other/gail/gailscrollbar.h @@ -20,7 +20,6 @@ #ifndef __GAIL_SCROLLBAR_H__ #define __GAIL_SCROLLBAR_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailscrolledwindow.h b/modules/other/gail/gailscrolledwindow.h index 5d8b7c078..f7c456dda 100644 --- a/modules/other/gail/gailscrolledwindow.h +++ b/modules/other/gail/gailscrolledwindow.h @@ -20,7 +20,6 @@ #ifndef __GAIL_SCROLLED_WINDOW_H__ #define __GAIL_SCROLLED_WINDOW_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailseparator.h b/modules/other/gail/gailseparator.h index 46a788254..67db371ba 100644 --- a/modules/other/gail/gailseparator.h +++ b/modules/other/gail/gailseparator.h @@ -20,7 +20,6 @@ #ifndef __GAIL_SEPARATOR_H__ #define __GAIL_SEPARATOR_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailspinbutton.h b/modules/other/gail/gailspinbutton.h index 3dac8d18e..fecda124a 100644 --- a/modules/other/gail/gailspinbutton.h +++ b/modules/other/gail/gailspinbutton.h @@ -20,7 +20,6 @@ #ifndef __GAIL_SPIN_BUTTON_H__ #define __GAIL_SPIN_BUTTON_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailstatusbar.h b/modules/other/gail/gailstatusbar.h index 607873136..c8f2d9c9d 100644 --- a/modules/other/gail/gailstatusbar.h +++ b/modules/other/gail/gailstatusbar.h @@ -20,7 +20,6 @@ #ifndef __GAIL_STATUSBAR_H__ #define __GAIL_STATUSBAR_H__ -#include #include #include diff --git a/modules/other/gail/gailsubmenuitem.h b/modules/other/gail/gailsubmenuitem.h index 963839e79..64cd66cb2 100644 --- a/modules/other/gail/gailsubmenuitem.h +++ b/modules/other/gail/gailsubmenuitem.h @@ -20,7 +20,6 @@ #ifndef __GAIL_SUB_MENU_ITEM_H__ #define __GAIL_SUB_MENU_ITEM_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailtextview.h b/modules/other/gail/gailtextview.h index 273694dff..5a88aba23 100644 --- a/modules/other/gail/gailtextview.h +++ b/modules/other/gail/gailtextview.h @@ -20,7 +20,6 @@ #ifndef __GAIL_TEXT_VIEW_H__ #define __GAIL_TEXT_VIEW_H__ -#include #include #include diff --git a/modules/other/gail/gailtogglebutton.h b/modules/other/gail/gailtogglebutton.h index aa93210bd..6c1638282 100644 --- a/modules/other/gail/gailtogglebutton.h +++ b/modules/other/gail/gailtogglebutton.h @@ -20,7 +20,6 @@ #ifndef __GAIL_TOGGLE_BUTTON_H__ #define __GAIL_TOGGLE_BUTTON_H__ -#include #include G_BEGIN_DECLS diff --git a/modules/other/gail/gailtreeview.c b/modules/other/gail/gailtreeview.c index a380dbf65..af9c05834 100644 --- a/modules/other/gail/gailtreeview.c +++ b/modules/other/gail/gailtreeview.c @@ -24,7 +24,6 @@ #ifdef GDK_WINDOWING_X11 #include #endif -#include #include "gailtreeview.h" #include "gailrenderercell.h" #include "gailbooleancell.h" diff --git a/modules/other/gail/gailwidget.h b/modules/other/gail/gailwidget.h index bf046872f..ddc8f3a82 100644 --- a/modules/other/gail/gailwidget.h +++ b/modules/other/gail/gailwidget.h @@ -20,7 +20,7 @@ #ifndef __GAIL_WIDGET_H__ #define __GAIL_WIDGET_H__ -#include +#include G_BEGIN_DECLS diff --git a/modules/other/gail/gailwindow.h b/modules/other/gail/gailwindow.h index 923554add..b417ae89d 100644 --- a/modules/other/gail/gailwindow.h +++ b/modules/other/gail/gailwindow.h @@ -20,7 +20,6 @@ #ifndef __GAIL_WINDOW_H__ #define __GAIL_WINDOW_H__ -#include #include G_BEGIN_DECLS