Commit e332a975 authored by Adrien Plazas's avatar Adrien Plazas Committed by Adrien Plazas
Browse files

Move HDY_STYLE_PROVIDER_PRIORITY_OVERRIDE to hdy-main.c

This allows removing hdy-style-private.h, as there is no point in
keeping it if it's only included by hdy-main.c and only contains a
macro definition.
parent 04b92fb7
......@@ -14,7 +14,6 @@ private_headers = [
'hdy-preferences-group-private.h',
'hdy-preferences-page-private.h',
'hdy-shadow-helper-private.h',
'hdy-style-private.h',
'hdy-swipe-tracker-private.h',
'hdy-swipeable-private.h',
'hdy-view-switcher-button-private.h',
......
......@@ -9,7 +9,6 @@
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include "gconstructorprivate.h"
#include "hdy-style-private.h"
/**
* PRIVATE:hdy-main
......@@ -28,6 +27,12 @@
#endif
G_DEFINE_CONSTRUCTOR(hdy_constructor)
/* The style provider priority to use for libhandy widgets custom styling. It is
* higher than themes and settings, allowing to override theme defaults, but
* lower than applications and user provided styles, so application developers
* can nonetheless apply custom styling on top of it. */
#define HDY_STYLE_PROVIDER_PRIORITY_OVERRIDE (GTK_STYLE_PROVIDER_PRIORITY_SETTINGS + 1)
/**
* hdy_style_init:
*
......
......@@ -8,7 +8,6 @@
#include <glib/gi18n-lib.h>
#include "hdy-shadow-helper-private.h"
#include "hdy-style-private.h"
#include <math.h>
......
/*
* Copyright (C) 2019 Purism SPC
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
#endif
#include <glib.h>
G_BEGIN_DECLS
/* The style provider priority to use for libhandy widgets custom styling. It is
* higher than themes and settings, allowing to override theme defaults, but
* lower than applications and user provided styles, so application developers
* can nonetheless apply custom styling on top of it. */
#define HDY_STYLE_PROVIDER_PRIORITY_OVERRIDE (GTK_STYLE_PROVIDER_PRIORITY_SETTINGS + 1)
G_END_DECLS
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