display: Replace ifdefs with #pragma once

This commit is contained in:
Robert Ancell 2018-05-29 14:53:49 +12:00 committed by Georges Basile Stavracas Neto
parent 40520d7b7f
commit 72a3516389
6 changed files with 6 additions and 25 deletions

View file

@ -17,8 +17,7 @@
*
*/
#ifndef _CC_DISPLAY_CONFIG_DBUS_H
#define _CC_DISPLAY_CONFIG_DBUS_H
#pragma once
#include <glib-object.h>
@ -39,5 +38,3 @@ G_DECLARE_FINAL_TYPE (CcDisplayConfigDBus, cc_display_config_dbus,
CC, DISPLAY_CONFIG_DBUS, CcDisplayConfig)
G_END_DECLS
#endif /* _CC_DISPLAY_CONFIG_DBUS_H */

View file

@ -17,8 +17,7 @@
*
*/
#ifndef _CC_DISPLAY_CONFIG_MANAGER_DBUS_H
#define _CC_DISPLAY_CONFIG_MANAGER_DBUS_H
#pragma once
#include <glib-object.h>
@ -33,5 +32,3 @@ G_DECLARE_FINAL_TYPE (CcDisplayConfigManagerDBus, cc_display_config_manager_dbus
CcDisplayConfigManager * cc_display_config_manager_dbus_new (void);
G_END_DECLS
#endif /* _CC_DISPLAY_CONFIG_MANAGER_DBUS_H */

View file

@ -17,8 +17,7 @@
*
*/
#ifndef _CC_DISPLAY_CONFIG_MANAGER_H
#define _CC_DISPLAY_CONFIG_MANAGER_H
#pragma once
#include <glib-object.h>
@ -42,5 +41,3 @@ CcDisplayConfig * cc_display_config_manager_get_current (CcDisplayConfigManager
void _cc_display_config_manager_emit_changed (CcDisplayConfigManager *self);
G_END_DECLS
#endif /* _CC_DISPLAY_CONFIG_MANAGER_H */

View file

@ -17,8 +17,7 @@
*
*/
#ifndef _CC_DISPLAY_CONFIG_H
#define _CC_DISPLAY_CONFIG_H
#pragma once
#include <glib-object.h>
@ -232,5 +231,3 @@ int cc_display_mode_get_freq (CcDisplayMode *
double cc_display_mode_get_freq_f (CcDisplayMode *mode);
G_END_DECLS
#endif /* _CC_DISPLAY_CONFIG_H */

View file

@ -18,9 +18,7 @@
*
*/
#ifndef _CC_DISPLAY_PANEL_H
#define _CC_DISPLAY_PANEL_H
#pragma once
#include <shell/cc-panel.h>
@ -30,5 +28,3 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (CcDisplayPanel, cc_display_panel, CC, DISPLAY_PANEL, CcPanel)
G_END_DECLS
#endif /* _CC_DISPLAY_PANEL_H */

View file

@ -18,8 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __CC_NIGHT_LIGHT_WIDGET_H__
#define __CC_NIGHT_LIGHT_WIDGET_H__
#pragma once
#include <gtk/gtk.h>
@ -45,5 +44,3 @@ void cc_night_light_widget_set_mode (CcNightLightWidget *self,
CcNightLightWidgetMode mode);
G_END_DECLS
#endif