color: Replace ifdefs with #pragma once

This commit is contained in:
Robert Ancell 2018-05-30 15:09:55 +12:00
parent 770a3b1df6
commit 04e36953ff
6 changed files with 6 additions and 27 deletions

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __CC_COLOR_CALIBRATE_H
#define __CC_COLOR_CALIBRATE_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
@ -53,6 +52,3 @@ gboolean cc_color_calibrate_setup (CcColorCalibrate *calibrate,
CdProfile *cc_color_calibrate_get_profile (CcColorCalibrate *calibrate);
G_END_DECLS
#endif /* __CC_COLOR_CALIBRATE_H */

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef CC_COLOR_CELL_RENDERER_TEXT_H
#define CC_COLOR_CELL_RENDERER_TEXT_H
#pragma once
#include <gtk/gtk.h>
@ -31,5 +30,3 @@ GtkCellRenderer *cc_color_cell_renderer_text_new (void);
G_END_DECLS
#endif /* CC_COLOR_CELL_RENDERER_TEXT_H */

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef CC_COLOR_COMMON_H
#define CC_COLOR_COMMON_H
#pragma once
#include <colord.h>
@ -31,5 +30,3 @@ gchar *cc_color_device_get_title (CdDevice *device);
G_END_DECLS
#endif /* CC_COLOR_COMMON_H */

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef CC_COLOR_DEVICE_H
#define CC_COLOR_DEVICE_H
#pragma once
#include <gtk/gtk.h>
#include <colord.h>
@ -37,6 +36,3 @@ void cc_color_device_set_expanded (CcColorDevice *color_device,
gboolean expanded);
G_END_DECLS
#endif /* CC_COLOR_DEVICE_H */

View file

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

View file

@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef CC_COLOR_PROFILE_H
#define CC_COLOR_PROFILE_H
#pragma once
#include <gtk/gtk.h>
#include <colord.h>
@ -42,5 +41,3 @@ const gchar *cc_color_profile_get_sortable (CcColorProfile *color_profile);
G_END_DECLS
#endif /* CC_COLOR_PROFILE_H */