From 3e7d5f82187c7fc0d8515c1706aeab0bd0b44dfd Mon Sep 17 00:00:00 2001 From: Wouter Bolsterlee Date: Sun, 3 Aug 2008 18:19:11 +0000 Subject: [PATCH 1/1] Cleanup many #include statements: reorder so that a generic-to-specific 2008-08-03 Wouter Bolsterlee * shell/eggfindbar.c: * shell/ev-application.c: * shell/ev-message-area.c: * shell/ev-navigation-action.c: * shell/ev-open-recent-action.c: * shell/ev-page-action-widget.c: * shell/ev-page-action.c: * shell/ev-password-view.c: * shell/ev-properties-dialog.c: * shell/ev-properties-fonts.c: * shell/ev-sidebar-attachments.c: * shell/ev-sidebar-page.c: * shell/ev-sidebar-thumbnails.c: * shell/ev-stock-icons.c: * shell/ev-tooltip.c: * shell/ev-view.c: * shell/ev-window.c: * shell/main.c: Cleanup many #include statements: reorder so that a generic-to-specific order is used, use single gtk.h includes, and some other cleanups. svn path=/trunk/; revision=3094 --- ChangeLog | 25 +++++++++++++++++++++++++ shell/eggfindbar.c | 14 +------------- shell/ev-application.c | 21 +++++++++------------ shell/ev-message-area.c | 8 ++------ shell/ev-navigation-action.c | 12 +++--------- shell/ev-open-recent-action.c | 3 ++- shell/ev-page-action-widget.c | 11 ++++------- shell/ev-page-action.c | 15 +++++++-------- shell/ev-password-view.c | 5 +++-- shell/ev-properties-dialog.c | 18 +++++++----------- shell/ev-properties-fonts.c | 8 ++++---- shell/ev-sidebar-attachments.c | 2 +- shell/ev-sidebar-page.c | 3 ++- shell/ev-sidebar-thumbnails.c | 2 +- shell/ev-stock-icons.c | 5 ++--- shell/ev-tooltip.c | 4 ++-- shell/ev-view.c | 8 +++----- shell/ev-window.c | 26 +++++++++++++------------- shell/main.c | 17 ++++++++--------- 19 files changed, 99 insertions(+), 108 deletions(-) diff --git a/ChangeLog b/ChangeLog index 37f53932..78d3fde4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,28 @@ +2008-08-03 Wouter Bolsterlee + + * shell/eggfindbar.c: + * shell/ev-application.c: + * shell/ev-message-area.c: + * shell/ev-navigation-action.c: + * shell/ev-open-recent-action.c: + * shell/ev-page-action-widget.c: + * shell/ev-page-action.c: + * shell/ev-password-view.c: + * shell/ev-properties-dialog.c: + * shell/ev-properties-fonts.c: + * shell/ev-sidebar-attachments.c: + * shell/ev-sidebar-page.c: + * shell/ev-sidebar-thumbnails.c: + * shell/ev-stock-icons.c: + * shell/ev-tooltip.c: + * shell/ev-view.c: + * shell/ev-window.c: + * shell/main.c: + + Cleanup many #include statements: reorder so that a + generic-to-specific order is used, use single gtk.h + includes, and some other cleanups. + 2008-08-03 Carlos Garcia Campos * shell/ev-jobs.h: diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c index 62adea9d..3c8cb611 100644 --- a/shell/eggfindbar.c +++ b/shell/eggfindbar.c @@ -21,20 +21,8 @@ Boston, MA 02111-1307, USA. #include "eggfindbar.h" #include -#include -#include -#include -#include -#include -#include +#include #include -#include -#include -#include -#include -#include -#include -#include #include diff --git a/shell/ev-application.c b/shell/ev-application.c index 7ad13820..bdcdfcd6 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -21,6 +21,15 @@ */ #include + +#include +#include +#include + +#if WITH_GNOME +#include +#endif + #include "ev-application.h" #include "ev-utils.h" #include "ev-file-helpers.h" @@ -30,18 +39,6 @@ #endif /* ENABLE_DBUS */ #include "totem-scrsaver.h" -#include -#include -#include -#include -#include -#include -#include - -#if WITH_GNOME -#include -#endif - #ifdef ENABLE_DBUS #include "ev-application-service.h" #include diff --git a/shell/ev-message-area.c b/shell/ev-message-area.c index 845f6fd2..70c76a58 100644 --- a/shell/ev-message-area.c +++ b/shell/ev-message-area.c @@ -22,12 +22,8 @@ */ #include -#include -#include -#include -#include -#include -#include + +#include #include "ev-message-area.h" diff --git a/shell/ev-navigation-action.c b/shell/ev-navigation-action.c index 6a5e3a52..5670a04e 100644 --- a/shell/ev-navigation-action.c +++ b/shell/ev-navigation-action.c @@ -20,18 +20,12 @@ #include "config.h" +#include +#include + #include "ev-navigation-action.h" #include "ev-navigation-action-widget.h" -#include -#include -#include -#include -#include -#include -#include -#include - enum { WIDGET_ACTIVATE_LINK, diff --git a/shell/ev-open-recent-action.c b/shell/ev-open-recent-action.c index e021c6b2..0a4f3095 100644 --- a/shell/ev-open-recent-action.c +++ b/shell/ev-open-recent-action.c @@ -18,8 +18,9 @@ */ #include -#include + #include +#include #include "ev-open-recent-action.h" diff --git a/shell/ev-page-action-widget.c b/shell/ev-page-action-widget.c index 2bef853d..482615a4 100644 --- a/shell/ev-page-action-widget.c +++ b/shell/ev-page-action-widget.c @@ -20,6 +20,10 @@ #include "config.h" +#include +#include +#include + #include "ev-page-action.h" #include "ev-page-cache.h" #include "ev-window.h" @@ -27,13 +31,6 @@ #include "ev-page-action-widget.h" #include "ev-marshal.h" -#include -#include -#include -#include -#include -#include - /* Widget we pass back */ static void ev_page_action_widget_init (EvPageActionWidget *action_widget); static void ev_page_action_widget_class_init (EvPageActionWidgetClass *action_widget); diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c index 39ce3ec5..1d4151ff 100644 --- a/shell/ev-page-action.c +++ b/shell/ev-page-action.c @@ -18,7 +18,14 @@ * */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif + +#include +#include +#include +#include #include "ev-page-action.h" #include "ev-page-cache.h" @@ -27,14 +34,6 @@ #include "ev-page-action-widget.h" #include "ev-marshal.h" -#include -#include -#include -#include -#include -#include -#include - struct _EvPageActionPrivate { EvPageCache *page_cache; diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c index fc52fa7b..b53300d4 100644 --- a/shell/ev-password-view.c +++ b/shell/ev-password-view.c @@ -22,10 +22,11 @@ #include "config.h" #endif -#include #include -#include "ev-password-view.h" +#include + #include "ev-marshal.h" +#include "ev-password-view.h" enum { UNLOCK, diff --git a/shell/ev-properties-dialog.c b/shell/ev-properties-dialog.c index 16494e16..24bd3d62 100644 --- a/shell/ev-properties-dialog.c +++ b/shell/ev-properties-dialog.c @@ -22,18 +22,14 @@ #include "config.h" #endif -#include "ev-properties-view.h" -#include "ev-properties-fonts.h" -#include "ev-properties-dialog.h" -#include "ev-page-cache.h" -#include "ev-document-fonts.h" - #include -#include -#include -#include -#include -#include +#include + +#include "ev-document-fonts.h" +#include "ev-page-cache.h" +#include "ev-properties-dialog.h" +#include "ev-properties-fonts.h" +#include "ev-properties-view.h" struct _EvPropertiesDialog { GtkDialog base_instance; diff --git a/shell/ev-properties-fonts.c b/shell/ev-properties-fonts.c index 385cda10..bb634ef3 100644 --- a/shell/ev-properties-fonts.c +++ b/shell/ev-properties-fonts.c @@ -22,15 +22,15 @@ #include "config.h" #endif +#include +#include +#include + #include "ev-properties-fonts.h" #include "ev-document-fonts.h" #include "ev-jobs.h" #include "ev-job-scheduler.h" -#include -#include -#include - struct _EvPropertiesFonts { GtkVBox base_instance; diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c index 2aeadd69..11305334 100644 --- a/shell/ev-sidebar-attachments.c +++ b/shell/ev-sidebar-attachments.c @@ -25,10 +25,10 @@ #include "config.h" #endif +#include #include #include #include -#include #include "ev-file-helpers.h" #include "ev-sidebar-attachments.h" diff --git a/shell/ev-sidebar-page.c b/shell/ev-sidebar-page.c index 8e6a33d2..6043ec5c 100644 --- a/shell/ev-sidebar-page.c +++ b/shell/ev-sidebar-page.c @@ -22,9 +22,10 @@ #include "config.h" #endif -#include "ev-sidebar-page.h" #include +#include "ev-sidebar-page.h" + static void ev_sidebar_page_iface_init (gpointer iface); GType diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index 7fe62f16..690c7de6 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -27,8 +27,8 @@ #endif #include -#include #include +#include #include "ev-sidebar-page.h" #include "ev-sidebar-thumbnails.h" diff --git a/shell/ev-stock-icons.c b/shell/ev-stock-icons.c index ce15dc65..09536ca7 100644 --- a/shell/ev-stock-icons.c +++ b/shell/ev-stock-icons.c @@ -24,9 +24,8 @@ #include #include "ev-stock-icons.h" -#include -#include -#include +#include +#include typedef struct { char *stock_id; diff --git a/shell/ev-tooltip.c b/shell/ev-tooltip.c index 9f0cf65b..b23a6c99 100644 --- a/shell/ev-tooltip.c +++ b/shell/ev-tooltip.c @@ -24,9 +24,9 @@ #include "config.h" #endif -#include "ev-tooltip.h" +#include -#include +#include "ev-tooltip.h" #define DEFAULT_DELAY 500 #define STICKY_DELAY 500 diff --git a/shell/ev-view.c b/shell/ev-view.c index 49b604b0..1def7fb7 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -18,15 +18,13 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */ -#include +#include "config.h" + #include #include #include -#include #include -#include -#include -#include +#include #include #include "ev-marshal.h" diff --git a/shell/ev-window.c b/shell/ev-window.c index 4c312ea4..5768b7ca 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -28,6 +28,18 @@ #include "config.h" #endif +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + #include "ev-window.h" #include "ev-window-title.h" #include "ev-navigation-action.h" @@ -68,27 +80,15 @@ #include "ev-message-area.h" #include "ev-mount-operation.h" #include "ev-file-monitor.h" + #ifdef ENABLE_DBUS #include "ev-media-player-keys.h" #endif /* ENABLE_DBUS */ -#include - #ifdef ENABLE_PDF #include #endif -#include -#include -#include -#include -#include - -#include -#include -#include -#include - typedef enum { PAGE_MODE_DOCUMENT, PAGE_MODE_PASSWORD diff --git a/shell/main.c b/shell/main.c index eb5c08ab..b0c26caa 100644 --- a/shell/main.c +++ b/shell/main.c @@ -19,15 +19,11 @@ #include "config.h" -#include "ev-application.h" -#include "ev-metadata-manager.h" -#include "ev-debug.h" - -#include -#include -#include #include #include +#include +#include +#include #if WITH_GNOME #include @@ -40,9 +36,12 @@ #include #endif -#include "ev-stock-icons.h" -#include "ev-file-helpers.h" +#include "ev-application.h" #include "ev-backends-manager.h" +#include "ev-debug.h" +#include "ev-file-helpers.h" +#include "ev-metadata-manager.h" +#include "ev-stock-icons.h" static gchar *ev_page_label; static gchar *ev_find_string; -- 2.43.5