Commit 72a35163 authored by Robert Ancell's avatar Robert Ancell Committed by Georges Basile Stavracas Neto

display: Replace ifdefs with #pragma once

parent 40520d7b
Pipeline #13544 passed with stages
in 7 minutes and 27 seconds
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
* *
*/ */
#ifndef _CC_DISPLAY_CONFIG_DBUS_H #pragma once
#define _CC_DISPLAY_CONFIG_DBUS_H
#include <glib-object.h> #include <glib-object.h>
...@@ -39,5 +38,3 @@ G_DECLARE_FINAL_TYPE (CcDisplayConfigDBus, cc_display_config_dbus, ...@@ -39,5 +38,3 @@ G_DECLARE_FINAL_TYPE (CcDisplayConfigDBus, cc_display_config_dbus,
CC, DISPLAY_CONFIG_DBUS, CcDisplayConfig) CC, DISPLAY_CONFIG_DBUS, CcDisplayConfig)
G_END_DECLS G_END_DECLS
#endif /* _CC_DISPLAY_CONFIG_DBUS_H */
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
* *
*/ */
#ifndef _CC_DISPLAY_CONFIG_MANAGER_DBUS_H #pragma once
#define _CC_DISPLAY_CONFIG_MANAGER_DBUS_H
#include <glib-object.h> #include <glib-object.h>
...@@ -33,5 +32,3 @@ G_DECLARE_FINAL_TYPE (CcDisplayConfigManagerDBus, cc_display_config_manager_dbus ...@@ -33,5 +32,3 @@ G_DECLARE_FINAL_TYPE (CcDisplayConfigManagerDBus, cc_display_config_manager_dbus
CcDisplayConfigManager * cc_display_config_manager_dbus_new (void); CcDisplayConfigManager * cc_display_config_manager_dbus_new (void);
G_END_DECLS G_END_DECLS
#endif /* _CC_DISPLAY_CONFIG_MANAGER_DBUS_H */
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
* *
*/ */
#ifndef _CC_DISPLAY_CONFIG_MANAGER_H #pragma once
#define _CC_DISPLAY_CONFIG_MANAGER_H
#include <glib-object.h> #include <glib-object.h>
...@@ -42,5 +41,3 @@ CcDisplayConfig * cc_display_config_manager_get_current (CcDisplayConfigManager ...@@ -42,5 +41,3 @@ CcDisplayConfig * cc_display_config_manager_get_current (CcDisplayConfigManager
void _cc_display_config_manager_emit_changed (CcDisplayConfigManager *self); void _cc_display_config_manager_emit_changed (CcDisplayConfigManager *self);
G_END_DECLS G_END_DECLS
#endif /* _CC_DISPLAY_CONFIG_MANAGER_H */
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
* *
*/ */
#ifndef _CC_DISPLAY_CONFIG_H #pragma once
#define _CC_DISPLAY_CONFIG_H
#include <glib-object.h> #include <glib-object.h>
...@@ -232,5 +231,3 @@ int cc_display_mode_get_freq (CcDisplayMode * ...@@ -232,5 +231,3 @@ int cc_display_mode_get_freq (CcDisplayMode *
double cc_display_mode_get_freq_f (CcDisplayMode *mode); double cc_display_mode_get_freq_f (CcDisplayMode *mode);
G_END_DECLS G_END_DECLS
#endif /* _CC_DISPLAY_CONFIG_H */
...@@ -18,9 +18,7 @@ ...@@ -18,9 +18,7 @@
* *
*/ */
#pragma once
#ifndef _CC_DISPLAY_PANEL_H
#define _CC_DISPLAY_PANEL_H
#include <shell/cc-panel.h> #include <shell/cc-panel.h>
...@@ -30,5 +28,3 @@ G_BEGIN_DECLS ...@@ -30,5 +28,3 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (CcDisplayPanel, cc_display_panel, CC, DISPLAY_PANEL, CcPanel) G_DECLARE_FINAL_TYPE (CcDisplayPanel, cc_display_panel, CC, DISPLAY_PANEL, CcPanel)
G_END_DECLS G_END_DECLS
#endif /* _CC_DISPLAY_PANEL_H */
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef __CC_NIGHT_LIGHT_WIDGET_H__ #pragma once
#define __CC_NIGHT_LIGHT_WIDGET_H__
#include <gtk/gtk.h> #include <gtk/gtk.h>
...@@ -45,5 +44,3 @@ void cc_night_light_widget_set_mode (CcNightLightWidget *self, ...@@ -45,5 +44,3 @@ void cc_night_light_widget_set_mode (CcNightLightWidget *self,
CcNightLightWidgetMode mode); CcNightLightWidgetMode mode);
G_END_DECLS G_END_DECLS
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment