[gnome-software/wip/hughsie/pragma-once: 3/3] Use '#pragma once' to avoid a lot of boilerplate



commit 3fb66aa1e876fd37d0841d47a72db85a3368d07d
Author: Richard Hughes <richard hughsie com>
Date:   Sun Feb 10 12:13:43 2019 +0000

    Use '#pragma once' to avoid a lot of boilerplate

 lib/gnome-software-private.h                             | 6 +-----
 lib/gnome-software.h                                     | 6 +-----
 lib/gs-app-collation.h                                   | 5 +----
 lib/gs-app-list-private.h                                | 5 +----
 lib/gs-app-list.h                                        | 5 +----
 lib/gs-app-private.h                                     | 5 +----
 lib/gs-app.h                                             | 5 +----
 lib/gs-auth.h                                            | 5 +----
 lib/gs-category-private.h                                | 5 +----
 lib/gs-category.h                                        | 5 +----
 lib/gs-debug.h                                           | 5 +----
 lib/gs-ioprio.h                                          | 5 +----
 lib/gs-os-release.c                                      | 3 ---
 lib/gs-os-release.h                                      | 6 ------
 lib/gs-plugin-event.h                                    | 5 +----
 lib/gs-plugin-job-private.h                              | 5 +----
 lib/gs-plugin-job.h                                      | 5 +----
 lib/gs-plugin-loader-sync.h                              | 5 +----
 lib/gs-plugin-loader.h                                   | 6 +-----
 lib/gs-plugin-private.h                                  | 5 +----
 lib/gs-plugin-types.h                                    | 5 +----
 lib/gs-plugin-vfuncs.h                                   | 6 +-----
 lib/gs-plugin.h                                          | 5 +----
 lib/gs-price.h                                           | 5 +----
 lib/gs-test.h                                            | 5 +----
 lib/gs-utils.h                                           | 5 +----
 plugins/core/gs-appstream.h                              | 5 +----
 plugins/core/gs-desktop-common.h                         | 5 +----
 plugins/external-appstream/gs-external-appstream-utils.h | 5 +----
 plugins/flatpak/gs-flatpak-app.h                         | 5 +----
 plugins/flatpak/gs-flatpak-transaction.h                 | 6 +-----
 plugins/flatpak/gs-flatpak-utils.h                       | 6 +-----
 plugins/flatpak/gs-flatpak.h                             | 6 +-----
 plugins/fwupd/gs-fwupd-app.h                             | 5 +----
 plugins/packagekit/gs-markdown.h                         | 6 +-----
 plugins/packagekit/gs-packagekit-helper.h                | 6 +-----
 plugins/packagekit/packagekit-common.h                   | 5 +----
 src/gs-app-addon-row.h                                   | 5 +----
 src/gs-app-folder-dialog.h                               | 5 +----
 src/gs-app-row.h                                         | 5 +----
 src/gs-app-tile.h                                        | 5 +----
 src/gs-application.h                                     | 5 +----
 src/gs-auth-dialog.h                                     | 5 +----
 src/gs-category-page.h                                   | 5 +----
 src/gs-category-tile.h                                   | 5 +----
 src/gs-common.h                                          | 5 +----
 src/gs-content-rating.h                                  | 5 +----
 src/gs-css.h                                             | 5 +----
 src/gs-dbus-helper.h                                     | 5 +----
 src/gs-details-page.h                                    | 5 +----
 src/gs-extras-page.h                                     | 5 +----
 src/gs-feature-tile.h                                    | 5 +----
 src/gs-first-run-dialog.h                                | 5 +----
 src/gs-fixed-size-bin.h                                  | 5 +----
 src/gs-folders.h                                         | 5 +----
 src/gs-hiding-box.h                                      | 5 +----
 src/gs-history-dialog.h                                  | 5 +----
 src/gs-info-bar.h                                        | 5 +----
 src/gs-installed-page.h                                  | 5 +----
 src/gs-language.h                                        | 5 +----
 src/gs-loading-page.h                                    | 5 +----
 src/gs-moderate-page.h                                   | 5 +----
 src/gs-origin-popover-row.h                              | 5 +----
 src/gs-overview-page.h                                   | 5 +----
 src/gs-page.h                                            | 5 +----
 src/gs-popular-tile.h                                    | 5 +----
 src/gs-prefs-dialog.h                                    | 5 +----
 src/gs-progress-button.h                                 | 5 +----
 src/gs-removal-dialog.h                                  | 5 +----
 src/gs-repo-row.h                                        | 5 +----
 src/gs-repos-dialog.h                                    | 5 +----
 src/gs-review-bar.h                                      | 5 +----
 src/gs-review-dialog.h                                   | 5 +----
 src/gs-review-histogram.h                                | 5 +----
 src/gs-review-row.h                                      | 5 +----
 src/gs-screenshot-image.h                                | 5 +----
 src/gs-search-page.h                                     | 5 +----
 src/gs-shell-search-provider.h                           | 5 +----
 src/gs-shell.h                                           | 5 +----
 src/gs-star-widget.h                                     | 5 +----
 src/gs-summary-tile.h                                    | 5 +----
 src/gs-third-party-repo-row.h                            | 5 +----
 src/gs-update-dialog.h                                   | 5 +----
 src/gs-update-list.h                                     | 5 +----
 src/gs-update-monitor.h                                  | 5 +----
 src/gs-updates-page.h                                    | 5 +----
 src/gs-updates-section.h                                 | 5 +----
 src/gs-upgrade-banner.h                                  | 5 +----
 src/gs-vendor.h                                          | 5 +----
 89 files changed, 87 insertions(+), 366 deletions(-)
---
diff --git a/lib/gnome-software-private.h b/lib/gnome-software-private.h
index fc9a6445..b41e9ec8 100644
--- a/lib/gnome-software-private.h
+++ b/lib/gnome-software-private.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GNOME_SOFTWARE_PRIVATE_H__
-#define __GNOME_SOFTWARE_PRIVATE_H__
+#pragma once
 
 #ifndef I_KNOW_THE_GNOME_SOFTWARE_API_IS_SUBJECT_TO_CHANGE
 #define I_KNOW_THE_GNOME_SOFTWARE_API_IS_SUBJECT_TO_CHANGE
@@ -21,6 +20,3 @@
 #include <gs-plugin-loader.h>
 #include <gs-plugin-loader-sync.h>
 #include <gs-plugin-private.h>
-
-#endif /* __GNOME_SOFTWARE_PRIVATE_H__ */
-
diff --git a/lib/gnome-software.h b/lib/gnome-software.h
index eed77078..6b078961 100644
--- a/lib/gnome-software.h
+++ b/lib/gnome-software.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GNOME_SOFTWARE_H__
-#define __GNOME_SOFTWARE_H__
+#pragma once
 
 #ifndef I_KNOW_THE_GNOME_SOFTWARE_API_IS_SUBJECT_TO_CHANGE
 #error You have to define I_KNOW_THE_GNOME_SOFTWARE_API_IS_SUBJECT_TO_CHANGE
@@ -21,6 +20,3 @@
 #include <gs-plugin.h>
 #include <gs-plugin-vfuncs.h>
 #include <gs-utils.h>
-
-#endif /* __GNOME_SOFTWARE_H__ */
-
diff --git a/lib/gs-app-collation.h b/lib/gs-app-collation.h
index f39ec015..ff57e21b 100644
--- a/lib/gs-app-collation.h
+++ b/lib/gs-app-collation.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_APP_COLLATION_H
-#define __GS_APP_COLLATION_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -19,5 +18,3 @@ GsAppList     *gs_app_get_addons              (GsApp          *app);
 GsAppList      *gs_app_get_history             (GsApp          *app);
 
 G_END_DECLS
-
-#endif /* __GS_APP_COLLATION_H */
diff --git a/lib/gs-app-list-private.h b/lib/gs-app-list-private.h
index d475699e..5c77f552 100644
--- a/lib/gs-app-list-private.h
+++ b/lib/gs-app-list-private.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_APP_LIST_PRIVATE_H
-#define __GS_APP_LIST_PRIVATE_H
+#pragma once
 
 #include "gs-app-list.h"
 
@@ -73,5 +72,3 @@ AsAppState     gs_app_list_get_state          (GsAppList      *list);
 guint           gs_app_list_get_progress       (GsAppList      *list);
 
 G_END_DECLS
-
-#endif /* __GS_APP_LIST_PRIVATE_H */
diff --git a/lib/gs-app-list.h b/lib/gs-app-list.h
index 221e6da6..daff0f58 100644
--- a/lib/gs-app-list.h
+++ b/lib/gs-app-list.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_APP_LIST_H
-#define __GS_APP_LIST_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -44,5 +43,3 @@ void           gs_app_list_filter             (GsAppList      *list,
                                                 gpointer        user_data);
 
 G_END_DECLS
-
-#endif /* __GS_APP_LIST_H */
diff --git a/lib/gs-app-private.h b/lib/gs-app-private.h
index 1bf126a3..95025e65 100644
--- a/lib/gs-app-private.h
+++ b/lib/gs-app-private.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_APP_PRIVATE_H
-#define __GS_APP_PRIVATE_H
+#pragma once
 
 #include "gs-app.h"
 #include "gs-plugin-types.h"
@@ -28,5 +27,3 @@ gint           gs_app_compare_priority        (GsApp          *app1,
                                                 GsApp          *app2);
 
 G_END_DECLS
-
-#endif /* __GS_APP_PRIVATE_H */
diff --git a/lib/gs-app.h b/lib/gs-app.h
index a206962a..18d4bb4b 100644
--- a/lib/gs-app.h
+++ b/lib/gs-app.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_APP_H
-#define __GS_APP_H
+#pragma once
 
 #include <glib-object.h>
 #include <gdk/gdk.h>
@@ -384,5 +383,3 @@ void                 gs_app_set_update_permissions  (GsApp          *app,
                                                 GsAppPermissions update_permissions);
 
 G_END_DECLS
-
-#endif /* __GS_APP_H */
diff --git a/lib/gs-auth.h b/lib/gs-auth.h
index 6fb83cb0..40a593f0 100644
--- a/lib/gs-auth.h
+++ b/lib/gs-auth.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_AUTH_H
-#define __GS_AUTH_H
+#pragma once
 
 #include <glib-object.h>
 #include <gio/gio.h>
@@ -38,5 +37,3 @@ GoaObject     *gs_auth_peek_goa_object        (GsAuth         *auth);
 void            gs_auth_set_goa_object         (GsAuth         *auth,
                                                 GoaObject      *goa_object);
 G_END_DECLS
-
-#endif /* __GS_AUTH_H */
diff --git a/lib/gs-category-private.h b/lib/gs-category-private.h
index 805b4452..b102c34a 100644
--- a/lib/gs-category-private.h
+++ b/lib/gs-category-private.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_CATEGORY_PRIVATE_H
-#define __GS_CATEGORY_PRIVATE_H
+#pragma once
 
 #include "gs-category.h"
 
@@ -19,5 +18,3 @@ void           gs_category_set_size           (GsCategory     *category,
 gchar          *gs_category_to_string          (GsCategory     *category);
 
 G_END_DECLS
-
-#endif /* __GS_CATEGORY_PRIVATE_H */
diff --git a/lib/gs-category.h b/lib/gs-category.h
index e816c535..0dad2e9b 100644
--- a/lib/gs-category.h
+++ b/lib/gs-category.h
@@ -7,8 +7,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_CATEGORY_H
-#define __GS_CATEGORY_H
+#pragma once
 
 #include <glib-object.h>
 #include <gdk/gdk.h>
@@ -52,5 +51,3 @@ guint          gs_category_get_size           (GsCategory     *category);
 void            gs_category_increment_size     (GsCategory     *category);
 
 G_END_DECLS
-
-#endif /* __GS_CATEGORY_H */
diff --git a/lib/gs-debug.h b/lib/gs-debug.h
index 67449953..d001ae8c 100644
--- a/lib/gs-debug.h
+++ b/lib/gs-debug.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_DEBUG_H
-#define __GS_DEBUG_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -19,5 +18,3 @@ G_DECLARE_FINAL_TYPE (GsDebug, gs_debug, GS, DEBUG, GObject)
 GsDebug                *gs_debug_new           (void);
 
 G_END_DECLS
-
-#endif /* __GS_DEBUG_H */
diff --git a/lib/gs-ioprio.h b/lib/gs-ioprio.h
index e55b223e..4fc39633 100644
--- a/lib/gs-ioprio.h
+++ b/lib/gs-ioprio.h
@@ -18,8 +18,7 @@
  * Boston, MA  02110-1301, USA.
  */
 
-#ifndef __GS_IOPRIO_H__
-#define __GS_IOPRIO_H__
+#pragma once
 
 #include <glib.h>
 
@@ -28,5 +27,3 @@ G_BEGIN_DECLS
 void gs_ioprio_init (void);
 
 G_END_DECLS
-
-#endif /* __GS_IOPRIO_H__ */
diff --git a/lib/gs-os-release.c b/lib/gs-os-release.c
index ed6f1d8d..988155a8 100644
--- a/lib/gs-os-release.c
+++ b/lib/gs-os-release.c
@@ -6,9 +6,6 @@
  * SPDX-License-Identifier: LGPL-2.1+
  */
 
-#pragma once
- */
-
 /**
  * SECTION:gs-os-release
  * @title: GsOsRelease
diff --git a/lib/gs-os-release.h b/lib/gs-os-release.h
index dac8202a..2ca81871 100644
--- a/lib/gs-os-release.h
+++ b/lib/gs-os-release.h
@@ -7,10 +7,6 @@
  */
 
 #pragma once
- */
-
-#ifndef __GS_OS_RELEASE_H
-#define __GS_OS_RELEASE_H
 
 #include <glib-object.h>
 
@@ -34,5 +30,3 @@ const gchar           *gs_os_release_get_distro_codename      (GsOsRelease    *os_release);
 const gchar            *gs_os_release_get_home_url             (GsOsRelease    *os_release);
 
 G_END_DECLS
-
-#endif /* __GS_OS_RELEASE_H */
diff --git a/lib/gs-plugin-event.h b/lib/gs-plugin-event.h
index 92b38f62..fcc50375 100644
--- a/lib/gs-plugin-event.h
+++ b/lib/gs-plugin-event.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_PLUGIN_EVENT
-#define __GS_PLUGIN_EVENT
+#pragma once
 
 #include <glib-object.h>
 
@@ -65,5 +64,3 @@ gboolean               gs_plugin_event_has_flag       (GsPluginEvent          *event,
                                                         GsPluginEventFlag       flag);
 
 G_END_DECLS
-
-#endif /* __GS_PLUGIN_EVENT */
diff --git a/lib/gs-plugin-job-private.h b/lib/gs-plugin-job-private.h
index 9f5a52e9..64ee39b7 100644
--- a/lib/gs-plugin-job-private.h
+++ b/lib/gs-plugin-job-private.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_PLUGIN_JOB_PRIVATE
-#define __GS_PLUGIN_JOB_PRIVATE
+#pragma once
 
 #include <glib-object.h>
 
@@ -44,5 +43,3 @@ void                   gs_plugin_job_set_action               (GsPluginJob    *self,
                                                                 GsPluginAction  action);
 
 G_END_DECLS
-
-#endif /* __GS_PLUGIN_JOB_PRIVATE */
diff --git a/lib/gs-plugin-job.h b/lib/gs-plugin-job.h
index 79efebdf..a9863343 100644
--- a/lib/gs-plugin-job.h
+++ b/lib/gs-plugin-job.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_PLUGIN_JOB
-#define __GS_PLUGIN_JOB
+#pragma once
 
 #include <glib-object.h>
 
@@ -62,5 +61,3 @@ void           gs_plugin_job_set_price                (GsPluginJob    *self,
 #define                 gs_plugin_job_newv(a,...)              
GS_PLUGIN_JOB(g_object_new(GS_TYPE_PLUGIN_JOB, "action", a, __VA_ARGS__))
 
 G_END_DECLS
-
-#endif /* __GS_PLUGIN_JOB */
diff --git a/lib/gs-plugin-loader-sync.h b/lib/gs-plugin-loader-sync.h
index 0adca3c0..8d94f717 100644
--- a/lib/gs-plugin-loader-sync.h
+++ b/lib/gs-plugin-loader-sync.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_PLUGIN_LOADER_SYNC_H
-#define __GS_PLUGIN_LOADER_SYNC_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -32,5 +31,3 @@ GPtrArray     *gs_plugin_loader_job_get_categories    (GsPluginLoader *plugin_loader,
                                                         GError         **error);
 
 G_END_DECLS
-
-#endif /* __GS_PLUGIN_LOADER_SYNC_H */
diff --git a/lib/gs-plugin-loader.h b/lib/gs-plugin-loader.h
index 27869801..1d0c10f7 100644
--- a/lib/gs-plugin-loader.h
+++ b/lib/gs-plugin-loader.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_PLUGIN_LOADER_H
-#define __GS_PLUGIN_LOADER_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -94,7 +93,4 @@ GsPlugin      *gs_plugin_loader_find_plugin           (GsPluginLoader *plugin_loader,
 void            gs_plugin_loader_set_max_parallel_ops  (GsPluginLoader *plugin_loader,
                                                         guint           max_ops);
 
-
 G_END_DECLS
-
-#endif /* __GS_PLUGIN_LOADER_H */
diff --git a/lib/gs-plugin-private.h b/lib/gs-plugin-private.h
index c5673b09..d6a6dfbd 100644
--- a/lib/gs-plugin-private.h
+++ b/lib/gs-plugin-private.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_PLUGIN_PRIVATE_H
-#define __GS_PLUGIN_PRIVATE_H
+#pragma once
 
 #include <appstream-glib.h>
 #include <glib-object.h>
@@ -53,5 +52,3 @@ void           gs_plugin_set_network_monitor          (GsPlugin               *plugin,
                                                         GNetworkMonitor        *monitor);
 
 G_END_DECLS
-
-#endif /* __GS_PLUGIN_PRIVATE_H */
diff --git a/lib/gs-plugin-types.h b/lib/gs-plugin-types.h
index 7d461a3d..2c1eabee 100644
--- a/lib/gs-plugin-types.h
+++ b/lib/gs-plugin-types.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_PLUGIN_TYPES_H
-#define __GS_PLUGIN_TYPES_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -280,5 +279,3 @@ typedef enum {
 } GsPluginAction;
 
 G_END_DECLS
-
-#endif /* __GS_PLUGIN_TYPES_H */
diff --git a/lib/gs-plugin-vfuncs.h b/lib/gs-plugin-vfuncs.h
index 82a6a2e4..4cd28cb3 100644
--- a/lib/gs-plugin-vfuncs.h
+++ b/lib/gs-plugin-vfuncs.h
@@ -5,6 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
+#pragma once
 
 /**
  * SECTION:gs-plugin-vfuncs
@@ -14,9 +15,6 @@
  * @short_description: Vfuncs that plugins can implement
  */
 
-#ifndef __GS_PLUGIN_VFUNCS_H
-#define __GS_PLUGIN_VFUNCS_H
-
 #include <appstream-glib.h>
 #include <glib-object.h>
 #include <gmodule.h>
@@ -964,5 +962,3 @@ gboolean     gs_plugin_update                       (GsPlugin       *plugin,
                                                         GError         **error);
 
 G_END_DECLS
-
-#endif /* __GS_PLUGIN_VFUNCS_H */
diff --git a/lib/gs-plugin.h b/lib/gs-plugin.h
index cd4fcff9..d4595186 100644
--- a/lib/gs-plugin.h
+++ b/lib/gs-plugin.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_PLUGIN_H
-#define __GS_PLUGIN_H
+#pragma once
 
 #include <appstream-glib.h>
 #include <glib-object.h>
@@ -124,5 +123,3 @@ void                 gs_plugin_set_allow_updates            (GsPlugin       *plugin,
 gboolean        gs_plugin_get_network_available        (GsPlugin       *plugin);
 
 G_END_DECLS
-
-#endif /* __GS_PLUGIN_H */
diff --git a/lib/gs-price.h b/lib/gs-price.h
index 28e97251..fd5d0336 100644
--- a/lib/gs-price.h
+++ b/lib/gs-price.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_PRICE_H
-#define __GS_PRICE_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -30,5 +29,3 @@ void           gs_price_set_currency                  (GsPrice        *price,
 gchar          *gs_price_to_string                     (GsPrice        *price);
 
 G_END_DECLS
-
-#endif /* __GS_PRICE_H */
diff --git a/lib/gs-test.h b/lib/gs-test.h
index dd4dfa98..4e620bc5 100644
--- a/lib/gs-test.h
+++ b/lib/gs-test.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_TEST_H
-#define __GS_TEST_H
+#pragma once
 
 #include "gs-app.h"
 
@@ -17,5 +16,3 @@ gchar *gs_test_get_filename                   (const gchar    *testdatadir,
                                                 const gchar    *filename);
 
 G_END_DECLS
-
-#endif /* __GS_TEST_H */
diff --git a/lib/gs-utils.h b/lib/gs-utils.h
index e1fddb5a..9dd11e57 100644
--- a/lib/gs-utils.h
+++ b/lib/gs-utils.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_UTILS_H
-#define __GS_UTILS_H
+#pragma once
 
 #include <gio/gdesktopappinfo.h>
 #include <gtk/gtk.h>
@@ -91,5 +90,3 @@ gboolean       gs_utils_parse_evr             (const gchar     *evr,
                                                 gchar          **out_release);
 
 G_END_DECLS
-
-#endif /* __GS_UTILS_H */
diff --git a/plugins/core/gs-appstream.h b/plugins/core/gs-appstream.h
index 9e2ea7e4..aa0066d2 100644
--- a/plugins/core/gs-appstream.h
+++ b/plugins/core/gs-appstream.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __APPSTREAM_COMMON_H
-#define __APPSTREAM_COMMON_H
+#pragma once
 
 #include <gnome-software.h>
 #include <xmlb.h>
@@ -74,5 +73,3 @@ void           gs_appstream_component_add_provide     (XbBuilderNode  *component,
                                                         const gchar    *str);
 
 G_END_DECLS
-
-#endif /* __APPSTREAM_COMMON_H */
diff --git a/plugins/core/gs-desktop-common.h b/plugins/core/gs-desktop-common.h
index f81c5c2a..6fde5025 100644
--- a/plugins/core/gs-desktop-common.h
+++ b/plugins/core/gs-desktop-common.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_DESKTOP_GROUP_H
-#define __GS_DESKTOP_GROUP_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -30,5 +29,3 @@ typedef struct {
 const GsDesktopData    *gs_desktop_get_data            (void);
 
 G_END_DECLS
-
-#endif /* __GS_DESKTOP_GROUP_H */
diff --git a/plugins/external-appstream/gs-external-appstream-utils.h 
b/plugins/external-appstream/gs-external-appstream-utils.h
index dede5d88..b67220bc 100644
--- a/plugins/external-appstream/gs-external-appstream-utils.h
+++ b/plugins/external-appstream/gs-external-appstream-utils.h
@@ -7,13 +7,10 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_EXTERNAL_APPSTREAM_UTILS_H
-#define GS_EXTERNAL_APPSTREAM_UTILS_H
+#pragma once
 
 #include <config.h>
 #include <glib.h>
 
 const gchar    *gs_external_appstream_utils_get_system_dir (void);
 gchar          *gs_external_appstream_utils_get_file_cache_path (const gchar   *file_name);
-
-#endif /* GS_EXTERNAL_APPSTREAM_UTILS_H */
diff --git a/plugins/flatpak/gs-flatpak-app.h b/plugins/flatpak/gs-flatpak-app.h
index eff68c02..ba4c23cd 100644
--- a/plugins/flatpak/gs-flatpak-app.h
+++ b/plugins/flatpak/gs-flatpak-app.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_FLATPAK_APP_H
-#define __GS_FLATPAK_APP_H
+#pragma once
 
 #include <gnome-software.h>
 #include <flatpak.h>
@@ -63,5 +62,3 @@ void                   gs_flatpak_app_set_main_app_ref_name   (GsApp          *app,
 const gchar            *gs_flatpak_app_get_main_app_ref_name   (GsApp          *app);
 
 G_END_DECLS
-
-#endif /* __GS_FLATPAK_APP_H */
diff --git a/plugins/flatpak/gs-flatpak-transaction.h b/plugins/flatpak/gs-flatpak-transaction.h
index ff9821d1..db8edefb 100644
--- a/plugins/flatpak/gs-flatpak-transaction.h
+++ b/plugins/flatpak/gs-flatpak-transaction.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_FLATPAK_TRANSACTION_H
-#define __GS_FLATPAK_TRANSACTION_H
+#pragma once
 
 #include <gnome-software.h>
 #include <flatpak.h>
@@ -30,6 +29,3 @@ gboolean               gs_flatpak_transaction_run             (FlatpakTransaction     
*transaction,
                                                                 GError                 **error);
 
 G_END_DECLS
-
-#endif /* __GS_FLATPAK_TRANSACTION_H */
-
diff --git a/plugins/flatpak/gs-flatpak-utils.h b/plugins/flatpak/gs-flatpak-utils.h
index dbe33012..64f7713a 100644
--- a/plugins/flatpak/gs-flatpak-utils.h
+++ b/plugins/flatpak/gs-flatpak-utils.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_FLATPAK_UTILS_H
-#define __GS_FLATPAK_UTILS_H
+#pragma once
 
 G_BEGIN_DECLS
 
@@ -19,6 +18,3 @@ GsApp         *gs_flatpak_app_new_from_repo_file      (GFile          *file,
                                                         GError         **error);
 
 G_END_DECLS
-
-#endif /* __GS_FLATPAK_UTILS_H */
-
diff --git a/plugins/flatpak/gs-flatpak.h b/plugins/flatpak/gs-flatpak.h
index 90417dc8..139d28f5 100644
--- a/plugins/flatpak/gs-flatpak.h
+++ b/plugins/flatpak/gs-flatpak.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_FLATPAK_H
-#define __GS_FLATPAK_H
+#pragma once
 
 #include <gnome-software.h>
 #include <flatpak.h>
@@ -126,6 +125,3 @@ gboolean    gs_flatpak_add_recent           (GsFlatpak              *self,
                                                 GError                 **error);
 
 G_END_DECLS
-
-#endif /* __GS_FLATPAK_H */
-
diff --git a/plugins/fwupd/gs-fwupd-app.h b/plugins/fwupd/gs-fwupd-app.h
index c340eeb4..fdb63e52 100644
--- a/plugins/fwupd/gs-fwupd-app.h
+++ b/plugins/fwupd/gs-fwupd-app.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_FWUPD_APP_H
-#define __GS_FWUPD_APP_H
+#pragma once
 
 #include <gnome-software.h>
 #include <fwupd.h>
@@ -29,5 +28,3 @@ void                   gs_fwupd_app_set_from_release          (GsApp          *app,
                                                                 FwupdRelease   *rel);
 
 G_END_DECLS
-
-#endif /* __GS_FWUPD_APP_H */
diff --git a/plugins/packagekit/gs-markdown.h b/plugins/packagekit/gs-markdown.h
index f3d459ff..932d6985 100644
--- a/plugins/packagekit/gs-markdown.h
+++ b/plugins/packagekit/gs-markdown.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_MARKDOWN_H
-#define __GS_MARKDOWN_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -39,6 +38,3 @@ gchar         *gs_markdown_parse                      (GsMarkdown             *self,
                                                         const gchar            *text);
 
 G_END_DECLS
-
-#endif /* __GS_MARKDOWN_H */
-
diff --git a/plugins/packagekit/gs-packagekit-helper.h b/plugins/packagekit/gs-packagekit-helper.h
index 61cd05b9..333d64e5 100644
--- a/plugins/packagekit/gs-packagekit-helper.h
+++ b/plugins/packagekit/gs-packagekit-helper.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_PACKAGEKIT_HELPER_H
-#define __GS_PACKAGEKIT_HELPER_H
+#pragma once
 
 #include <glib-object.h>
 #include <gnome-software.h>
@@ -30,6 +29,3 @@ void           gs_packagekit_helper_cb                (PkProgress             *progress,
 
 
 G_END_DECLS
-
-#endif /* __GS_PACKAGEKIT_HELPER_H */
-
diff --git a/plugins/packagekit/packagekit-common.h b/plugins/packagekit/packagekit-common.h
index c8623cf8..e9a602fb 100644
--- a/plugins/packagekit/packagekit-common.h
+++ b/plugins/packagekit/packagekit-common.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __PACKAGEKIT_COMMON_H
-#define __PACKAGEKIT_COMMON_H
+#pragma once
 
 #include <glib.h>
 #include <gnome-software.h>
@@ -37,5 +36,3 @@ void          gs_plugin_packagekit_set_packaging_format       (GsPlugin *plugin,
                                                                 GsApp *app);
 
 G_END_DECLS
-
-#endif /* __PACKAGEKIT_COMMON_H */
diff --git a/src/gs-app-addon-row.h b/src/gs-app-addon-row.h
index e34551ee..b0f083f4 100644
--- a/src/gs-app-addon-row.h
+++ b/src/gs-app-addon-row.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_APP_ADDON_ROW_H
-#define GS_APP_ADDON_ROW_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -27,5 +26,3 @@ gboolean       gs_app_addon_row_get_selected          (GsAppAddonRow  *row);
 GsApp          *gs_app_addon_row_get_addon             (GsAppAddonRow  *row);
 
 G_END_DECLS
-
-#endif /* GS_APP_ADDON_ROW_H */
diff --git a/src/gs-app-folder-dialog.h b/src/gs-app-folder-dialog.h
index 55cfe7f7..246d5f5b 100644
--- a/src/gs-app-folder-dialog.h
+++ b/src/gs-app-folder-dialog.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_APP_FOLDER_DIALOG_H
-#define GS_APP_FOLDER_DIALOG_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -22,5 +21,3 @@ GtkWidget     *gs_app_folder_dialog_new       (GtkWindow      *parent,
                                                 GList          *apps);
 
 G_END_DECLS
-
-#endif /* GS_APP_FOLDER_DIALOG_H */
diff --git a/src/gs-app-row.h b/src/gs-app-row.h
index 9f1d68dc..d374b45b 100644
--- a/src/gs-app-row.h
+++ b/src/gs-app-row.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_APP_ROW_H
-#define GS_APP_ROW_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -54,5 +53,3 @@ void           gs_app_row_set_show_installed_size     (GsAppRow       *app_row,
                                                         gboolean        show_size);
 
 G_END_DECLS
-
-#endif /* GS_APP_ROW_H */
diff --git a/src/gs-app-tile.h b/src/gs-app-tile.h
index fe38af7b..6469b5d6 100644
--- a/src/gs-app-tile.h
+++ b/src/gs-app-tile.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_APP_TILE_H
-#define GS_APP_TILE_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -33,5 +32,3 @@ void           gs_app_tile_set_app    (GsAppTile      *tile,
                                         GsApp          *cat);
 
 G_END_DECLS
-
-#endif /* GS_APP_TILE_H */
diff --git a/src/gs-application.h b/src/gs-application.h
index e6da99f8..47b4acec 100644
--- a/src/gs-application.h
+++ b/src/gs-application.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_APPLICATION_H
-#define __GS_APPLICATION_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -19,5 +18,3 @@ G_DECLARE_FINAL_TYPE (GsApplication, gs_application, GS, APPLICATION, GtkApplica
 GsApplication  *gs_application_new             (void);
 GsPluginLoader *gs_application_get_plugin_loader       (GsApplication *application);
 gboolean        gs_application_has_active_window       (GsApplication *application);
-
-#endif  /* __GS_APPLICATION_H */
diff --git a/src/gs-auth-dialog.h b/src/gs-auth-dialog.h
index 16a43fd4..a8ed4ff7 100644
--- a/src/gs-auth-dialog.h
+++ b/src/gs-auth-dialog.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_AUTH_DIALOG_H
-#define GS_AUTH_DIALOG_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -24,5 +23,3 @@ GtkWidget     *gs_auth_dialog_new     (GsPluginLoader *plugin_loader,
                                         GError         **error);
 
 G_END_DECLS
-
-#endif /* GS_AUTH_DIALOG_H */
diff --git a/src/gs-category-page.h b/src/gs-category-page.h
index 8f364a57..a661f7fd 100644
--- a/src/gs-category-page.h
+++ b/src/gs-category-page.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_CATEGORY_PAGE_H
-#define __GS_CATEGORY_PAGE_H
+#pragma once
 
 #include "gs-page.h"
 
@@ -23,5 +22,3 @@ void           gs_category_page_set_category  (GsCategoryPage         *self,
 GsCategory     *gs_category_page_get_category  (GsCategoryPage         *self);
 
 G_END_DECLS
-
-#endif /* __GS_CATEGORY_PAGE_H */
diff --git a/src/gs-category-tile.h b/src/gs-category-tile.h
index 9d048f86..3d2fdd73 100644
--- a/src/gs-category-tile.h
+++ b/src/gs-category-tile.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_CATEGORY_TILE_H
-#define GS_CATEGORY_TILE_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -27,5 +26,3 @@ void           gs_category_tile_set_colorful          (GsCategoryTile *tile,
                                                         gboolean        colorful);
 
 G_END_DECLS
-
-#endif /* GS_CATEGORY_TILE_H */
diff --git a/src/gs-common.h b/src/gs-common.h
index 59db22f4..7b5e9acd 100644
--- a/src/gs-common.h
+++ b/src/gs-common.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_COMMON_H
-#define __GS_COMMON_H
+#pragma once
 
 #include <gio/gdesktopappinfo.h>
 #include <gtk/gtk.h>
@@ -46,5 +45,3 @@ gboolean       gs_utils_list_has_app_fuzzy    (GsAppList      *list,
                                                 GsApp          *app);
 
 G_END_DECLS
-
-#endif /* __GS_COMMON_H */
diff --git a/src/gs-content-rating.h b/src/gs-content-rating.h
index d0f8c0cb..1e539999 100644
--- a/src/gs-content-rating.h
+++ b/src/gs-content-rating.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_CONTENT_RATING_H
-#define __GS_CONTENT_RATING_H
+#pragma once
 
 G_BEGIN_DECLS
 
@@ -42,5 +41,3 @@ const gchar *gs_content_rating_key_value_to_str (const gchar *id,
 const gchar *gs_content_rating_system_to_str (GsContentRatingSystem system);
 
 G_END_DECLS
-
-#endif /* __GS_CONTENT_RATING_H */
diff --git a/src/gs-css.h b/src/gs-css.h
index 5214947d..93b7f248 100644
--- a/src/gs-css.h
+++ b/src/gs-css.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_CSS_H
-#define __GS_CSS_H
+#pragma once
 
 #include <glib-object.h>
 #include <gio/gio.h>
@@ -34,5 +33,3 @@ void           gs_css_set_rewrite_func        (GsCss          *self,
                                                 gpointer        user_data);
 
 G_END_DECLS
-
-#endif /* __GS_CSS_H */
diff --git a/src/gs-dbus-helper.h b/src/gs-dbus-helper.h
index 6e769b01..b8f67dbc 100644
--- a/src/gs-dbus-helper.h
+++ b/src/gs-dbus-helper.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_DBUS_HELPER_H
-#define __GS_DBUS_HELPER_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -20,5 +19,3 @@ G_DECLARE_FINAL_TYPE (GsDbusHelper, gs_dbus_helper, GS, DBUS_HELPER, GObject)
 GsDbusHelper   *gs_dbus_helper_new             (void);
 
 G_END_DECLS
-
-#endif /* __GS_DBUS_HELPER_H */
diff --git a/src/gs-details-page.h b/src/gs-details-page.h
index 66f3711e..7c8fa073 100644
--- a/src/gs-details-page.h
+++ b/src/gs-details-page.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_DETAILS_PAGE_H
-#define __GS_DETAILS_PAGE_H
+#pragma once
 
 #include "gs-page.h"
 
@@ -27,5 +26,3 @@ void           gs_details_page_set_url        (GsDetailsPage          *self,
 GsApp          *gs_details_page_get_app        (GsDetailsPage          *self);
 
 G_END_DECLS
-
-#endif /* __GS_DETAILS_PAGE_H */
diff --git a/src/gs-extras-page.h b/src/gs-extras-page.h
index b70d4082..5e08d933 100644
--- a/src/gs-extras-page.h
+++ b/src/gs-extras-page.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_EXTRAS_PAGE_H
-#define __GS_EXTRAS_PAGE_H
+#pragma once
 
 #include "gs-page.h"
 
@@ -37,5 +36,3 @@ void                   gs_extras_page_search                  (GsExtrasPage            
*self,
                                                                 gchar                  **resources);
 
 G_END_DECLS
-
-#endif /* __GS_EXTRAS_PAGE_H */
diff --git a/src/gs-feature-tile.h b/src/gs-feature-tile.h
index cf0c4ce7..43932d42 100644
--- a/src/gs-feature-tile.h
+++ b/src/gs-feature-tile.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_FEATURE_TILE_H
-#define GS_FEATURE_TILE_H
+#pragma once
 
 #include "gs-app-tile.h"
 
@@ -19,5 +18,3 @@ G_DECLARE_FINAL_TYPE (GsFeatureTile, gs_feature_tile, GS, FEATURE_TILE, GsAppTil
 GtkWidget      *gs_feature_tile_new                    (GsApp          *app);
 
 G_END_DECLS
-
-#endif /* GS_FEATURE_TILE_H */
diff --git a/src/gs-first-run-dialog.h b/src/gs-first-run-dialog.h
index 84c34a07..17978a54 100644
--- a/src/gs-first-run-dialog.h
+++ b/src/gs-first-run-dialog.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_FIRST_RUN_DIALOG_H
-#define GS_FIRST_RUN_DIALOG_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -19,5 +18,3 @@ G_DECLARE_FINAL_TYPE (GsFirstRunDialog, gs_first_run_dialog, GS, FIRST_RUN_DIALO
 GtkWidget      *gs_first_run_dialog_new        (void);
 
 G_END_DECLS
-
-#endif /* GS_FIRST_RUN_DIALOG_H */
diff --git a/src/gs-fixed-size-bin.h b/src/gs-fixed-size-bin.h
index e7b9269c..127228d1 100644
--- a/src/gs-fixed-size-bin.h
+++ b/src/gs-fixed-size-bin.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_FIXED_SIZE_BIN_H
-#define GS_FIXED_SIZE_BIN_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -19,5 +18,3 @@ G_DECLARE_FINAL_TYPE (GsFixedSizeBin, gs_fixed_size_bin, GS, FIXED_SIZE_BIN, Gtk
 GtkWidget      *gs_fixed_size_bin_new  (void);
 
 G_END_DECLS
-
-#endif /* GS_FIXED_SIZE_BIN_H */
diff --git a/src/gs-folders.h b/src/gs-folders.h
index d6f07054..80933236 100644
--- a/src/gs-folders.h
+++ b/src/gs-folders.h
@@ -7,8 +7,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_FOLDERS_H
-#define __GS_FOLDERS_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -44,5 +43,3 @@ void            gs_folders_revert             (GsFolders      *folders);
 void              gs_folders_convert            (void);
 
 G_END_DECLS
-
-#endif /* __GS_FOLDERS_H */
diff --git a/src/gs-hiding-box.h b/src/gs-hiding-box.h
index d9d73133..f6cb540d 100644
--- a/src/gs-hiding-box.h
+++ b/src/gs-hiding-box.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_HIDING_BOX_H_
-#define GS_HIDING_BOX_H_
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -22,5 +21,3 @@ void           gs_hiding_box_set_spacing      (GsHidingBox    *box,
 gint            gs_hiding_box_get_spacing      (GsHidingBox    *box);
 
 G_END_DECLS
-
-#endif /* GS_HIDING_BOX_H_ */
diff --git a/src/gs-history-dialog.h b/src/gs-history-dialog.h
index 5eed4c0c..f24234f0 100644
--- a/src/gs-history-dialog.h
+++ b/src/gs-history-dialog.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_HISTORY_DIALOG_H
-#define GS_HISTORY_DIALOG_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -24,5 +23,3 @@ void           gs_history_dialog_set_app      (GsHistoryDialog        *dialog,
                                                 GsApp                  *app);
 
 G_END_DECLS
-
-#endif /* GS_HISTORY_DIALOG_H */
diff --git a/src/gs-info-bar.h b/src/gs-info-bar.h
index 1972556d..a69cb181 100644
--- a/src/gs-info-bar.h
+++ b/src/gs-info-bar.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_INFO_BAR_H
-#define GS_INFO_BAR_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -27,5 +26,3 @@ const gchar   *gs_info_bar_get_warning        (GsInfoBar      *bar);
 void            gs_info_bar_set_warning        (GsInfoBar      *bar,
                                                 const gchar    *text);
 G_END_DECLS
-
-#endif /* GS_INFO_BAR_H */
diff --git a/src/gs-installed-page.h b/src/gs-installed-page.h
index 4d532fdc..e474d6c8 100644
--- a/src/gs-installed-page.h
+++ b/src/gs-installed-page.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_INSTALLED_PAGE_H
-#define __GS_INSTALLED_PAGE_H
+#pragma once
 
 #include "gs-page.h"
 
@@ -20,5 +19,3 @@ G_DECLARE_FINAL_TYPE (GsInstalledPage, gs_installed_page, GS, INSTALLED_PAGE, Gs
 GsInstalledPage        *gs_installed_page_new  (void);
 
 G_END_DECLS
-
-#endif /* __GS_INSTALLED_PAGE_H */
diff --git a/src/gs-language.h b/src/gs-language.h
index 93c5864b..feeb334d 100644
--- a/src/gs-language.h
+++ b/src/gs-language.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_LANGUAGE_H
-#define __GS_LANGUAGE_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -24,5 +23,3 @@ gchar         *gs_language_iso639_to_language         (GsLanguage      *language,
                                                         const gchar     *iso639);
 
 G_END_DECLS
-
-#endif /* __GS_LANGUAGE_H */
diff --git a/src/gs-loading-page.h b/src/gs-loading-page.h
index 1543e1a4..119af301 100644
--- a/src/gs-loading-page.h
+++ b/src/gs-loading-page.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_LOADING_PAGE_H
-#define __GS_LOADING_PAGE_H
+#pragma once
 
 #include "gs-page.h"
 
@@ -27,5 +26,3 @@ struct _GsLoadingPageClass
 GsLoadingPage  *gs_loading_page_new            (void);
 
 G_END_DECLS
-
-#endif /* __GS_LOADING_PAGE_H */
diff --git a/src/gs-moderate-page.h b/src/gs-moderate-page.h
index 18b67010..b53af930 100644
--- a/src/gs-moderate-page.h
+++ b/src/gs-moderate-page.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_MODERATE_PAGE_H
-#define __GS_MODERATE_PAGE_H
+#pragma once
 
 #include "gs-page.h"
 
@@ -20,5 +19,3 @@ G_DECLARE_FINAL_TYPE (GsModeratePage, gs_moderate_page, GS, MODERATE_PAGE, GsPag
 GsModeratePage *gs_moderate_page_new           (void);
 
 G_END_DECLS
-
-#endif /* __GS_MODERATE_PAGE_H */
diff --git a/src/gs-origin-popover-row.h b/src/gs-origin-popover-row.h
index e26e5bd2..e198bb7e 100644
--- a/src/gs-origin-popover-row.h
+++ b/src/gs-origin-popover-row.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_ORIGIN_POPOVER_ROW_H
-#define GS_ORIGIN_POPOVER_ROW_H
+#pragma once
 
 #include "gnome-software-private.h"
 #include <gtk/gtk.h>
@@ -30,5 +29,3 @@ void           gs_origin_popover_row_set_size_group   (GsOriginPopoverRow     *row,
                                                         GtkSizeGroup           *size_group);
 
 G_END_DECLS
-
-#endif /* GS_ORIGIN_POPOVER_ROW_H */
diff --git a/src/gs-overview-page.h b/src/gs-overview-page.h
index 78a74b3f..f753533b 100644
--- a/src/gs-overview-page.h
+++ b/src/gs-overview-page.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_OVERVIEW_PAGE_H
-#define __GS_OVERVIEW_PAGE_H
+#pragma once
 
 #include "gs-page.h"
 
@@ -29,5 +28,3 @@ void           gs_overview_page_set_category  (GsOverviewPage         *self,
                                                 const gchar            *category);
 
 G_END_DECLS
-
-#endif /* __GS_OVERVIEW_PAGE_H */
diff --git a/src/gs-page.h b/src/gs-page.h
index fb7f38e1..ccea9b7b 100644
--- a/src/gs-page.h
+++ b/src/gs-page.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_PAGE_H
-#define GS_PAGE_H
+#pragma once
 
 #include "gs-shell.h"
 
@@ -85,5 +84,3 @@ gboolean       gs_page_setup                          (GsPage         *page,
 gboolean        gs_page_is_active                      (GsPage         *page);
 
 G_END_DECLS
-
-#endif /* GS_PAGE_H */
diff --git a/src/gs-popular-tile.h b/src/gs-popular-tile.h
index f3be085b..151a96fd 100644
--- a/src/gs-popular-tile.h
+++ b/src/gs-popular-tile.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_POPULAR_TILE_H
-#define GS_POPULAR_TILE_H
+#pragma once
 
 #include "gs-app-tile.h"
 
@@ -19,5 +18,3 @@ G_DECLARE_FINAL_TYPE (GsPopularTile, gs_popular_tile, GS, POPULAR_TILE, GsAppTil
 GtkWidget      *gs_popular_tile_new                    (GsApp          *app);
 
 G_END_DECLS
-
-#endif /* GS_POPULAR_TILE_H */
diff --git a/src/gs-prefs-dialog.h b/src/gs-prefs-dialog.h
index 65f6db3f..4503057e 100644
--- a/src/gs-prefs-dialog.h
+++ b/src/gs-prefs-dialog.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_PREFS_DIALOG_H
-#define GS_PREFS_DIALOG_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -22,5 +21,3 @@ GtkWidget     *gs_prefs_dialog_new            (GtkWindow      *parent,
                                                 GsPluginLoader *plugin_loader);
 
 G_END_DECLS
-
-#endif /* GS_PREFS_DIALOG_H */
diff --git a/src/gs-progress-button.h b/src/gs-progress-button.h
index e4b943a7..288143cc 100644
--- a/src/gs-progress-button.h
+++ b/src/gs-progress-button.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_PROGRESS_BUTTON_H
-#define GS_PROGRESS_BUTTON_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -24,5 +23,3 @@ void           gs_progress_button_set_show_progress   (GsProgressButton       *button,
                                                         gboolean                show_progress);
 
 G_END_DECLS
-
-#endif /* GS_PROGRESS_BUTTON_H */
diff --git a/src/gs-removal-dialog.h b/src/gs-removal-dialog.h
index 5013c9cd..f6fe9ece 100644
--- a/src/gs-removal-dialog.h
+++ b/src/gs-removal-dialog.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_REMOVAL_DIALOG_H
-#define GS_REMOVAL_DIALOG_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -23,5 +22,3 @@ void           gs_removal_dialog_show_upgrade_removals        (GsRemovalDialog         
*self,
                                                                 GsApp                   *upgrade);
 
 G_END_DECLS
-
-#endif /* GS_REMOVAL_DIALOG_H */
diff --git a/src/gs-repo-row.h b/src/gs-repo-row.h
index a264aa3d..fb4aa8fd 100644
--- a/src/gs-repo-row.h
+++ b/src/gs-repo-row.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_REPO_ROW_H
-#define GS_REPO_ROW_H
+#pragma once
 
 #include "gnome-software-private.h"
 #include <gtk/gtk.h>
@@ -38,5 +37,3 @@ void           gs_repo_row_hide_details               (GsRepoRow      *row);
 void            gs_repo_row_show_status                (GsRepoRow      *row);
 
 G_END_DECLS
-
-#endif /* GS_REPO_ROW_H */
diff --git a/src/gs-repos-dialog.h b/src/gs-repos-dialog.h
index 72831c37..564329b6 100644
--- a/src/gs-repos-dialog.h
+++ b/src/gs-repos-dialog.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_REPOS_DIALOG_H
-#define GS_REPOS_DIALOG_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -23,5 +22,3 @@ GtkWidget     *gs_repos_dialog_new            (GtkWindow      *parent,
                                                 GsPluginLoader *plugin_loader);
 
 G_END_DECLS
-
-#endif /* GS_REPOS_DIALOG_H */
diff --git a/src/gs-review-bar.h b/src/gs-review-bar.h
index a00cec33..338fe084 100644
--- a/src/gs-review-bar.h
+++ b/src/gs-review-bar.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_REVIEW_BAR_H
-#define GS_REVIEW_BAR_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -22,5 +21,3 @@ void           gs_review_bar_set_fraction     (GsReviewBar    *bar,
                                                 gdouble         fraction);
 
 G_END_DECLS
-
-#endif /* GS_REVIEW_BAR_H */
diff --git a/src/gs-review-dialog.h b/src/gs-review-dialog.h
index 98b4b752..2ab610fc 100644
--- a/src/gs-review-dialog.h
+++ b/src/gs-review-dialog.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_REVIEW_DIALOG_H
-#define GS_REVIEW_DIALOG_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -24,5 +23,3 @@ const gchar   *gs_review_dialog_get_summary   (GsReviewDialog *dialog);
 gchar          *gs_review_dialog_get_text      (GsReviewDialog *dialog);
 
 G_END_DECLS
-
-#endif /* GS_REVIEW_DIALOG_H */
diff --git a/src/gs-review-histogram.h b/src/gs-review-histogram.h
index df0519fd..011272ac 100644
--- a/src/gs-review-histogram.h
+++ b/src/gs-review-histogram.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_REVIEW_HISTOGRAM_H
-#define GS_REVIEW_HISTOGRAM_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -27,5 +26,3 @@ void           gs_review_histogram_set_ratings                (GsReviewHistogram *histogram,
                                                                 GArray *review_ratings);
 
 G_END_DECLS
-
-#endif /* GS_REVIEW_HISTOGRAM_H */
diff --git a/src/gs-review-row.h b/src/gs-review-row.h
index a8ca9b44..68c78883 100644
--- a/src/gs-review-row.h
+++ b/src/gs-review-row.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_REVIEW_ROW_H
-#define GS_REVIEW_ROW_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -33,5 +32,3 @@ void           gs_review_row_set_network_available    (GsReviewRow    *review_row,
                                                         gboolean        network_available);
 
 G_END_DECLS
-
-#endif /* GS_REVIEW_ROW_H */
diff --git a/src/gs-screenshot-image.h b/src/gs-screenshot-image.h
index 25d6e4cd..b8d5521c 100644
--- a/src/gs-screenshot-image.h
+++ b/src/gs-screenshot-image.h
@@ -7,8 +7,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_SCREENSHOT_IMAGE_H
-#define GS_SCREENSHOT_IMAGE_H
+#pragma once
 
 #include <gtk/gtk.h>
 #include <libsoup/soup.h>
@@ -36,5 +35,3 @@ void           gs_screenshot_image_load_async         (GsScreenshotImage      *ssimg,
                                                         GCancellable           *cancellable);
 
 G_END_DECLS
-
-#endif /* GS_SCREENSHOT_IMAGE_H */
diff --git a/src/gs-search-page.h b/src/gs-search-page.h
index 3cbbf2d0..79980b8c 100644
--- a/src/gs-search-page.h
+++ b/src/gs-search-page.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_SEARCH_PAGE_H
-#define __GS_SEARCH_PAGE_H
+#pragma once
 
 #include "gs-page.h"
 
@@ -25,5 +24,3 @@ void           gs_search_page_set_text                (GsSearchPage           *self,
                                                         const gchar            *value);
 
 G_END_DECLS
-
-#endif /* __GS_SEARCH_PAGE_H */
diff --git a/src/gs-shell-search-provider.h b/src/gs-shell-search-provider.h
index 64854327..afd96644 100644
--- a/src/gs-shell-search-provider.h
+++ b/src/gs-shell-search-provider.h
@@ -7,8 +7,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_SHELL_SEARCH_PROVIDER_H
-#define __GS_SHELL_SEARCH_PROVIDER_H
+#pragma once
 
 #include "gnome-software-private.h"
 
@@ -23,5 +22,3 @@ void                   gs_shell_search_provider_unregister    (GsShellSearchProvider   
*self);
 GsShellSearchProvider  *gs_shell_search_provider_new           (void);
 void                    gs_shell_search_provider_setup         (GsShellSearchProvider   *provider,
                                                                 GsPluginLoader          *loader);
-
-#endif /* __GS_SHELL_SEARCH_PROVIDER_H */
diff --git a/src/gs-shell.h b/src/gs-shell.h
index 7277740f..08705fa6 100644
--- a/src/gs-shell.h
+++ b/src/gs-shell.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_SHELL_H
-#define __GS_SHELL_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -90,5 +89,3 @@ gboolean       gs_shell_is_active             (GsShell        *shell);
 GtkWindow      *gs_shell_get_window            (GsShell        *shell);
 
 G_END_DECLS
-
-#endif /* __GS_SHELL_H */
diff --git a/src/gs-star-widget.h b/src/gs-star-widget.h
index a72f21f5..ccae11b5 100644
--- a/src/gs-star-widget.h
+++ b/src/gs-star-widget.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_STAR_WIDGET_H
-#define GS_STAR_WIDGET_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -36,5 +35,3 @@ void           gs_star_widget_set_interactive         (GsStarWidget   *star,
                                                         gboolean        interactive);
 
 G_END_DECLS
-
-#endif /* GS_STAR_WIDGET_H */
diff --git a/src/gs-summary-tile.h b/src/gs-summary-tile.h
index ff1ba061..892d8672 100644
--- a/src/gs-summary-tile.h
+++ b/src/gs-summary-tile.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_SUMMARY_TILE_H
-#define GS_SUMMARY_TILE_H
+#pragma once
 
 #include "gs-app-tile.h"
 
@@ -19,5 +18,3 @@ G_DECLARE_FINAL_TYPE (GsSummaryTile, gs_summary_tile, GS, SUMMARY_TILE, GsAppTil
 GtkWidget      *gs_summary_tile_new    (GsApp          *app);
 
 G_END_DECLS
-
-#endif /* GS_SUMMARY_TILE_H */
diff --git a/src/gs-third-party-repo-row.h b/src/gs-third-party-repo-row.h
index 1c068b1e..d2bf98fa 100644
--- a/src/gs-third-party-repo-row.h
+++ b/src/gs-third-party-repo-row.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_THIRD_PARTY_REPO_ROW_H
-#define GS_THIRD_PARTY_REPO_ROW_H
+#pragma once
 
 #include "gnome-software-private.h"
 #include <gtk/gtk.h>
@@ -33,5 +32,3 @@ void           gs_third_party_repo_row_set_app        (GsThirdPartyRepoRow    *row,
 GsApp          *gs_third_party_repo_row_get_app        (GsThirdPartyRepoRow    *row);
 
 G_END_DECLS
-
-#endif /* GS_THIRD_PARTY_REPO_ROW_H */
diff --git a/src/gs-update-dialog.h b/src/gs-update-dialog.h
index 58814eab..2010a31a 100644
--- a/src/gs-update-dialog.h
+++ b/src/gs-update-dialog.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_UPDATE_DIALOG_H
-#define GS_UPDATE_DIALOG_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -25,5 +24,3 @@ void           gs_update_dialog_show_update_details           (GsUpdateDialog         
*dialog,
                                                                 GsApp                  *app);
 
 G_END_DECLS
-
-#endif /* GS_UPDATE_DIALOG_H */
diff --git a/src/gs-update-list.h b/src/gs-update-list.h
index e3ef2bb9..fb3862e9 100644
--- a/src/gs-update-list.h
+++ b/src/gs-update-list.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_UPDATE_LIST_H
-#define GS_UPDATE_LIST_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -29,5 +28,3 @@ void           gs_update_list_add_app                 (GsUpdateList   *update_list,
                                                         GsApp          *app);
 
 G_END_DECLS
-
-#endif /* GS_UPDATE_LIST_H */
diff --git a/src/gs-update-monitor.h b/src/gs-update-monitor.h
index 7154119d..2e61ad5f 100644
--- a/src/gs-update-monitor.h
+++ b/src/gs-update-monitor.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_UPDATE_MONITOR_H
-#define __GS_UPDATE_MONITOR_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -26,5 +25,3 @@ void           gs_update_monitor_show_error           (GsUpdateMonitor *monitor,
                                                         GsShell        *shell);
 
 G_END_DECLS
-
-#endif /* __GS_UPDATE_MONITOR_H */
diff --git a/src/gs-updates-page.h b/src/gs-updates-page.h
index 8b24efe0..1b309dad 100644
--- a/src/gs-updates-page.h
+++ b/src/gs-updates-page.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_UPDATES_PAGE_H
-#define __GS_UPDATES_PAGE_H
+#pragma once
 
 #include "gs-page.h"
 
@@ -20,5 +19,3 @@ G_DECLARE_FINAL_TYPE (GsUpdatesPage, gs_updates_page, GS, UPDATES_PAGE, GsPage)
 GsUpdatesPage  *gs_updates_page_new            (void);
 
 G_END_DECLS
-
-#endif /* __GS_UPDATES_PAGE_H */
diff --git a/src/gs-updates-section.h b/src/gs-updates-section.h
index 96c3d3fd..8d9111c7 100644
--- a/src/gs-updates-section.h
+++ b/src/gs-updates-section.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_UPDATES_SECTION_H
-#define __GS_UPDATES_SECTION_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -44,5 +43,3 @@ void           gs_updates_section_set_size_groups     (GsUpdatesSection       *self,
                                                         GtkSizeGroup           *header);
 
 G_END_DECLS
-
-#endif /* __GS_UPDATES_SECTION_H */
diff --git a/src/gs-upgrade-banner.h b/src/gs-upgrade-banner.h
index 30229c31..197a84a3 100644
--- a/src/gs-upgrade-banner.h
+++ b/src/gs-upgrade-banner.h
@@ -5,8 +5,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef GS_UPGRADE_BANNER_H
-#define GS_UPGRADE_BANNER_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -34,5 +33,3 @@ void           gs_upgrade_banner_set_app              (GsUpgradeBanner        *self,
 GsApp          *gs_upgrade_banner_get_app              (GsUpgradeBanner        *self);
 
 G_END_DECLS
-
-#endif /* GS_UPGRADE_BANNER_H */
diff --git a/src/gs-vendor.h b/src/gs-vendor.h
index 0b8ddded..8fa54a91 100644
--- a/src/gs-vendor.h
+++ b/src/gs-vendor.h
@@ -6,8 +6,7 @@
  * SPDX-License-Identifier: GPL-2.0+
  */
 
-#ifndef __GS_VENDOR_H
-#define __GS_VENDOR_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -31,5 +30,3 @@ gchar         *gs_vendor_get_not_found_url            (GsVendor               *vendor,
                                                         GsVendorUrlType         type);
 
 G_END_DECLS
-
-#endif /* __GS_VENDOR_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]