Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog25
-rw-r--r--shell/eggfindbar.c14
-rw-r--r--shell/ev-application.c21
-rw-r--r--shell/ev-message-area.c8
-rw-r--r--shell/ev-navigation-action.c12
-rw-r--r--shell/ev-open-recent-action.c3
-rw-r--r--shell/ev-page-action-widget.c11
-rw-r--r--shell/ev-page-action.c15
-rw-r--r--shell/ev-password-view.c5
-rw-r--r--shell/ev-properties-dialog.c18
-rw-r--r--shell/ev-properties-fonts.c8
-rw-r--r--shell/ev-sidebar-attachments.c2
-rw-r--r--shell/ev-sidebar-page.c3
-rw-r--r--shell/ev-sidebar-thumbnails.c2
-rw-r--r--shell/ev-stock-icons.c5
-rw-r--r--shell/ev-tooltip.c4
-rw-r--r--shell/ev-view.c8
-rw-r--r--shell/ev-window.c26
-rw-r--r--shell/main.c17
19 files changed, 99 insertions, 108 deletions
diff --git a/ChangeLog b/ChangeLog
index 37f5393..78d3fde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,28 @@
+2008-08-03 Wouter Bolsterlee <wbolster@svn.gnome.org>
+
+ * 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 <carlosgc@gnome.org>
* shell/ev-jobs.h:
diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c
index 62adea9..3c8cb61 100644
--- a/shell/eggfindbar.c
+++ b/shell/eggfindbar.c
@@ -21,20 +21,8 @@ Boston, MA 02111-1307, USA.
#include "eggfindbar.h"
#include <glib/gi18n.h>
-#include <gtk/gtkhbox.h>
-#include <gtk/gtkentry.h>
-#include <gtk/gtkcheckbutton.h>
-#include <gtk/gtkvseparator.h>
-#include <gtk/gtkstock.h>
-#include <gtk/gtklabel.h>
+#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
-#include <gtk/gtkbindings.h>
-#include <gtk/gtkalignment.h>
-#include <gtk/gtktoolbutton.h>
-#include <gtk/gtkseparatortoolitem.h>
-#include <gtk/gtkarrow.h>
-#include <gtk/gtktoggletoolbutton.h>
-#include <gtk/gtkversion.h>
#include <string.h>
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 7ad1382..bdcdfcd 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -21,6 +21,15 @@
*/
#include <config.h>
+
+#include <glib.h>
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
+
+#if WITH_GNOME
+#include <libgnomeui/gnome-client.h>
+#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 <glib.h>
-#include <glib/gi18n.h>
-#include <glib-object.h>
-#include <gtk/gtkfilechooserdialog.h>
-#include <gtk/gtkstock.h>
-#include <gtk/gtkwidget.h>
-#include <gtk/gtkmain.h>
-
-#if WITH_GNOME
-#include <libgnomeui/gnome-client.h>
-#endif
-
#ifdef ENABLE_DBUS
#include "ev-application-service.h"
#include <dbus/dbus-glib-bindings.h>
diff --git a/shell/ev-message-area.c b/shell/ev-message-area.c
index 845f6fd..70c76a5 100644
--- a/shell/ev-message-area.c
+++ b/shell/ev-message-area.c
@@ -22,12 +22,8 @@
*/
#include <config.h>
-#include <gtk/gtkaccessible.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkhbox.h>
-#include <gtk/gtkvbox.h>
-#include <gtk/gtkimage.h>
-#include <gtk/gtkstock.h>
+
+#include <gtk/gtk.h>
#include "ev-message-area.h"
diff --git a/shell/ev-navigation-action.c b/shell/ev-navigation-action.c
index 6a5e3a5..5670a04 100644
--- a/shell/ev-navigation-action.c
+++ b/shell/ev-navigation-action.c
@@ -20,18 +20,12 @@
#include "config.h"
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
+
#include "ev-navigation-action.h"
#include "ev-navigation-action-widget.h"
-#include <gtk/gtklabel.h>
-#include <gtk/gtkimage.h>
-#include <gtk/gtkmenuitem.h>
-#include <gtk/gtkimagemenuitem.h>
-#include <gtk/gtkmenushell.h>
-#include <gtk/gtkmenu.h>
-#include <gtk/gtkmenutoolbutton.h>
-#include <glib/gi18n.h>
-
enum
{
WIDGET_ACTIVATE_LINK,
diff --git a/shell/ev-open-recent-action.c b/shell/ev-open-recent-action.c
index e021c6b..0a4f309 100644
--- a/shell/ev-open-recent-action.c
+++ b/shell/ev-open-recent-action.c
@@ -18,8 +18,9 @@
*/
#include <config.h>
-#include <gtk/gtk.h>
+
#include <glib/gi18n.h>
+#include <gtk/gtk.h>
#include "ev-open-recent-action.h"
diff --git a/shell/ev-page-action-widget.c b/shell/ev-page-action-widget.c
index 2bef853..482615a 100644
--- a/shell/ev-page-action-widget.c
+++ b/shell/ev-page-action-widget.c
@@ -20,6 +20,10 @@
#include "config.h"
+#include <string.h>
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
+
#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 <glib/gi18n.h>
-#include <gtk/gtkentry.h>
-#include <gtk/gtktoolitem.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkhbox.h>
-#include <string.h>
-
/* 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 39ce3ec..1d4151f 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 <string.h>
+#include <stdlib.h>
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
#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 <glib/gi18n.h>
-#include <gtk/gtkentry.h>
-#include <gtk/gtktoolitem.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkhbox.h>
-#include <string.h>
-#include <stdlib.h>
-
struct _EvPageActionPrivate
{
EvPageCache *page_cache;
diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c
index fc52fa7..b53300d 100644
--- a/shell/ev-password-view.c
+++ b/shell/ev-password-view.c
@@ -22,10 +22,11 @@
#include "config.h"
#endif
-#include <gtk/gtk.h>
#include <glib/gi18n.h>
-#include "ev-password-view.h"
+#include <gtk/gtk.h>
+
#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 16494e1..24bd3d6 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 <glib/gi18n.h>
-#include <gtk/gtkdialog.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtknotebook.h>
-#include <gtk/gtkstock.h>
-#include <gtk/gtkbox.h>
+#include <gtk/gtk.h>
+
+#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 385cda1..bb634ef 100644
--- a/shell/ev-properties-fonts.c
+++ b/shell/ev-properties-fonts.c
@@ -22,15 +22,15 @@
#include "config.h"
#endif
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
+#include <glade/glade.h>
+
#include "ev-properties-fonts.h"
#include "ev-document-fonts.h"
#include "ev-jobs.h"
#include "ev-job-scheduler.h"
-#include <glib/gi18n.h>
-#include <gtk/gtktreeview.h>
-#include <glade/glade.h>
-
struct _EvPropertiesFonts {
GtkVBox base_instance;
diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c
index 2aeadd6..1130533 100644
--- a/shell/ev-sidebar-attachments.c
+++ b/shell/ev-sidebar-attachments.c
@@ -25,10 +25,10 @@
#include "config.h"
#endif
+#include <string.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
-#include <string.h>
#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 8e6a33d..6043ec5 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 <gtk/gtk.h>
+#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 7fe62f1..690c7de 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -27,8 +27,8 @@
#endif
#include <string.h>
-#include <gtk/gtk.h>
#include <glib/gi18n.h>
+#include <gtk/gtk.h>
#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 ce15dc6..09536ca 100644
--- a/shell/ev-stock-icons.c
+++ b/shell/ev-stock-icons.c
@@ -24,9 +24,8 @@
#include <config.h>
#include "ev-stock-icons.h"
-#include <gtk/gtkiconfactory.h>
-#include <gtk/gtkstock.h>
-#include <gdk/gdkpixbuf.h>
+#include <gtk/gtk.h>
+#include <gdk/gdk.h>
typedef struct {
char *stock_id;
diff --git a/shell/ev-tooltip.c b/shell/ev-tooltip.c
index 9f0cf65..b23a6c9 100644
--- a/shell/ev-tooltip.c
+++ b/shell/ev-tooltip.c
@@ -24,9 +24,9 @@
#include "config.h"
#endif
-#include "ev-tooltip.h"
+#include <gtk/gtk.h>
-#include <gtk/gtklabel.h>
+#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 49b604b..1def7fb 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 <config.h>
+#include "config.h"
+
#include <stdlib.h>
#include <math.h>
#include <string.h>
-#include <gtk/gtkalignment.h>
#include <glib/gi18n.h>
-#include <gtk/gtkbindings.h>
-#include <gtk/gtkselection.h>
-#include <gtk/gtkclipboard.h>
+#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "ev-marshal.h"
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 4c312ea..5768b7c 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -28,6 +28,18 @@
#include "config.h"
#endif
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#include <glib/gstdio.h>
+#include <glib/gi18n.h>
+#include <gio/gio.h>
+#include <gtk/gtk.h>
+#include <gtk/gtkprintunixdialog.h>
+#include <gconf/gconf-client.h>
+
#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 <gtk/gtkprintunixdialog.h>
-
#ifdef ENABLE_PDF
#include <poppler.h>
#endif
-#include <glib/gstdio.h>
-#include <glib/gi18n.h>
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-#include <gconf/gconf-client.h>
-
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
typedef enum {
PAGE_MODE_DOCUMENT,
PAGE_MODE_PASSWORD
diff --git a/shell/main.c b/shell/main.c
index eb5c08a..b0c26ca 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 <glib/gi18n.h>
-#include <gdk/gdkx.h>
-#include <gtk/gtkmain.h>
#include <stdlib.h>
#include <string.h>
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
+#include <gdk/gdkx.h>
#if WITH_GNOME
#include <libgnome/gnome-program.h>
@@ -40,9 +36,12 @@
#include <dbus/dbus-glib-bindings.h>
#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;