summaryrefslogtreecommitdiff
path: root/lib/ephy-settings.h
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2016-09-10 21:18:30 -0500
committerMichael Catanzaro <mcatanzaro@gnome.org>2016-09-10 21:18:30 -0500
commite797e97dabed7a8ff7a6cd809d9cc8f4cab8b0bb (patch)
treefc809d073dd21d5b494ff4f1158d15b5d832128b /lib/ephy-settings.h
parent47117f4634949c156a898ca43e4e4a3e129437e7 (diff)
downloadepiphany-e797e97dabed7a8ff7a6cd809d9cc8f4cab8b0bb.tar.gz
Start using #pragma once
It's now required by WebKit, so no reason not to. Also, clean up a couple places that are missing G_BEGIN_DECLS. Not that it matters at all, since we don't use any C++.
Diffstat (limited to 'lib/ephy-settings.h')
-rw-r--r--lib/ephy-settings.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ephy-settings.h b/lib/ephy-settings.h
index e05821e0e..e5d33dbe7 100644
--- a/lib/ephy-settings.h
+++ b/lib/ephy-settings.h
@@ -17,14 +17,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef EPHY_SETTINGS_H
-#define EPHY_SETTINGS_H
+#pragma once
#include <glib.h>
#include <gio/gio.h>
#include "ephy-prefs.h"
+G_BEGIN_DECLS
+
#define EPHY_SETTINGS_MAIN ephy_settings_get (EPHY_PREFS_SCHEMA)
#define EPHY_SETTINGS_UI ephy_settings_get (EPHY_PREFS_UI_SCHEMA)
#define EPHY_SETTINGS_WEB ephy_settings_get (EPHY_PREFS_WEB_SCHEMA)
@@ -35,4 +36,4 @@ GSettings *ephy_settings_get (const char *schema);
void ephy_settings_shutdown (void);
-#endif /* EPHY_SETTINGS_H */
+G_END_DECLS