[gnome-control-center] mouse: Replace ifdefs with #pragma once



commit 17c5c3932ababa4a41313041e785d5c34d97d0a8
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Nov 21 20:36:35 2019 +1300

    mouse: Replace ifdefs with #pragma once

 panels/mouse/cc-mouse-caps-helper.h | 7 ++++---
 panels/mouse/cc-mouse-test.h        | 5 +----
 2 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/panels/mouse/cc-mouse-caps-helper.h b/panels/mouse/cc-mouse-caps-helper.h
index f2581d9ce..93d90824f 100644
--- a/panels/mouse/cc-mouse-caps-helper.h
+++ b/panels/mouse/cc-mouse-caps-helper.h
@@ -18,15 +18,16 @@
  * Author: Felipe Borges <feborges redhat com>
  */
 
-#ifndef _CC_MOUSE_CAPS_HELPER_H_
-#define _CC_MOUSE_CAPS_HELPER_H_
+#pragma once
 
 #include <glib.h>
 
+G_BEGIN_DECLS
+
 gboolean cc_touchpad_check_capabilities (gboolean *have_two_finger_scrolling,
                                          gboolean *have_edge_scrolling,
                                          gboolean *have_tap_to_click);
 
 gboolean cc_synaptics_check (void);
 
-#endif /* _CC_MOUSE_CAPS_HELPER_H_ */
+G_END_DECLS
diff --git a/panels/mouse/cc-mouse-test.h b/panels/mouse/cc-mouse-test.h
index d06c9932b..eb2af1bcf 100644
--- a/panels/mouse/cc-mouse-test.h
+++ b/panels/mouse/cc-mouse-test.h
@@ -18,8 +18,7 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _CC_MOUSE_TEST_H
-#define _CC_MOUSE_TEST_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -31,5 +30,3 @@ G_DECLARE_FINAL_TYPE (CcMouseTest, cc_mouse_test, CC, MOUSE_TEST, GtkBin)
 GtkWidget *cc_mouse_test_new (void);
 
 G_END_DECLS
-
-#endif /* _CC_MOUSE_TEST_H */


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