[gnome-control-center] keyboard: Replace ifdefs with #pragma once
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: Replace ifdefs with #pragma once
- Date: Tue, 29 May 2018 16:05:33 +0000 (UTC)
commit 5174ae136d68afba86fbba72f402389169da49a4
Author: Robert Ancell <robert ancell canonical com>
Date: Tue May 29 15:33:04 2018 +1200
keyboard: Replace ifdefs with #pragma once
panels/keyboard/cc-keyboard-item.h | 5 +----
panels/keyboard/cc-keyboard-manager.h | 5 +----
panels/keyboard/cc-keyboard-option.h | 5 +----
panels/keyboard/cc-keyboard-panel.h | 5 +----
panels/keyboard/cc-keyboard-shortcut-editor.h | 5 +----
5 files changed, 5 insertions(+), 20 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-item.h b/panels/keyboard/cc-keyboard-item.h
index e167f8863..eb4125494 100644
--- a/panels/keyboard/cc-keyboard-item.h
+++ b/panels/keyboard/cc-keyboard-item.h
@@ -17,8 +17,7 @@
*
*/
-#ifndef __CC_KEYBOARD_ITEM_H
-#define __CC_KEYBOARD_ITEM_H
+#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
@@ -95,5 +94,3 @@ const gchar * cc_keyboard_item_get_gsettings_path (CcKeyboardItem *self);
GSettings * cc_keyboard_item_get_settings (CcKeyboardItem *self);
G_END_DECLS
-
-#endif /* __CC_KEYBOARD_ITEM_H */
diff --git a/panels/keyboard/cc-keyboard-manager.h b/panels/keyboard/cc-keyboard-manager.h
index ff39f5180..2b03752e8 100644
--- a/panels/keyboard/cc-keyboard-manager.h
+++ b/panels/keyboard/cc-keyboard-manager.h
@@ -20,8 +20,7 @@
*
*/
-#ifndef CC_KEYBOARD_MANAGER_H
-#define CC_KEYBOARD_MANAGER_H
+#pragma once
#include <glib-object.h>
@@ -56,5 +55,3 @@ void cc_keyboard_manager_reset_shortcut (CcKeyboardMana
G_END_DECLS
-#endif /* CC_KEYBOARD_MANAGER_H */
-
diff --git a/panels/keyboard/cc-keyboard-option.h b/panels/keyboard/cc-keyboard-option.h
index 3bc655f3e..8bd0cd6d7 100644
--- a/panels/keyboard/cc-keyboard-option.h
+++ b/panels/keyboard/cc-keyboard-option.h
@@ -19,8 +19,7 @@
* 02110-1301, USA.
*/
-#ifndef __CC_KEYBOARD_OPTION_H__
-#define __CC_KEYBOARD_OPTION_H__
+#pragma once
#include <gtk/gtk.h>
@@ -45,5 +44,3 @@ void cc_keyboard_option_set_selection (CcKeyboardOption *self,
void cc_keyboard_option_clear_all (void);
G_END_DECLS
-
-#endif /* __CC_KEYBOARD_OPTION_H__ */
diff --git a/panels/keyboard/cc-keyboard-panel.h b/panels/keyboard/cc-keyboard-panel.h
index 431152768..db6e35278 100644
--- a/panels/keyboard/cc-keyboard-panel.h
+++ b/panels/keyboard/cc-keyboard-panel.h
@@ -19,8 +19,7 @@
*/
-#ifndef _CC_KEYBOARD_PANEL_H
-#define _CC_KEYBOARD_PANEL_H
+#pragma once
#include <shell/cc-panel.h>
#include <gtk/gtk.h>
@@ -33,5 +32,3 @@ G_DECLARE_FINAL_TYPE (CcKeyboardPanel, cc_keyboard_panel, CC, KEYBOARD_PANEL, Cc
CcKeyboardItem* cc_keyboard_panel_create_custom_item (CcKeyboardPanel *self);
G_END_DECLS
-
-#endif /* _CC_KEYBOARD_PANEL_H */
diff --git a/panels/keyboard/cc-keyboard-shortcut-editor.h b/panels/keyboard/cc-keyboard-shortcut-editor.h
index 75199bf50..963309f5d 100644
--- a/panels/keyboard/cc-keyboard-shortcut-editor.h
+++ b/panels/keyboard/cc-keyboard-shortcut-editor.h
@@ -18,8 +18,7 @@
* Authors: Georges Basile Stavracas Neto <georges stavracas gmail com>
*/
-#ifndef CC_KEYBOARD_SHORTCUT_EDITOR_H
-#define CC_KEYBOARD_SHORTCUT_EDITOR_H
+#pragma once
#include <gtk/gtk.h>
@@ -51,5 +50,3 @@ void cc_keyboard_shortcut_editor_set_mode (CcKeyboardShor
G_END_DECLS
-#endif /* CC_KEYBOARD_SHORTCUT_EDITOR_H */
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]