evince r3094 - in trunk: . shell
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3094 - in trunk: . shell
- Date: Sun, 3 Aug 2008 18:19:11 +0000 (UTC)
Author: wbolster
Date: Sun Aug 3 18:19:11 2008
New Revision: 3094
URL: http://svn.gnome.org/viewvc/evince?rev=3094&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/shell/eggfindbar.c
trunk/shell/ev-application.c
trunk/shell/ev-message-area.c
trunk/shell/ev-navigation-action.c
trunk/shell/ev-open-recent-action.c
trunk/shell/ev-page-action-widget.c
trunk/shell/ev-page-action.c
trunk/shell/ev-password-view.c
trunk/shell/ev-properties-dialog.c
trunk/shell/ev-properties-fonts.c
trunk/shell/ev-sidebar-attachments.c
trunk/shell/ev-sidebar-page.c
trunk/shell/ev-sidebar-thumbnails.c
trunk/shell/ev-stock-icons.c
trunk/shell/ev-tooltip.c
trunk/shell/ev-view.c
trunk/shell/ev-window.c
trunk/shell/main.c
Modified: trunk/shell/eggfindbar.c
==============================================================================
--- trunk/shell/eggfindbar.c (original)
+++ trunk/shell/eggfindbar.c Sun Aug 3 18:19:11 2008
@@ -21,20 +21,8 @@
#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>
Modified: trunk/shell/ev-application.c
==============================================================================
--- trunk/shell/ev-application.c (original)
+++ trunk/shell/ev-application.c Sun Aug 3 18:19:11 2008
@@ -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>
Modified: trunk/shell/ev-message-area.c
==============================================================================
--- trunk/shell/ev-message-area.c (original)
+++ trunk/shell/ev-message-area.c Sun Aug 3 18:19:11 2008
@@ -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"
Modified: trunk/shell/ev-navigation-action.c
==============================================================================
--- trunk/shell/ev-navigation-action.c (original)
+++ trunk/shell/ev-navigation-action.c Sun Aug 3 18:19:11 2008
@@ -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,
Modified: trunk/shell/ev-open-recent-action.c
==============================================================================
--- trunk/shell/ev-open-recent-action.c (original)
+++ trunk/shell/ev-open-recent-action.c Sun Aug 3 18:19:11 2008
@@ -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"
Modified: trunk/shell/ev-page-action-widget.c
==============================================================================
--- trunk/shell/ev-page-action-widget.c (original)
+++ trunk/shell/ev-page-action-widget.c Sun Aug 3 18:19:11 2008
@@ -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);
Modified: trunk/shell/ev-page-action.c
==============================================================================
--- trunk/shell/ev-page-action.c (original)
+++ trunk/shell/ev-page-action.c Sun Aug 3 18:19:11 2008
@@ -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;
Modified: trunk/shell/ev-password-view.c
==============================================================================
--- trunk/shell/ev-password-view.c (original)
+++ trunk/shell/ev-password-view.c Sun Aug 3 18:19:11 2008
@@ -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,
Modified: trunk/shell/ev-properties-dialog.c
==============================================================================
--- trunk/shell/ev-properties-dialog.c (original)
+++ trunk/shell/ev-properties-dialog.c Sun Aug 3 18:19:11 2008
@@ -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;
Modified: trunk/shell/ev-properties-fonts.c
==============================================================================
--- trunk/shell/ev-properties-fonts.c (original)
+++ trunk/shell/ev-properties-fonts.c Sun Aug 3 18:19:11 2008
@@ -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;
Modified: trunk/shell/ev-sidebar-attachments.c
==============================================================================
--- trunk/shell/ev-sidebar-attachments.c (original)
+++ trunk/shell/ev-sidebar-attachments.c Sun Aug 3 18:19:11 2008
@@ -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"
Modified: trunk/shell/ev-sidebar-page.c
==============================================================================
--- trunk/shell/ev-sidebar-page.c (original)
+++ trunk/shell/ev-sidebar-page.c Sun Aug 3 18:19:11 2008
@@ -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
Modified: trunk/shell/ev-sidebar-thumbnails.c
==============================================================================
--- trunk/shell/ev-sidebar-thumbnails.c (original)
+++ trunk/shell/ev-sidebar-thumbnails.c Sun Aug 3 18:19:11 2008
@@ -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"
Modified: trunk/shell/ev-stock-icons.c
==============================================================================
--- trunk/shell/ev-stock-icons.c (original)
+++ trunk/shell/ev-stock-icons.c Sun Aug 3 18:19:11 2008
@@ -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;
Modified: trunk/shell/ev-tooltip.c
==============================================================================
--- trunk/shell/ev-tooltip.c (original)
+++ trunk/shell/ev-tooltip.c Sun Aug 3 18:19:11 2008
@@ -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
Modified: trunk/shell/ev-view.c
==============================================================================
--- trunk/shell/ev-view.c (original)
+++ trunk/shell/ev-view.c Sun Aug 3 18:19:11 2008
@@ -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"
Modified: trunk/shell/ev-window.c
==============================================================================
--- trunk/shell/ev-window.c (original)
+++ trunk/shell/ev-window.c Sun Aug 3 18:19:11 2008
@@ -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
Modified: trunk/shell/main.c
==============================================================================
--- trunk/shell/main.c (original)
+++ trunk/shell/main.c Sun Aug 3 18:19:11 2008
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]