Commit d6713eea authored by Christian Hergert's avatar Christian Hergert

style-guide: use #pragma once for gstyle

parent 4de226ea
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_ANIMATION_H
#define GSTYLE_ANIMATION_H
#pragma once
#include <glib.h>
......@@ -27,5 +26,3 @@ gdouble gstyle_animation_ease_in_out_cubic (gdouble offset);
gboolean gstyle_animation_check_enable_animation (void);
G_END_DECLS
#endif /* GSTYLE_ANIMATION_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_CIELAB_H
#define GSTYLE_CIELAB_H
#pragma once
#include <glib.h>
......@@ -41,5 +40,3 @@ GstyleCielab *gstyle_cielab_copy (const GstyleCielab *self)
void gstyle_cielab_free (GstyleCielab *self);
G_END_DECLS
#endif /* GSTYLE_CIELAB_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_COMPONENT_H
#define GSTYLE_COLOR_COMPONENT_H
#pragma once
#include <glib.h>
......@@ -40,6 +39,3 @@ typedef enum {
} GstyleColorComponent;
G_END_DECLS
#endif /* GSTYLE_COLOR_COMPONENT_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_CONVERT_H
#define GSTYLE_COLOR_CONVERT_H
#pragma once
#include <glib.h>
#include <gdk/gdk.h>
......@@ -71,5 +70,3 @@ void gstyle_color_convert_xyz_to_hsv (GstyleXYZ
gdouble *value);
G_END_DECLS
#endif /* GSTYLE_COLOR_CONVERT_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_FILTER_H
#define GSTYLE_COLOR_FILTER_H
#pragma once
#include <glib.h>
#include <gdk/gdk.h>
......@@ -73,6 +72,3 @@ void gstyle_color_filter_websafe (GdkRGBA *rgba,
gpointer user_data);
G_END_DECLS
#endif /* GSTYLE_COLOR_FILTER_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_ITEM_H
#define GSTYLE_COLOR_ITEM_H
#pragma once
#include <glib.h>
......@@ -54,5 +53,3 @@ guint gstyle_color_item_get_start (GstyleColorItem
guint gstyle_color_item_get_len (GstyleColorItem *self);
G_END_DECLS
#endif /* GSTYLE_COLOR_ITEM_H */
......@@ -15,8 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_PANEL_ACTIONS_H
#define GSTYLE_COLOR_PANEL_ACTIONS_H
#pragma once
#include <glib-object.h>
......@@ -27,6 +26,3 @@ G_BEGIN_DECLS
void gstyle_color_panel_actions_init (GstyleColorPanel *self);
G_END_DECLS
#endif /* GSTYLE_COLOR_PANEL_ACTIONS_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_PANEL_PRIVATE_H
#define GSTYLE_COLOR_PANEL_PRIVATE_H
#pragma once
#include <glib-object.h>
......@@ -148,6 +147,3 @@ void _gstyle_color_panel_update_prefs_page (G
const gchar *page_name);
G_END_DECLS
#endif /* GSTYLE_COLOR_PANEL_PRIVATE_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_PANEL_H
#define GSTYLE_COLOR_PANEL_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
......@@ -78,6 +77,3 @@ void gstyle_color_panel_show_palette (Gsty
GstylePalette *palette);
G_END_DECLS
#endif /* GSTYLE_COLOR_PANEL_H */
......@@ -20,8 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_PLANE_H
#define GSTYLE_COLOR_PLANE_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
......@@ -84,6 +83,3 @@ void gstyle_color_plane_set_xyz (GstyleC
const GstyleXYZ *xyz);
G_END_DECLS
#endif /* GSTYLE_COLOR_PLANE_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_PREDEFINED_H
#define GSTYLE_COLOR_PREDEFINED_H
#pragma once
#include <glib.h>
......@@ -185,5 +184,3 @@ static NamedColor predefined_colors_table[] =
};
G_END_DECLS
#endif /* GSTYLE_COLOR_PREDEFINED_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_SCALE_H
#define GSTYLE_COLOR_SCALE_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
......@@ -74,5 +73,3 @@ void gstyle_color_scale_set_kind (GstyleCo
GstyleColorScaleKind kind);
G_END_DECLS
#endif /* GSTYLE_COLOR_SCALE_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_WIDGET_ACTIONS_H
#define GSTYLE_COLOR_WIDGET_ACTIONS_H
#pragma once
#include <glib.h>
......@@ -28,5 +27,3 @@ G_BEGIN_DECLS
void gstyle_color_widget_actions_init (GstyleColorWidget *self);
G_END_DECLS
#endif /* GSTYLE_COLOR_WIDGET_ACTIONS_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_WIDGET_H
#define GSTYLE_COLOR_WIDGET_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
......@@ -74,4 +73,3 @@ void gstyle_color_widget_set_filter_func (GstyleColo
G_END_DECLS
#endif /* GSTYLE_TYPE_COLOR_WIDGET */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLOR_H
#define GSTYLE_COLOR_H
#pragma once
#include <glib-object.h>
#include <gdk/gdk.h>
......@@ -106,5 +105,3 @@ void gstyle_color_fill_rgba (GstyleColor
GdkRGBA *rgba);
G_END_DECLS
#endif /* GSTYLE_COLOR_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_COLORLEXER_H
#define GSTYLE_COLORLEXER_H
#pragma once
#include "gstyle-types.h"
#include "gstyle-color.h"
......@@ -44,5 +43,3 @@ typedef enum
GPtrArray *gstyle_colorlexer_parse (const gchar *data);
G_END_DECLS
#endif /* GSTYLE_COLORLEXER_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_CSS_PROVIDER_H
#define GSTYLE_CSS_PROVIDER_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
......@@ -32,6 +31,3 @@ GstyleCssProvider *gstyle_css_provider_init_default (GdkScreen *scree
GstyleCssProvider *gstyle_css_provider_new (void);
G_END_DECLS
#endif /* GSTYLE_CSS_PROVIDER_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_EYEDROPPER_H
#define GSTYLE_EYEDROPPER_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
......@@ -31,5 +30,3 @@ G_DECLARE_FINAL_TYPE (GstyleEyedropper, gstyle_eyedropper, GSTYLE, EYEDROPPER, G
GstyleEyedropper *gstyle_eyedropper_new (GdkEvent *event);
G_END_DECLS
#endif /* GSTYLE_EYEDROPPER_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_HSV_H
#define GSTYLE_HSV_H
#pragma once
#include <glib.h>
......@@ -41,5 +40,3 @@ GstyleHSV *gstyle_hsv_copy (const GstyleHSV *self);
void gstyle_hsv_free (GstyleHSV *self);
G_END_DECLS
#endif /* GSTYLE_HSV_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_PALETTE_WIDGET_H
#define GSTYLE_PALETTE_WIDGET_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
......@@ -95,6 +94,3 @@ gboolean gstyle_palette_widget_show_palette
GstylePaletteWidget *gstyle_palette_widget_new (void);
G_END_DECLS
#endif /* GSTYLE_PALETTE_WIDGET_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_PALETTE_H
#define GSTYLE_PALETTE_H
#pragma once
#include <glib-object.h>
#include <gio/gio.h>
......@@ -91,5 +90,3 @@ void gstyle_palette_set_id (GstylePalette *self,
const gchar *id);
G_END_DECLS
#endif /* GSTYLE_PALETTE_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_PRIVATE_H
#define GSTYLE_PRIVATE_H
#pragma once
#include <glib-object.h>
......@@ -27,5 +26,3 @@ G_BEGIN_DECLS
#include "gstyle-utils.h"
G_END_DECLS
#endif /* GSTYLE_PRIVATE_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_RENAME_POPOVER_H
#define GSTYLE_RENAME_POPOVER_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
......@@ -40,6 +39,3 @@ void gstyle_rename_popover_set_name (GstyleRenameP
const gchar *name);
G_END_DECLS
#endif /* GSTYLE_RENAME_POPOVER_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_REVEALER_H
#define GSTYLE_REVEALER_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
......@@ -33,5 +32,3 @@ void gstyle_revealer_set_reveal_child (GstyleRevealer *self,
gboolean reveal);
G_END_DECLS
#endif /* GSTYLE_REVEALER_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_SLIDEIN_H
#define GSTYLE_SLIDEIN_H
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
......@@ -60,5 +59,3 @@ void gstyle_slidein_set_interpolate_size (Gs
void gstyle_slidein_set_slide_fraction (GstyleSlidein *self,
gdouble slide_fraction);
G_END_DECLS
#endif /* GSTYLE_SLIDEIN_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_TYPES_H
#define GSTYLE_TYPES_H
#pragma once
#include <glib-object.h>
......@@ -29,6 +28,3 @@ typedef struct _GstyleXYZ GstyleXYZ;
typedef struct _GstyleColorItem GstyleColorItem;
G_END_DECLS
#endif /* GSTYLE_TYPES_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_UTILS_H
#define GSTYLE_UTILS_H
#pragma once
#include <glib.h>
#include <cairo.h>
......@@ -93,5 +92,3 @@ gstyle_utils_cmp_border (GtkBorder border1,
((obj!=*(ptr))?(gstyle_clear_weak_pointer(ptr),*(ptr)=obj,((obj)?g_object_add_weak_pointer((GObject*)obj,(gpointer*)ptr),NULL:NULL),1):0)
G_END_DECLS
#endif /* GSTYLE_UTILS_H */
......@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSTYLE_XYZ_H
#define GSTYLE_XYZ_H
#pragma once
#include <glib.h>
......@@ -41,5 +40,3 @@ GstyleXYZ *gstyle_xyz_copy (const GstyleXYZ *self);
void gstyle_xyz_free (GstyleXYZ *self);
G_END_DECLS
#endif /* GSTYLE_XYZ_H */
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