diff --git a/backend/comics/comics-document.h b/backend/comics/comics-document.h index 227e71f3..31549beb 100644 --- a/backend/comics/comics-document.h +++ b/backend/comics/comics-document.h @@ -16,8 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __COMICS_DOCUMENT_H__ -#define __COMICS_DOCUMENT_H__ +#pragma once #include "ev-macros.h" #include "ev-document.h" @@ -36,5 +35,3 @@ EV_PUBLIC GType register_evince_backend (GTypeModule *module); G_END_DECLS - -#endif /* __COMICS_DOCUMENT_H__ */ diff --git a/backend/comics/ev-archive.h b/backend/comics/ev-archive.h index 53affa5f..0b84d82c 100644 --- a/backend/comics/ev-archive.h +++ b/backend/comics/ev-archive.h @@ -17,8 +17,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_ARCHIVE_H__ -#define __EV_ARCHIVE_H__ +#pragma once #include @@ -55,5 +54,3 @@ gssize ev_archive_read_data (EvArchive *archive, void ev_archive_reset (EvArchive *archive); G_END_DECLS - -#endif /* __EV_ARCHIVE_H__ */ diff --git a/backend/djvu/djvu-document-private.h b/backend/djvu/djvu-document-private.h index 07b27d98..41bc7ab4 100644 --- a/backend/djvu/djvu-document-private.h +++ b/backend/djvu/djvu-document-private.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __DJVU_DOCUMENT_INTERNAL_H__ -#define __DJVU_DOCUMENT_INTERNAL_H__ +#pragma once #include "djvu-document.h" @@ -47,5 +46,3 @@ int djvu_document_get_n_pages (EvDocument *document); void djvu_handle_events (DjvuDocument *djvu_document, int wait, GError **error); - -#endif /* __DJVU_DOCUMENT_INTERNAL_H__ */ diff --git a/backend/djvu/djvu-document.h b/backend/djvu/djvu-document.h index 6ba3a189..d9afa392 100644 --- a/backend/djvu/djvu-document.h +++ b/backend/djvu/djvu-document.h @@ -16,8 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __DJVU_DOCUMENT_H__ -#define __DJVU_DOCUMENT_H__ +#pragma once #include "ev-macros.h" #include "ev-document.h" @@ -36,5 +35,3 @@ EV_PUBLIC GType register_evince_backend (GTypeModule *module); G_END_DECLS - -#endif /* __DJVU_DOCUMENT_H__ */ diff --git a/backend/djvu/djvu-links.h b/backend/djvu/djvu-links.h index 6cacdd36..59e13cfc 100644 --- a/backend/djvu/djvu-links.h +++ b/backend/djvu/djvu-links.h @@ -16,8 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __DJVU_LINK_H__ -#define __DJVU_LINK_H__ +#pragma once #include "ev-document-links.h" #include "djvu-document.h" @@ -33,5 +32,3 @@ EvLinkDest *djvu_links_find_link_dest (EvDocumentLinks *document_links, gint djvu_links_find_link_page (EvDocumentLinks *document_links, const gchar *link_name); gboolean djvu_links_has_document_links (EvDocumentLinks *document_links); - -#endif /* __DJVU_LINK_H__ */ diff --git a/backend/djvu/djvu-text-page.h b/backend/djvu/djvu-text-page.h index 40cbfc20..45867a48 100644 --- a/backend/djvu/djvu-text-page.h +++ b/backend/djvu/djvu-text-page.h @@ -16,8 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __DJVU_TEXT_PAGE_H__ -#define __DJVU_TEXT_PAGE_H__ +#pragma once #include "ev-document.h" @@ -61,6 +60,3 @@ void djvu_text_page_search (DjvuTextPage *page, const char *text); DjvuTextPage *djvu_text_page_new (miniexp_t text); void djvu_text_page_free (DjvuTextPage *page); - -#endif /* __DJVU_TEXT_PAGE_H__ */ - diff --git a/backend/dvi/dvi-document.h b/backend/dvi/dvi-document.h index 4afd288b..204389ad 100644 --- a/backend/dvi/dvi-document.h +++ b/backend/dvi/dvi-document.h @@ -16,8 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __DVI_DOCUMENT_H__ -#define __DVI_DOCUMENT_H__ +#pragma once #include "ev-macros.h" #include "ev-document.h" @@ -36,5 +35,3 @@ EV_PUBLIC GType register_evince_backend (GTypeModule *module); G_END_DECLS - -#endif /* __DVI_DOCUMENT_H__ */ diff --git a/backend/pdf/ev-poppler.h b/backend/pdf/ev-poppler.h index 45d1a12d..77ade253 100644 --- a/backend/pdf/ev-poppler.h +++ b/backend/pdf/ev-poppler.h @@ -16,8 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __PDF_DOCUMENT_H__ -#define __PDF_DOCUMENT_H__ +#pragma once #include "ev-macros.h" #include "ev-document.h" @@ -37,5 +36,3 @@ EV_PUBLIC GType register_evince_backend (GTypeModule *module); G_END_DECLS - -#endif /* __PDF_DOCUMENT_H__ */ diff --git a/backend/ps/ev-spectre.h b/backend/ps/ev-spectre.h index 9ece5801..a05d8109 100644 --- a/backend/ps/ev-spectre.h +++ b/backend/ps/ev-spectre.h @@ -21,8 +21,7 @@ * Boston, MA 02110-1301, USA. */ -#ifndef __PS_DOCUMENT_H__ -#define __PS_DOCUMENT_H__ +#pragma once #include @@ -46,5 +45,3 @@ EV_PUBLIC GType register_evince_backend (GTypeModule *module); G_END_DECLS - -#endif /* __PS_DOCUMENT_H__ */ diff --git a/backend/tiff/tiff-document.h b/backend/tiff/tiff-document.h index 6e9cc0fc..9c8a56ac 100644 --- a/backend/tiff/tiff-document.h +++ b/backend/tiff/tiff-document.h @@ -17,8 +17,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __TIFF_DOCUMENT_H__ -#define __TIFF_DOCUMENT_H__ +#pragma once #include "ev-macros.h" #include "ev-document.h" @@ -37,5 +36,3 @@ EV_PUBLIC GType register_evince_backend (GTypeModule *module); G_END_DECLS - -#endif /* __TIFF_DOCUMENT_H__ */ diff --git a/backend/tiff/tiff2ps.h b/backend/tiff/tiff2ps.h index 575b881b..e9be84b6 100644 --- a/backend/tiff/tiff2ps.h +++ b/backend/tiff/tiff2ps.h @@ -16,6 +16,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #include #include #include "tiffio.h" diff --git a/backend/xps/xps-document.h b/backend/xps/xps-document.h index 7cafa72c..3b6af15b 100644 --- a/backend/xps/xps-document.h +++ b/backend/xps/xps-document.h @@ -17,8 +17,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __XPS_DOCUMENT_H__ -#define __XPS_DOCUMENT_H__ +#pragma once #include @@ -42,5 +41,3 @@ EV_PUBLIC GType register_evince_backend (GTypeModule *module); G_END_DECLS - -#endif /* __XPS_DOCUMENT_H__ */ diff --git a/evince-document.h b/evince-document.h index 6065f537..20c8ead4 100644 --- a/evince-document.h +++ b/evince-document.h @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EVINCE_DOCUMENT_H -#define EVINCE_DOCUMENT_H +#pragma once #define __EV_EVINCE_DOCUMENT_H_INSIDE__ @@ -62,5 +61,3 @@ #include #undef __EV_EVINCE_DOCUMENT_H_INSIDE__ - -#endif /* !EVINCE_DOCUMENT_H */ diff --git a/evince-view.h b/evince-view.h index 8b8d2868..3b869f9f 100644 --- a/evince-view.h +++ b/evince-view.h @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EVINCE_VIEW_H -#define EVINCE_VIEW_H +#pragma once #define __EV_EVINCE_VIEW_H_INSIDE__ @@ -30,5 +29,3 @@ #include #undef __EV_EVINCE_VIEW_H_INSIDE__ - -#endif /* !EVINCE_VIEW_H */ diff --git a/libdocument/ev-annotation.h b/libdocument/ev-annotation.h index 3f9075d7..ab5c9624 100644 --- a/libdocument/ev-annotation.h +++ b/libdocument/ev-annotation.h @@ -19,13 +19,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_ANNOTATION_H -#define EV_ANNOTATION_H - #include #include "ev-document.h" @@ -252,5 +251,3 @@ gboolean ev_annotation_text_markup_set_markup_type (EvAnnotati EvAnnotationTextMarkupType markup_type); G_END_DECLS - -#endif /* EV_ANNOTATION_H */ diff --git a/libdocument/ev-async-renderer.h b/libdocument/ev-async-renderer.h index e1fe00db..fc2c7e1b 100644 --- a/libdocument/ev-async-renderer.h +++ b/libdocument/ev-async-renderer.h @@ -18,13 +18,12 @@ * */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_ASYNC_RENDERER_H -#define EV_ASYNC_RENDERER_H - #include #include #include @@ -65,5 +64,3 @@ void ev_async_renderer_render_pixbuf (EvAsyncRenderer *renderer, int rotation); G_END_DECLS - -#endif diff --git a/libdocument/ev-attachment.h b/libdocument/ev-attachment.h index 28736ef3..022d23a1 100644 --- a/libdocument/ev-attachment.h +++ b/libdocument/ev-attachment.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_ATTACHMENT_H__ -#define __EV_ATTACHMENT_H__ - #include #include @@ -91,5 +90,3 @@ gboolean ev_attachment_open (EvAttachment *attachment, GError **error); G_END_DECLS - -#endif /* __EV_ATTACHMENT_H__ */ diff --git a/libdocument/ev-backend-info.h b/libdocument/ev-backend-info.h index 27737d02..c7d73d00 100644 --- a/libdocument/ev-backend-info.h +++ b/libdocument/ev-backend-info.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef EV_BACKEND_INFO -#define EV_BACKEND_INFO - #include G_BEGIN_DECLS @@ -51,5 +50,3 @@ EvBackendInfo *_ev_backend_info_new_from_file (const char *file, GList *_ev_backend_info_load_from_dir (const char *path); G_END_DECLS - -#endif /* !EV_BACKEND_INFO */ diff --git a/libdocument/ev-backends-manager.h b/libdocument/ev-backends-manager.h index 43939a3a..723533aa 100644 --- a/libdocument/ev-backends-manager.h +++ b/libdocument/ev-backends-manager.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_BACKENDS_MANAGER -#define EV_BACKENDS_MANAGER - #include #include "ev-document.h" @@ -50,5 +49,3 @@ EV_PUBLIC GList *ev_backends_manager_get_all_types_info (void); G_END_DECLS - -#endif /* EV_BACKENDS_MANAGER */ diff --git a/libdocument/ev-debug.h b/libdocument/ev-debug.h index 689decae..560beff3 100644 --- a/libdocument/ev-debug.h +++ b/libdocument/ev-debug.h @@ -32,13 +32,12 @@ /* Modified by Evince Team */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_DEBUG_H__ -#define __EV_DEBUG_H__ - #include #include "ev-macros.h" @@ -124,5 +123,3 @@ EvDebugBorders ev_debug_get_debug_borders (void); #endif /* EV_ENABLE_DEBUG */ G_END_DECLS - -#endif /* __EV_DEBUG_H__ */ diff --git a/libdocument/ev-document-annotations.h b/libdocument/ev-document-annotations.h index 98fdd7ab..b49fda2a 100644 --- a/libdocument/ev-document-annotations.h +++ b/libdocument/ev-document-annotations.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_ANNOTATIONS_H -#define EV_DOCUMENT_ANNOTATIONS_H - #include #include "ev-macros.h" @@ -129,6 +128,3 @@ EvAnnotationsOverMarkup ev_document_annotations_over_markup (EvDocumentAnnotati gdouble y); G_END_DECLS - -#endif /* EV_DOCUMENT_ANNOTATIONS_H */ - diff --git a/libdocument/ev-document-attachments.h b/libdocument/ev-document-attachments.h index 6ca43a2e..1addb3c9 100644 --- a/libdocument/ev-document-attachments.h +++ b/libdocument/ev-document-attachments.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_ATTACHMENTS_H -#define EV_DOCUMENT_ATTACHMENTS_H - #include #include @@ -60,5 +59,3 @@ EV_PUBLIC GList *ev_document_attachments_get_attachments (EvDocumentAttachments *document_attachments); G_END_DECLS - -#endif /* EV_DOCUMENT_ATTACHMENTS_H */ diff --git a/libdocument/ev-document-factory.h b/libdocument/ev-document-factory.h index 60d9c29e..a071a417 100644 --- a/libdocument/ev-document-factory.h +++ b/libdocument/ev-document-factory.h @@ -18,13 +18,12 @@ * */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_FACTORY_H -#define EV_DOCUMENT_FACTORY_H - #include #include "ev-macros.h" @@ -57,5 +56,3 @@ EV_PUBLIC void ev_document_factory_add_filters (GtkWidget *chooser, EvDocument *document); G_END_DECLS - -#endif diff --git a/libdocument/ev-document-find.h b/libdocument/ev-document-find.h index b598452f..0b929f52 100644 --- a/libdocument/ev-document-find.h +++ b/libdocument/ev-document-find.h @@ -15,17 +15,14 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * $Id$ */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_FIND_H -#define EV_DOCUMENT_FIND_H - #include #include @@ -82,5 +79,3 @@ EV_PUBLIC EvFindOptions ev_document_find_get_supported_options (EvDocumentFind *document_find); G_END_DECLS - -#endif /* EV_DOCUMENT_FIND_H */ diff --git a/libdocument/ev-document-fonts.h b/libdocument/ev-document-fonts.h index 94e3e838..beaabdd0 100644 --- a/libdocument/ev-document-fonts.h +++ b/libdocument/ev-document-fonts.h @@ -21,13 +21,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_FONTS_H -#define EV_DOCUMENT_FONTS_H - #include #include #include @@ -82,5 +81,3 @@ EV_PUBLIC const gchar *ev_document_fonts_get_fonts_summary (EvDocumentFonts *document_fonts); G_END_DECLS - -#endif diff --git a/libdocument/ev-document-forms.h b/libdocument/ev-document-forms.h index 552a74af..0f05f32b 100644 --- a/libdocument/ev-document-forms.h +++ b/libdocument/ev-document-forms.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_FORMS_H -#define EV_DOCUMENT_FORMS_H - #include #include "ev-macros.h" @@ -145,5 +144,3 @@ void ev_document_forms_reset_form (EvDocumentF EvLinkAction *action); G_END_DECLS - -#endif /* EV_DOCUMENT_FORMS_H */ diff --git a/libdocument/ev-document-images.h b/libdocument/ev-document-images.h index 7440e2de..0e255f2b 100644 --- a/libdocument/ev-document-images.h +++ b/libdocument/ev-document-images.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_IMAGES_H -#define EV_DOCUMENT_IMAGES_H - #include #include @@ -65,5 +64,3 @@ GdkPixbuf *ev_document_images_get_image (EvDocumentImages *document_ EvImage *image); G_END_DECLS - -#endif /* EV_DOCUMENT_IMAGES_H */ diff --git a/libdocument/ev-document-info.h b/libdocument/ev-document-info.h index 52fa4b6d..732d9262 100644 --- a/libdocument/ev-document-info.h +++ b/libdocument/ev-document-info.h @@ -19,13 +19,12 @@ * */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_INFO_H -#define EV_DOCUMENT_INFO_H - #include #include @@ -187,5 +186,3 @@ EV_PUBLIC const gchar *ev_document_license_get_web_statement (EvDocumentLicense *license); G_END_DECLS - -#endif /* EV_DOCUMENT_INFO_H */ diff --git a/libdocument/ev-document-layers.h b/libdocument/ev-document-layers.h index 2ba11927..60f29182 100644 --- a/libdocument/ev-document-layers.h +++ b/libdocument/ev-document-layers.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_LAYERS_H -#define EV_DOCUMENT_LAYERS_H - #include #include #include @@ -88,5 +87,3 @@ gboolean ev_document_layers_layer_is_visible (EvDocumentLayers *document_la EvLayer *layer); G_END_DECLS - -#endif /* EV_DOCUMENT_LAYERS_H */ diff --git a/libdocument/ev-document-links.h b/libdocument/ev-document-links.h index 2e6dc5d8..fc164a5f 100644 --- a/libdocument/ev-document-links.h +++ b/libdocument/ev-document-links.h @@ -21,13 +21,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_LINKS_H -#define EV_DOCUMENT_LINKS_H - #include #include #include @@ -102,5 +101,3 @@ gchar *ev_document_links_get_link_page_label (EvDocumentLinks *document_ EvLink *link); G_END_DECLS - -#endif diff --git a/libdocument/ev-document-media.h b/libdocument/ev-document-media.h index db00f3cb..e7330000 100644 --- a/libdocument/ev-document-media.h +++ b/libdocument/ev-document-media.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_MEDIA_H -#define EV_DOCUMENT_MEDIA_H - #include #include @@ -60,5 +59,3 @@ EvMappingList *ev_document_media_get_media_mapping (EvDocumentMedia *document_me EvPage *page); G_END_DECLS - -#endif /* EV_DOCUMENT_MEDIA_H */ diff --git a/libdocument/ev-document-misc.h b/libdocument/ev-document-misc.h index ea52a06e..29d1a679 100644 --- a/libdocument/ev-document-misc.h +++ b/libdocument/ev-document-misc.h @@ -15,17 +15,14 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * $Id$ */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_MISC_H -#define EV_DOCUMENT_MISC_H - #include #include @@ -115,5 +112,3 @@ void ev_document_misc_get_pointer_position (GtkWidget *widget, gint *y); G_END_DECLS - -#endif /* EV_DOCUMENT_MISC_H */ diff --git a/libdocument/ev-document-print.h b/libdocument/ev-document-print.h index 31bbda0b..56160e96 100644 --- a/libdocument/ev-document-print.h +++ b/libdocument/ev-document-print.h @@ -18,8 +18,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_DOCUMENT_PRINT_H -#define EV_DOCUMENT_PRINT_H +#pragma once + +#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) +#error "Only can be included directly." +#endif #include #include @@ -58,5 +61,3 @@ void ev_document_print_print_page (EvDocumentPrint *document_print, cairo_t *cr); G_END_DECLS - -#endif /* EV_DOCUMENT_PRINT_H */ diff --git a/libdocument/ev-document-security.h b/libdocument/ev-document-security.h index 3b5385a9..d737e993 100644 --- a/libdocument/ev-document-security.h +++ b/libdocument/ev-document-security.h @@ -21,12 +21,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_SECURITY_H -#define EV_DOCUMENT_SECURITY_H #include #include @@ -67,5 +67,3 @@ void ev_document_security_set_password (EvDocumentSecurity *documen const char *password); G_END_DECLS - -#endif diff --git a/libdocument/ev-document-text.h b/libdocument/ev-document-text.h index 6a2a06ec..00472539 100644 --- a/libdocument/ev-document-text.h +++ b/libdocument/ev-document-text.h @@ -15,17 +15,14 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * $Id$ */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_TEXT_H -#define EV_DOCUMENT_TEXT_H - #include #include #include @@ -80,5 +77,3 @@ EV_PUBLIC PangoAttrList *ev_document_text_get_text_attrs (EvDocumentText *document_text, EvPage *page); G_END_DECLS - -#endif /* EV_DOCUMENT_TEXT_H */ diff --git a/libdocument/ev-document-transition.h b/libdocument/ev-document-transition.h index 89352059..3c172477 100644 --- a/libdocument/ev-document-transition.h +++ b/libdocument/ev-document-transition.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_TRANSITION_H -#define EV_DOCUMENT_TRANSITION_H - #include #include "ev-macros.h" @@ -64,5 +63,3 @@ EvTransitionEffect * ev_document_transition_get_effect (EvDocumentTransit gint page); G_END_DECLS - -#endif /* EV_DOCUMENT_TRANSITION_H */ diff --git a/libdocument/ev-document-type-builtins.h.template b/libdocument/ev-document-type-builtins.h.template index 97483a62..35916d7b 100644 --- a/libdocument/ev-document-type-builtins.h.template +++ b/libdocument/ev-document-type-builtins.h.template @@ -1,12 +1,11 @@ /*** BEGIN file-header ***/ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_TYPE_BUILTINS_H -#define EV_DOCUMENT_TYPE_BUILTINS_H - #include #include "ev-macros.h" @@ -27,6 +26,4 @@ GType @enum_name@_get_type (void) G_GNUC_CONST; /*** BEGIN file-tail ***/ G_END_DECLS - -#endif /* !EV_DOCUMENT_TYPE_BUILTINS_H */ /*** END file-tail ***/ diff --git a/libdocument/ev-document.h b/libdocument/ev-document.h index b3a5fce1..6bce0ada 100644 --- a/libdocument/ev-document.h +++ b/libdocument/ev-document.h @@ -16,17 +16,14 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * $Id$ */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_DOCUMENT_H -#define EV_DOCUMENT_H - #include #include #include @@ -386,5 +383,3 @@ register_evince_backend (GTypeModule *module) \ EV_BACKEND_REGISTER_WITH_CODE(BackendName, backend_name, ;) G_END_DECLS - -#endif /* EV_DOCUMENT_H */ diff --git a/libdocument/ev-file-exporter.h b/libdocument/ev-file-exporter.h index b3776d9b..18d89828 100644 --- a/libdocument/ev-file-exporter.h +++ b/libdocument/ev-file-exporter.h @@ -20,13 +20,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_FILE_EXPORTER_H -#define EV_FILE_EXPORTER_H - #include #include "ev-macros.h" @@ -107,5 +106,3 @@ EV_PUBLIC EvFileExporterCapabilities ev_file_exporter_get_capabilities (EvFileExporter *exporter); G_END_DECLS - -#endif diff --git a/libdocument/ev-file-helpers.h b/libdocument/ev-file-helpers.h index 8f58e324..ea7b488b 100644 --- a/libdocument/ev-file-helpers.h +++ b/libdocument/ev-file-helpers.h @@ -17,13 +17,12 @@ * */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_FILE_HELPERS_H -#define EV_FILE_HELPERS_H - #include #include @@ -84,5 +83,3 @@ gchar *ev_file_compress (const gchar *uri, GError **error); G_END_DECLS - -#endif /* EV_FILE_HELPERS_H */ diff --git a/libdocument/ev-form-field-private.h b/libdocument/ev-form-field-private.h index 64796829..ef40cf6f 100644 --- a/libdocument/ev-form-field-private.h +++ b/libdocument/ev-form-field-private.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_FORM_FIELD_PRIVATE_H -#define EV_FORM_FIELD_PRIVATE_H - //#include #include "ev-macros.h" @@ -40,6 +39,3 @@ void ev_form_field_set_alternate_name (EvFormField *field, gchar *alternative_text); G_END_DECLS - -#endif /* !EV_FORM_FIELD_PRIVATE_H */ - diff --git a/libdocument/ev-form-field.h b/libdocument/ev-form-field.h index ffbd17c5..e05868a4 100644 --- a/libdocument/ev-form-field.h +++ b/libdocument/ev-form-field.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_FORM_FIELD_H -#define EV_FORM_FIELD_H - #include #include "ev-macros.h" @@ -221,6 +220,3 @@ EvFormField *ev_form_field_signature_new (gint id); G_END_DECLS - -#endif /* !EV_FORM_FIELD_H */ - diff --git a/libdocument/ev-image.h b/libdocument/ev-image.h index e8b99108..7195deb6 100644 --- a/libdocument/ev-image.h +++ b/libdocument/ev-image.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_IMAGE_H__ -#define __EV_IMAGE_H__ - #include #include @@ -72,7 +71,4 @@ const gchar *ev_image_save_tmp (EvImage *image, EV_PUBLIC const gchar *ev_image_get_tmp_uri (EvImage *image); - G_END_DECLS - -#endif /* __EV_IMAGE_H__ */ diff --git a/libdocument/ev-init.h b/libdocument/ev-init.h index db66d453..1833e913 100644 --- a/libdocument/ev-init.h +++ b/libdocument/ev-init.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_INIT_H -#define EV_INIT_H - #include #include "ev-macros.h" @@ -42,5 +41,3 @@ void ev_shutdown (void); gboolean _ev_is_initialized (void); G_END_DECLS - -#endif /* EV_INIT_H */ diff --git a/libdocument/ev-layer.h b/libdocument/ev-layer.h index 60e9ce86..2def0f30 100644 --- a/libdocument/ev-layer.h +++ b/libdocument/ev-layer.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_LAYER_H__ -#define __EV_LAYER_H__ - #include #include "ev-macros.h" @@ -62,5 +61,3 @@ EV_PUBLIC gint ev_layer_get_rb_group (EvLayer *layer); G_END_DECLS - -#endif /* __EV_LAYER_H__ */ diff --git a/libdocument/ev-link-action.h b/libdocument/ev-link-action.h index 113361cf..990cd3da 100644 --- a/libdocument/ev-link-action.h +++ b/libdocument/ev-link-action.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_LINK_ACTION_H -#define EV_LINK_ACTION_H - #include #include "ev-macros.h" @@ -106,5 +105,3 @@ gboolean ev_link_action_equal (EvLinkAction *a, EvLinkAction *b); G_END_DECLS - -#endif /* EV_LINK_ACTION_H */ diff --git a/libdocument/ev-link-dest.h b/libdocument/ev-link-dest.h index 1ac0389e..80db5de4 100644 --- a/libdocument/ev-link-dest.h +++ b/libdocument/ev-link-dest.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_LINK_DEST_H -#define EV_LINK_DEST_H - #include #include "ev-macros.h" @@ -115,5 +114,3 @@ gboolean ev_link_dest_equal (EvLinkDest *a, EvLinkDest *b); G_END_DECLS - -#endif /* EV_LINK_DEST_H */ diff --git a/libdocument/ev-link.h b/libdocument/ev-link.h index fd97cdeb..2709f708 100644 --- a/libdocument/ev-link.h +++ b/libdocument/ev-link.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_LINK_H -#define EV_LINK_H - #include #include "ev-macros.h" @@ -56,5 +55,3 @@ EV_PUBLIC EvLinkAction *ev_link_get_action (EvLink *self); G_END_DECLS - -#endif /* !EV_LINK_H */ diff --git a/libdocument/ev-macros.h b/libdocument/ev-macros.h index 43a7f0d2..416d8769 100644 --- a/libdocument/ev-macros.h +++ b/libdocument/ev-macros.h @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_MACROS_H -#define EV_MACROS_H +#pragma once #if defined(EV_DISABLE_DEPRECATION_WARNINGS) || defined(EVINCE_COMPILATION) #define EV_DEPRECATED @@ -39,5 +38,3 @@ #endif #define EV_PRIVATE EV_PUBLIC - -#endif /* #ifndef EV_MACROS_H */ diff --git a/libdocument/ev-mapping-list.h b/libdocument/ev-mapping-list.h index e2c9c9aa..cadc3b1c 100644 --- a/libdocument/ev-mapping-list.h +++ b/libdocument/ev-mapping-list.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_MAPPING_LIST_H -#define EV_MAPPING_LIST_H - #include "ev-macros.h" #include "ev-document.h" @@ -74,5 +73,3 @@ EV_PUBLIC guint ev_mapping_list_length (EvMappingList *mapping_list); G_END_DECLS - -#endif /* EV_MAPPING_LIST_H */ diff --git a/libdocument/ev-media.h b/libdocument/ev-media.h index dd886659..9c67f7e0 100644 --- a/libdocument/ev-media.h +++ b/libdocument/ev-media.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_MEDIA_H__ -#define __EV_MEDIA_H__ - #include #include "ev-macros.h" @@ -69,5 +68,3 @@ void ev_media_set_show_controls (EvMedia *media, gboolean show_controls); G_END_DECLS - -#endif /* __EV_MEDIA_H__ */ diff --git a/libdocument/ev-module.h b/libdocument/ev-module.h index 9b851076..b7fc7cbf 100644 --- a/libdocument/ev-module.h +++ b/libdocument/ev-module.h @@ -38,13 +38,12 @@ /* Modified by Evince Team */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef EV_MODULE_H -#define EV_MODULE_H - #include G_BEGIN_DECLS @@ -70,5 +69,3 @@ GObject *_ev_module_new_object (EvModule *module); GType _ev_module_get_object_type (EvModule *module); G_END_DECLS - -#endif /* EV_MODULE_H */ diff --git a/libdocument/ev-page.h b/libdocument/ev-page.h index 98cae8de..866ea510 100644 --- a/libdocument/ev-page.h +++ b/libdocument/ev-page.h @@ -17,12 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_PAGE_H -#define EV_PAGE_H #include @@ -63,5 +63,3 @@ EV_PUBLIC EvPage *ev_page_new (gint index); G_END_DECLS - -#endif /* EV_PAGE_H */ diff --git a/libdocument/ev-render-context.h b/libdocument/ev-render-context.h index 218a0a3d..4bd389c7 100644 --- a/libdocument/ev-render-context.h +++ b/libdocument/ev-render-context.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_RENDER_CONTEXT_H -#define EV_RENDER_CONTEXT_H - #include #include "ev-macros.h" @@ -95,5 +94,3 @@ void ev_render_context_compute_scales (EvRenderContext *rc, double *scale_y); G_END_DECLS - -#endif /* !EV_RENDER_CONTEXT */ diff --git a/libdocument/ev-selection.h b/libdocument/ev-selection.h index b9f8603f..8dabc2f7 100644 --- a/libdocument/ev-selection.h +++ b/libdocument/ev-selection.h @@ -18,13 +18,12 @@ * */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_SELECTION_H -#define EV_SELECTION_H - #include #include #include @@ -95,5 +94,3 @@ cairo_region_t *ev_selection_get_selection_region (EvSelection *selection, EvRectangle *points); G_END_DECLS - -#endif diff --git a/libdocument/ev-transition-effect.h b/libdocument/ev-transition-effect.h index a8a1691e..cd7f6b40 100644 --- a/libdocument/ev-transition-effect.h +++ b/libdocument/ev-transition-effect.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_TRANSITION_EFFECT_H__ -#define __EV_TRANSITION_EFFECT_H__ - #include #include "ev-macros.h" @@ -86,5 +85,3 @@ EvTransitionEffect *ev_transition_effect_new (EvTransitionEffec ...); G_END_DECLS - -#endif /* __EV_TRANSITION_EFFECT_H__ */ diff --git a/libdocument/ev-version.h.in b/libdocument/ev-version.h.in index a8a3db28..65989b0e 100644 --- a/libdocument/ev-version.h.in +++ b/libdocument/ev-version.h.in @@ -16,8 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_VERSION_H -#define EV_VERSION_H +#pragma once /** * SECTION:ev-version @@ -55,5 +54,3 @@ #define EV_CHECK_VERSION(major,minor) \ (EV_MAJOR_VERSION > (major) || \ (EV_MAJOR_VERSION == (major) && EV_MINOR_VERSION > (minor)) - -#endif /* #ifndef EV_VERSION_H */ diff --git a/libmisc/ev-page-action-widget.h b/libmisc/ev-page-action-widget.h index da70a3a8..23a94144 100644 --- a/libmisc/ev-page-action-widget.h +++ b/libmisc/ev-page-action-widget.h @@ -18,8 +18,7 @@ * */ -#ifndef __EV_PAGE_ACTION_WIDET_H__ -#define __EV_PAGE_ACTION_WIDET_H__ +#pragma once #include @@ -51,5 +50,3 @@ void ev_page_action_widget_set_model (EvPageActionWidget *action_widget void ev_page_action_widget_grab_focus (EvPageActionWidget *proxy); G_END_DECLS - -#endif /* __EV_PAGE_ACTION_WIDET_H__ */ diff --git a/libmisc/ev-search-box.h b/libmisc/ev-search-box.h index 0b17ff82..a147faf4 100644 --- a/libmisc/ev-search-box.h +++ b/libmisc/ev-search-box.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_SEARCH_BOX_H -#define EV_SEARCH_BOX_H +#pragma once #include #include @@ -53,5 +52,3 @@ gboolean ev_search_box_has_results (EvSearchBox *box); void ev_search_box_restart (EvSearchBox *box); G_END_DECLS - -#endif diff --git a/libview/ev-annotation-window.h b/libview/ev-annotation-window.h index 85d8906f..4dc166e4 100644 --- a/libview/ev-annotation-window.h +++ b/libview/ev-annotation-window.h @@ -19,13 +19,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef EV_ANNOTATION_WINDOW_H -#define EV_ANNOTATION_WINDOW_H - #include #include "ev-annotation.h" @@ -58,6 +57,5 @@ void ev_annotation_window_ungrab_focus (EvAnnotationWindow *window); void ev_annotation_window_set_enable_spellchecking (EvAnnotationWindow *window, gboolean spellcheck); gboolean ev_annotation_window_get_enable_spellchecking (EvAnnotationWindow *window); -G_END_DECLS -#endif /* EV_ANNOTATION_WINDOW_H */ +G_END_DECLS diff --git a/libview/ev-color-contrast.h b/libview/ev-color-contrast.h index 300215c2..b7054c94 100644 --- a/libview/ev-color-contrast.h +++ b/libview/ev-color-contrast.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_COLOR_CONTRAST_H__ -#define __EV_COLOR_CONTRAST_H__ - #include GdkRGBA *ev_color_contrast_get_most_readable_color (const GdkRGBA *bg_color, @@ -32,5 +31,3 @@ GdkRGBA *ev_color_contrast_get_most_readable_color (const GdkRGBA *bg_color, GdkRGBA *second_color); GdkRGBA *ev_color_contrast_get_best_foreground_color (const GdkRGBA *bg_color); - -#endif /* __EV_COLOR_CONTRAST_H__ */ diff --git a/libview/ev-document-model.h b/libview/ev-document-model.h index daa88d9a..b92b71dc 100644 --- a/libview/ev-document-model.h +++ b/libview/ev-document-model.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_DOCUMENT_MODEL_H__ -#define __EV_DOCUMENT_MODEL_H__ - #include #include @@ -141,5 +140,3 @@ EV_PUBLIC gboolean ev_document_model_get_dual_page (EvDocumentModel *model); G_END_DECLS - -#endif /* __EV_DOCUMENT_MODEL_H__ */ diff --git a/libview/ev-form-field-accessible.h b/libview/ev-form-field-accessible.h index 572e1ef6..fa003f59 100644 --- a/libview/ev-form-field-accessible.h +++ b/libview/ev-form-field-accessible.h @@ -19,13 +19,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_FORM_FIELD_ACCESSIBLE_H__ -#define __EV_FORM_FIELD_ACCESSIBLE_H__ - #include #include "ev-page-accessible.h" #include "ev-form-field.h" @@ -53,5 +52,3 @@ EvFormFieldAccessible *ev_form_field_accessible_new (EvPageAccessible *page, EvRectangle *area); EvFormField *ev_form_field_accessible_get_field (EvFormFieldAccessible *accessible); void ev_form_field_accessible_update_state (EvFormFieldAccessible *accessible); - -#endif /* __EV_FORM_FIELD_ACCESSIBLE_H__ */ diff --git a/libview/ev-image-accessible.h b/libview/ev-image-accessible.h index 5f637a41..9776d641 100644 --- a/libview/ev-image-accessible.h +++ b/libview/ev-image-accessible.h @@ -19,13 +19,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_IMAGE_ACCESSIBLE_H__ -#define __EV_IMAGE_ACCESSIBLE_H__ - #include #include "ev-page-accessible.h" #include "ev-image.h" @@ -51,5 +50,3 @@ GType ev_image_accessible_get_type (void); EvImageAccessible *ev_image_accessible_new (EvPageAccessible *page, EvImage *image, EvRectangle *area); - -#endif /* __EV_IMAGE_ACCESSIBLE_H__ */ diff --git a/libview/ev-job-scheduler.h b/libview/ev-job-scheduler.h index eb5c4fb1..3804fc4c 100644 --- a/libview/ev-job-scheduler.h +++ b/libview/ev-job-scheduler.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_JOB_SCHEDULER_H -#define EV_JOB_SCHEDULER_H - #include #include @@ -50,5 +49,3 @@ EV_PUBLIC EvJob *ev_job_scheduler_get_running_thread_job (void); G_END_DECLS - -#endif /* EV_JOB_SCHEDULER_H */ diff --git a/libview/ev-jobs.h b/libview/ev-jobs.h index dda9778d..3bec145f 100644 --- a/libview/ev-jobs.h +++ b/libview/ev-jobs.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_JOBS_H__ -#define __EV_JOBS_H__ - #include #include #include @@ -690,5 +689,3 @@ void ev_job_print_set_cairo (EvJobPrint *job, cairo_t *cr); G_END_DECLS - -#endif /* __EV_JOBS_H__ */ diff --git a/libview/ev-link-accessible.h b/libview/ev-link-accessible.h index 519016e4..69540dd1 100644 --- a/libview/ev-link-accessible.h +++ b/libview/ev-link-accessible.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_LINK_ACCESSIBLE_H__ -#define __EV_LINK_ACCESSIBLE_H__ - #include #include "ev-page-accessible.h" #include "ev-link.h" @@ -51,6 +50,3 @@ GType ev_link_accessible_get_type (void); EvLinkAccessible *ev_link_accessible_new (EvPageAccessible *page, EvLink *link, EvRectangle *area); - -#endif /* __EV_LINK_ACCESSIBLE_H__ */ - diff --git a/libview/ev-media-player.h b/libview/ev-media-player.h index ef7b686d..d4f4cf20 100644 --- a/libview/ev-media-player.h +++ b/libview/ev-media-player.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_MEDIA_PLAYER_H -#define EV_MEDIA_PLAYER_H +#pragma once #include #include @@ -47,5 +46,3 @@ GtkWidget *ev_media_player_new (EvMedia *media); EvMedia *ev_media_player_get_media (EvMediaPlayer *player); G_END_DECLS - -#endif /* EV_MEDIA_PLAYER_H */ diff --git a/libview/ev-page-accessible.h b/libview/ev-page-accessible.h index 6b285d23..45edeeb6 100644 --- a/libview/ev-page-accessible.h +++ b/libview/ev-page-accessible.h @@ -20,13 +20,12 @@ * Author: Alejandro PiƱeiro Iglesias */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_PAGE_ACCESSIBLE_H__ -#define __EV_PAGE_ACCESSIBLE_H__ - #include #include "ev-view-accessible.h" #include "ev-view.h" @@ -59,6 +58,3 @@ AtkObject *ev_page_accessible_get_accessible_for_mapping (EvPageAccessibl EvMapping *mapping); void ev_page_accessible_update_element_state (EvPageAccessible *page_accessible, EvMapping *mapping); - -#endif /* __EV_PAGE_ACCESSIBLE_H__ */ - diff --git a/libview/ev-page-cache.h b/libview/ev-page-cache.h index 0ccc4896..e6c6d0b0 100644 --- a/libview/ev-page-cache.h +++ b/libview/ev-page-cache.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef EV_PAGE_CACHE_H -#define EV_PAGE_CACHE_H - #include #include #include @@ -82,5 +81,3 @@ void ev_page_cache_ensure_page (EvPageCache *cach gboolean ev_page_cache_is_page_cached (EvPageCache *cache, gint page); G_END_DECLS - -#endif /* EV_PAGE_CACHE_H */ diff --git a/libview/ev-pixbuf-cache.h b/libview/ev-pixbuf-cache.h index bfd495f2..b3aed18a 100644 --- a/libview/ev-pixbuf-cache.h +++ b/libview/ev-pixbuf-cache.h @@ -21,13 +21,12 @@ * ev-view.c from exploding. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_PIXBUF_CACHE_H__ -#define __EV_PIXBUF_CACHE_H__ - #include #include @@ -89,5 +88,3 @@ void ev_pixbuf_cache_set_selection_list (EvPixbufCache *pixbuf_cache GList *ev_pixbuf_cache_get_selection_list (EvPixbufCache *pixbuf_cache); G_END_DECLS - -#endif /* __EV_PIXBUF_CACHE_H__ */ diff --git a/libview/ev-print-operation.h b/libview/ev-print-operation.h index 371a055b..2a47240a 100644 --- a/libview/ev-print-operation.h +++ b/libview/ev-print-operation.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_PRINT_OPERATION_H__ -#define __EV_PRINT_OPERATION_H__ - #include #include @@ -85,5 +84,3 @@ EV_PUBLIC gdouble ev_print_operation_get_progress (EvPrintOperation *op); G_END_DECLS - -#endif /* __EV_PRINT_OPERATION_H__ */ diff --git a/libview/ev-stock-icons.h b/libview/ev-stock-icons.h index 5048c273..b8c1486c 100644 --- a/libview/ev-stock-icons.h +++ b/libview/ev-stock-icons.h @@ -21,13 +21,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_STOCK_ICONS_H__ -#define __EV_STOCK_ICONS_H__ - #include #include @@ -64,5 +63,3 @@ EV_PUBLIC void ev_stock_icons_set_screen (GdkScreen *screen); G_END_DECLS - -#endif /* __EV_STOCK_ICONS_H__ */ diff --git a/libview/ev-timeline.h b/libview/ev-timeline.h index 942a6fc6..2783b432 100644 --- a/libview/ev-timeline.h +++ b/libview/ev-timeline.h @@ -19,13 +19,12 @@ * Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_TIMELINE_H__ -#define __EV_TIMELINE_H__ - #include G_BEGIN_DECLS @@ -86,5 +85,3 @@ gdouble ev_timeline_get_progress (EvTimeline *ti G_END_DECLS - -#endif /* __EV_TIMELINE_H__ */ diff --git a/libview/ev-transition-animation.h b/libview/ev-transition-animation.h index 520d26d6..97ebdbd2 100644 --- a/libview/ev-transition-animation.h +++ b/libview/ev-transition-animation.h @@ -19,13 +19,12 @@ * Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_TRANSITION_ANIMATION_H__ -#define __EV_TRANSITION_ANIMATION_H__ - #include #include "ev-timeline.h" #include "ev-transition-effect.h" @@ -67,7 +66,4 @@ void ev_transition_animation_paint (EvTransition GdkRectangle page_area); gboolean ev_transition_animation_ready (EvTransitionAnimation *animation); - G_END_DECLS - -#endif /* __EV_TRANSITION_ANIMATION_H__ */ diff --git a/libview/ev-view-accessible.h b/libview/ev-view-accessible.h index 14c3ac9e..e3d4f999 100644 --- a/libview/ev-view-accessible.h +++ b/libview/ev-view-accessible.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_VIEW_ACCESSIBLE_H__ -#define __EV_VIEW_ACCESSIBLE_H__ - #include #include "ev-document-model.h" @@ -71,6 +70,3 @@ void ev_view_accessible_set_focused_element (EvViewAccessible *accessible, void ev_view_accessible_update_element_state (EvViewAccessible *accessible, EvMapping *element, gint element_page); - -#endif /* __EV_VIEW_ACCESSIBLE_H__ */ - diff --git a/libview/ev-view-cursor.h b/libview/ev-view-cursor.h index 6690b590..4e2e8c9f 100644 --- a/libview/ev-view-cursor.h +++ b/libview/ev-view-cursor.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_VIEW_CURSOR_H__ -#define __EV_VIEW_CURSOR_H__ - #include G_BEGIN_DECLS @@ -43,5 +42,3 @@ GdkCursor *ev_view_cursor_new (GdkDisplay *display, EvViewCursor cursor); G_END_DECLS - -#endif /* __EV_VIEW_CURSOR_H__ */ diff --git a/libview/ev-view-presentation.h b/libview/ev-view-presentation.h index 44187959..5fe2616a 100644 --- a/libview/ev-view-presentation.h +++ b/libview/ev-view-presentation.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_VIEW_PRESENTATION_H__ -#define __EV_VIEW_PRESENTATION_H__ - #include #include @@ -62,5 +61,3 @@ EV_PUBLIC guint ev_view_presentation_get_rotation (EvViewPresentation *pview); G_END_DECLS - -#endif /* __EV_VIEW_PRESENTATION_H__ */ diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h index bc71fa75..c73e2f48 100644 --- a/libview/ev-view-private.h +++ b/libview/ev-view-private.h @@ -18,13 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (EVINCE_COMPILATION) #error "This is a private header." #endif -#ifndef __EV_VIEW_PRIVATE_H__ -#define __EV_VIEW_PRIVATE_H__ - #include "ev-view.h" #include "ev-document-model.h" #include "ev-pixbuf-cache.h" @@ -355,6 +354,3 @@ void _ev_view_focus_form_field (EvView *view, void _ev_view_ensure_rectangle_is_visible (EvView *view, GdkRectangle *rect); - -#endif /* __EV_VIEW_PRIVATE_H__ */ - diff --git a/libview/ev-view-type-builtins.h.template b/libview/ev-view-type-builtins.h.template index d3facb5b..87223721 100644 --- a/libview/ev-view-type-builtins.h.template +++ b/libview/ev-view-type-builtins.h.template @@ -1,12 +1,11 @@ /*** BEGIN file-header ***/ +#pragma once + #if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef EV_VIEW_TYPE_BUILTINS_H -#define EV_VIEW_TYPE_BUILTINS_H - #include #include @@ -27,6 +26,4 @@ GType @enum_name@_get_type (void) G_GNUC_CONST; /*** BEGIN file-tail ***/ G_END_DECLS - -#endif /* !EV_VIEW_TYPE_BUILTINS_H */ /*** END file-tail ***/ diff --git a/libview/ev-view.h b/libview/ev-view.h index 4834073e..1ade3b73 100644 --- a/libview/ev-view.h +++ b/libview/ev-view.h @@ -17,13 +17,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once + #if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION) #error "Only can be included directly." #endif -#ifndef __EV_VIEW_H__ -#define __EV_VIEW_H__ - #include #include @@ -193,5 +192,3 @@ void ev_view_set_caret_cursor_position (EvView *view, guint page, guint offset); G_END_DECLS - -#endif /* __EV_VIEW_H__ */ diff --git a/previewer/ev-previewer-toolbar.h b/previewer/ev-previewer-toolbar.h index 7a3ac4b9..dd35e739 100644 --- a/previewer/ev-previewer-toolbar.h +++ b/previewer/ev-previewer-toolbar.h @@ -19,8 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_PREVIEWER_TOOLBAR_H__ -#define __EV_PREVIEWER_TOOLBAR_H__ +#pragma once #include #include "ev-previewer-window.h" @@ -50,5 +49,3 @@ GtkWidget *ev_previewer_toolbar_new (EvPreviewerWindow *window GtkWidget *ev_previewer_toolbar_get_page_selector (EvPreviewerToolbar *ev_previewer_toolbar); G_END_DECLS - -#endif /* __EV_PREVIEWER_TOOLBAR_H__ */ diff --git a/previewer/ev-previewer-window.h b/previewer/ev-previewer-window.h index 7449e8f5..df01162c 100644 --- a/previewer/ev-previewer-window.h +++ b/previewer/ev-previewer-window.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_PREVIEWER_WINDOW_H -#define EV_PREVIEWER_WINDOW_H +#pragma once #include @@ -49,5 +48,3 @@ void ev_previewer_window_set_source_file (EvPreviewerWindow *window, const gchar *source_file); G_END_DECLS - -#endif /* EV_PREVIEWER_WINDOW_H */ diff --git a/properties/ev-properties-view.h b/properties/ev-properties-view.h index ca2a3710..8d27d5b5 100644 --- a/properties/ev-properties-view.h +++ b/properties/ev-properties-view.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_PROPERTIES_VIEW_H__ -#define __EV_PROPERTIES_VIEW_H__ +#pragma once #include @@ -46,5 +45,3 @@ void ev_properties_view_set_info (EvPropertiesView *properties, const EvDocumentInfo *info); G_END_DECLS - -#endif /* __EV_PROPERTIES_VIEW_H__ */ diff --git a/shell/ev-annotation-properties-dialog.h b/shell/ev-annotation-properties-dialog.h index acd55bd8..b1d2316c 100644 --- a/shell/ev-annotation-properties-dialog.h +++ b/shell/ev-annotation-properties-dialog.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_ANNOTATION_PROPERTIES_DIALOG_H__ -#define __EV_ANNOTATION_PROPERTIES_DIALOG_H__ +#pragma once #include #include @@ -51,5 +50,3 @@ EvAnnotationTextIcon ev_annotation_properties_dialog_get_text_icon EvAnnotationTextMarkupType ev_annotation_properties_dialog_get_text_markup_type (EvAnnotationPropertiesDialog *dialog); G_END_DECLS - -#endif /* __EV_ANNOTATION_PROPERTIES_DIALOG_H__ */ diff --git a/shell/ev-annotations-toolbar.h b/shell/ev-annotations-toolbar.h index 7690ac33..6edac399 100644 --- a/shell/ev-annotations-toolbar.h +++ b/shell/ev-annotations-toolbar.h @@ -18,8 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef __EV_ANNOTATIONS_TOOLBAR_H__ -#define __EV_ANNOTATIONS_TOOLBAR_H__ +#pragma once #include @@ -40,5 +39,3 @@ GtkWidget *ev_annotations_toolbar_new (void); void ev_annotations_toolbar_add_annot_finished (EvAnnotationsToolbar *toolbar); G_END_DECLS - -#endif /* __EV_ANNOTATIONS_TOOLBAR_H__ */ diff --git a/shell/ev-application.h b/shell/ev-application.h index f9b43ab3..22d21a57 100644 --- a/shell/ev-application.h +++ b/shell/ev-application.h @@ -20,8 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_APPLICATION_H -#define EV_APPLICATION_H +#pragma once #ifdef HAVE_CONFIG_H #include "config.h" @@ -76,6 +75,3 @@ void ev_application_new_window (EvApplication *application guint32 timestamp); G_END_DECLS - -#endif /* !EV_APPLICATION_H */ - diff --git a/shell/ev-bookmarks.h b/shell/ev-bookmarks.h index c8613526..493cec14 100644 --- a/shell/ev-bookmarks.h +++ b/shell/ev-bookmarks.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_BOOKMARKS_H -#define EV_BOOKMARKS_H +#pragma once #include @@ -51,8 +50,4 @@ void ev_bookmarks_delete (EvBookmarks *bookmarks, void ev_bookmarks_update (EvBookmarks *bookmarks, EvBookmark *bookmark); - - G_END_DECLS - -#endif /* EV_BOOKMARKS_H */ diff --git a/shell/ev-file-monitor.h b/shell/ev-file-monitor.h index 67a60f3f..dd4ead8d 100644 --- a/shell/ev-file-monitor.h +++ b/shell/ev-file-monitor.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_FILE_MONITOR_H -#define EV_FILE_MONITOR_H +#pragma once #include @@ -50,5 +49,3 @@ GType ev_file_monitor_get_type (void) G_GNUC_CONST; EvFileMonitor *ev_file_monitor_new (const gchar *uri); G_END_DECLS - -#endif /* EV_FILE_MONITOR_H */ diff --git a/shell/ev-find-sidebar.h b/shell/ev-find-sidebar.h index 65178bb2..7f477fd6 100644 --- a/shell/ev-find-sidebar.h +++ b/shell/ev-find-sidebar.h @@ -19,8 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_FIND_SIDEBAR_H -#define EV_FIND_SIDEBAR_H +#pragma once #include @@ -59,6 +58,3 @@ void ev_find_sidebar_previous (EvFindSidebar *find_sidebar); void ev_find_sidebar_next (EvFindSidebar *find_sidebar); G_END_DECLS - -#endif /* EV_FIND_SIDEBAR_H */ - diff --git a/shell/ev-history.h b/shell/ev-history.h index af633b94..9ebfde68 100644 --- a/shell/ev-history.h +++ b/shell/ev-history.h @@ -17,8 +17,7 @@ * */ -#ifndef EV_HISTORY_H -#define EV_HISTORY_H +#pragma once #include #include @@ -70,5 +69,3 @@ void ev_history_thaw (EvHistory *history); gboolean ev_history_is_frozen (EvHistory *history); G_END_DECLS - -#endif diff --git a/shell/ev-keyring.h b/shell/ev-keyring.h index f53fb561..cfdda8c2 100644 --- a/shell/ev-keyring.h +++ b/shell/ev-keyring.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_KEYRING_H__ -#define __EV_KEYRING_H__ +#pragma once #include #include @@ -33,5 +32,3 @@ gboolean ev_keyring_save_password (const gchar *uri, GPasswordSave flags); G_END_DECLS - -#endif /* __EV_KEYRING_H__ */ diff --git a/shell/ev-loading-message.h b/shell/ev-loading-message.h index 38428640..af3f4972 100644 --- a/shell/ev-loading-message.h +++ b/shell/ev-loading-message.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_LOADING_MESSAGE_H -#define EV_LOADING_MESSAGE_H +#pragma once #include @@ -40,5 +39,3 @@ GType ev_loading_message_get_type (void) G_GNUC_CONST; GtkWidget *ev_loading_message_new (void); G_END_DECLS - -#endif /* EV_LOADING_MESSAGE_H */ diff --git a/shell/ev-media-player-keys.h b/shell/ev-media-player-keys.h index 8e2d62be..589bce5e 100644 --- a/shell/ev-media-player-keys.h +++ b/shell/ev-media-player-keys.h @@ -19,8 +19,7 @@ * */ -#ifndef EV_MEDIA_PLAYER_KEYS_H -#define EV_MEDIA_PLAYER_KEYS_H +#pragma once #include #include @@ -45,5 +44,3 @@ EvMediaPlayerKeys *ev_media_player_keys_new (void); void ev_media_player_keys_focused (EvMediaPlayerKeys *keys); G_END_DECLS - -#endif /* !EV_MEDIA_PLAYER_KEYS_H */ diff --git a/shell/ev-message-area.h b/shell/ev-message-area.h index b8783d2b..5acc78d4 100644 --- a/shell/ev-message-area.h +++ b/shell/ev-message-area.h @@ -19,8 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_MESSAGE_AREA_H -#define EV_MESSAGE_AREA_H +#pragma once #include @@ -64,5 +63,3 @@ void _ev_message_area_add_buttons_valist (EvMessageArea *area, GtkWidget *_ev_message_area_get_main_box (EvMessageArea *area); G_END_DECLS - -#endif /* EV_MESSAGE_AREA_H */ diff --git a/shell/ev-metadata.h b/shell/ev-metadata.h index 7fd4f054..66f223d7 100644 --- a/shell/ev-metadata.h +++ b/shell/ev-metadata.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_METADATA_H -#define EV_METADATA_H +#pragma once #include #include @@ -68,5 +67,3 @@ gboolean ev_metadata_has_key (EvMetadata *metadata, gboolean ev_is_metadata_supported_for_file (GFile *file); G_END_DECLS - -#endif /* EV_METADATA_H */ diff --git a/shell/ev-password-view.h b/shell/ev-password-view.h index e279c612..a68ff2a7 100644 --- a/shell/ev-password-view.h +++ b/shell/ev-password-view.h @@ -17,8 +17,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_PASSWORD_VIEW_H__ -#define __EV_PASSWORD_VIEW_H__ +#pragma once #include #include @@ -53,5 +52,3 @@ const gchar *ev_password_view_get_password (EvPasswordView *password GPasswordSave ev_password_view_get_password_save_flags (EvPasswordView *password_view); G_END_DECLS - -#endif /* __EV_PASSWORD_VIEW_H__ */ diff --git a/shell/ev-progress-message-area.h b/shell/ev-progress-message-area.h index 7a2faae0..fe6b6bcb 100644 --- a/shell/ev-progress-message-area.h +++ b/shell/ev-progress-message-area.h @@ -19,8 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_PROGRESS_MESSAGE_AREA_H -#define EV_PROGRESS_MESSAGE_AREA_H +#pragma once #include @@ -57,5 +56,3 @@ void ev_progress_message_area_set_fraction (EvProgressMessageArea *area gdouble fraction); G_END_DECLS - -#endif /* EV_PROGRESS_MESSAGE_AREA_H */ diff --git a/shell/ev-properties-dialog.h b/shell/ev-properties-dialog.h index 83bea3aa..2d9d5c52 100644 --- a/shell/ev-properties-dialog.h +++ b/shell/ev-properties-dialog.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_PROPERTIES_DIALOG_H__ -#define __EV_PROPERTIES_DIALOG_H__ +#pragma once #include "ev-document.h" @@ -43,5 +42,3 @@ void ev_properties_dialog_set_document (EvPropertiesDialog *properties, EvDocument *document); G_END_DECLS - -#endif /* __EV_PROPERTIES_DIALOG_H__ */ diff --git a/shell/ev-properties-fonts.h b/shell/ev-properties-fonts.h index 50a4ce04..694483da 100644 --- a/shell/ev-properties-fonts.h +++ b/shell/ev-properties-fonts.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_PROPERTIES_FONTS_H__ -#define __EV_PROPERTIES_FONTS_H__ +#pragma once #include "ev-document.h" @@ -44,5 +43,3 @@ void ev_properties_fonts_set_document (EvPropertiesFonts *properties, EvDocument *document); G_END_DECLS - -#endif /* __EV_PROPERTIES_FONTS_H__ */ diff --git a/shell/ev-properties-license.h b/shell/ev-properties-license.h index 287a1a6e..7764df3e 100644 --- a/shell/ev-properties-license.h +++ b/shell/ev-properties-license.h @@ -19,8 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_PROPERTIES_LICENSE_VIEW_H__ -#define __EV_PROPERTIES_LICENSE_VIEW_H__ +#pragma once #include @@ -46,5 +45,3 @@ void ev_properties_license_set_license (EvPropertiesLicense *properties_li EvDocumentLicense *license); G_END_DECLS - -#endif /* __EV_PROPERTIES_LICENSE_VIEW_H__ */ diff --git a/shell/ev-recent-view.h b/shell/ev-recent-view.h index d9b6677d..ea1186cc 100644 --- a/shell/ev-recent-view.h +++ b/shell/ev-recent-view.h @@ -17,8 +17,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_RECENT_VIEW_H__ -#define __EV_RECENT_VIEW_H__ +#pragma once #include #include @@ -49,5 +48,3 @@ GType ev_recent_view_get_type (void) G_GNUC_CONST; GtkWidget *ev_recent_view_new (void); G_END_DECLS - -#endif /* __EV_RECENT_VIEW_H__ */ diff --git a/shell/ev-sidebar-annotations.h b/shell/ev-sidebar-annotations.h index bb0dd96b..f9e192a5 100644 --- a/shell/ev-sidebar-annotations.h +++ b/shell/ev-sidebar-annotations.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_SIDEBAR_ANNOTATIONS_H__ -#define __EV_SIDEBAR_ANNOTATIONS_H__ +#pragma once #include #include @@ -57,6 +56,5 @@ void ev_sidebar_annotations_annot_added (EvSidebarAnnotations *sidebar_a void ev_sidebar_annotations_annot_changed (EvSidebarAnnotations *sidebar_annots, EvAnnotation *annot); void ev_sidebar_annotations_annot_removed (EvSidebarAnnotations *sidebar_annots); -G_END_DECLS -#endif /* __EV_SIDEBAR_ANNOTATIONS_H__ */ +G_END_DECLS diff --git a/shell/ev-sidebar-attachments.h b/shell/ev-sidebar-attachments.h index 43d7333f..a9011387 100644 --- a/shell/ev-sidebar-attachments.h +++ b/shell/ev-sidebar-attachments.h @@ -21,8 +21,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_SIDEBAR_ATTACHMENTS_H__ -#define __EV_SIDEBAR_ATTACHMENTS_H__ +#pragma once #include "ev-attachment.h" #include "ev-document.h" @@ -61,5 +60,3 @@ GType ev_sidebar_attachments_get_type (void) G_GNUC_CONST; GtkWidget *ev_sidebar_attachments_new (void); G_END_DECLS - -#endif /* __EV_SIDEBAR_ATTACHMENTS_H__ */ diff --git a/shell/ev-sidebar-bookmarks.h b/shell/ev-sidebar-bookmarks.h index 4efd133f..a6412a93 100644 --- a/shell/ev-sidebar-bookmarks.h +++ b/shell/ev-sidebar-bookmarks.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_SIDEBAR_BOOKMARKS_H__ -#define __EV_SIDEBAR_BOOKMARKS_H__ +#pragma once #include #include @@ -59,5 +58,3 @@ GtkWidget *ev_sidebar_bookmarks_new (void); void ev_sidebar_bookmarks_set_bookmarks (EvSidebarBookmarks *sidebar_bookmarks, EvBookmarks *bookmarks); G_END_DECLS - -#endif /* __EV_SIDEBAR_BOOKMARKS_H__ */ diff --git a/shell/ev-sidebar-layers.h b/shell/ev-sidebar-layers.h index a610b802..e19093ed 100644 --- a/shell/ev-sidebar-layers.h +++ b/shell/ev-sidebar-layers.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_SIDEBAR_LAYERS_H__ -#define __EV_SIDEBAR_LAYERS_H__ +#pragma once #include #include @@ -55,5 +54,3 @@ GtkWidget *ev_sidebar_layers_new (void); void ev_sidebar_layers_update_layers_state (EvSidebarLayers *sidebar_layers); G_END_DECLS - -#endif /* __EV_SIDEBAR_LAYERS_H__ */ diff --git a/shell/ev-sidebar-links.h b/shell/ev-sidebar-links.h index 12da4d1e..09c265ca 100644 --- a/shell/ev-sidebar-links.h +++ b/shell/ev-sidebar-links.h @@ -21,8 +21,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_SIDEBAR_LINKS_H__ -#define __EV_SIDEBAR_LINKS_H__ +#pragma once #include @@ -60,7 +59,3 @@ GType ev_sidebar_links_get_type (void); GtkWidget *ev_sidebar_links_new (void); G_END_DECLS - -#endif /* __EV_SIDEBAR_LINKS_H__ */ - - diff --git a/shell/ev-sidebar-page.h b/shell/ev-sidebar-page.h index 21ef92cf..eb4f0054 100644 --- a/shell/ev-sidebar-page.h +++ b/shell/ev-sidebar-page.h @@ -18,8 +18,7 @@ * */ -#ifndef EV_SIDEBAR_PAGE_H -#define EV_SIDEBAR_PAGE_H +#pragma once #include #include @@ -60,5 +59,3 @@ const gchar* ev_sidebar_page_get_label (EvSidebarPage *page); G_END_DECLS - -#endif /* EV_SIDEBAR_PAGE */ diff --git a/shell/ev-sidebar-thumbnails.h b/shell/ev-sidebar-thumbnails.h index b989a3b7..9aba0454 100644 --- a/shell/ev-sidebar-thumbnails.h +++ b/shell/ev-sidebar-thumbnails.h @@ -21,8 +21,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_SIDEBAR_THUMBNAILS_H__ -#define __EV_SIDEBAR_THUMBNAILS_H__ +#pragma once #include @@ -53,7 +52,3 @@ GType ev_sidebar_thumbnails_get_type (void) G_GNUC_CONST; GtkWidget *ev_sidebar_thumbnails_new (void); G_END_DECLS - -#endif /* __EV_SIDEBAR_THUMBNAILS_H__ */ - - diff --git a/shell/ev-sidebar.h b/shell/ev-sidebar.h index 74ba1cdc..b0e1e557 100644 --- a/shell/ev-sidebar.h +++ b/shell/ev-sidebar.h @@ -23,8 +23,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_SIDEBAR_H__ -#define __EV_SIDEBAR_H__ +#pragma once #include @@ -64,7 +63,3 @@ void ev_sidebar_set_model (EvSidebar *ev_sidebar, GtkWidget *ev_sidebar_get_current_page (EvSidebar *ev_sidebar); G_END_DECLS - -#endif /* __EV_SIDEBAR_H__ */ - - diff --git a/shell/ev-toolbar.h b/shell/ev-toolbar.h index 9ad76fc5..432563e7 100644 --- a/shell/ev-toolbar.h +++ b/shell/ev-toolbar.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_TOOLBAR_H__ -#define __EV_TOOLBAR_H__ +#pragma once #include #include "ev-window.h" @@ -60,5 +59,3 @@ void ev_toolbar_set_mode (EvToolbar *ev_toolbar, EvToolbarMode ev_toolbar_get_mode (EvToolbar *ev_toolbar); G_END_DECLS - -#endif /* __EV_TOOLBAR_H__ */ diff --git a/shell/ev-utils.h b/shell/ev-utils.h index 846df37c..8eb6bdff 100644 --- a/shell/ev-utils.h +++ b/shell/ev-utils.h @@ -18,8 +18,7 @@ * */ -#ifndef __EV_UTILS_H__ -#define __EV_UTILS_H__ +#pragma once #include #include @@ -39,5 +38,3 @@ GdkPixbufFormat* get_gdk_pixbuf_format_by_extension (const gchar *uri); gchar* ev_str_replace (const char *str, const char *substr, const char *repl); G_END_DECLS - -#endif /* __EV_VIEW_H__ */ diff --git a/shell/ev-window-title.h b/shell/ev-window-title.h index a25ace47..1e585704 100644 --- a/shell/ev-window-title.h +++ b/shell/ev-window-title.h @@ -17,8 +17,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef __EV_WINDOW_TITLE_H__ -#define __EV_WINDOW_TITLE_H__ +#pragma once #include "ev-window.h" #include "ev-document.h" @@ -44,5 +43,3 @@ void ev_window_title_set_filename (EvWindowTitle *window_title, void ev_window_title_free (EvWindowTitle *window_title); G_END_DECLS - -#endif /* __EV_WINDOW_TITLE_H__ */ diff --git a/shell/ev-window.h b/shell/ev-window.h index 65fe322b..50edb11e 100644 --- a/shell/ev-window.h +++ b/shell/ev-window.h @@ -21,8 +21,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_WINDOW_H -#define EV_WINDOW_H +#pragma once #include #include @@ -105,5 +104,3 @@ void ev_window_set_divider_position (EvWindow *ev_window, gint sidebar_width); G_END_DECLS - -#endif /* !EV_WINDOW_H */ diff --git a/shell/ev-zoom-action.h b/shell/ev-zoom-action.h index 0d962176..d01dc11c 100644 --- a/shell/ev-zoom-action.h +++ b/shell/ev-zoom-action.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef EV_ZOOM_ACTION_H -#define EV_ZOOM_ACTION_H +#pragma once #include #include @@ -52,5 +51,3 @@ GtkWidget *ev_zoom_action_new (EvDocumentModel *model, gboolean ev_zoom_action_get_popup_shown (EvZoomAction *action); G_END_DECLS - -#endif