gradient: Add a private header file

This commit is contained in:
Benjamin Otte
2012-10-02 12:15:22 +02:00
parent a67bf5fde4
commit 046d004725
7 changed files with 42 additions and 11 deletions

View File

@ -477,6 +477,7 @@ gtk_private_h_sources = \
gtkfilesystemmodel.h \ gtkfilesystemmodel.h \
gtkfontchooserprivate.h \ gtkfontchooserprivate.h \
gtkfontchooserutils.h \ gtkfontchooserutils.h \
gtkgradientprivate.h \
gtkiconcache.h \ gtkiconcache.h \
gtkiconhelperprivate.h \ gtkiconhelperprivate.h \
gtkiconviewprivate.h \ gtkiconviewprivate.h \

View File

@ -22,8 +22,8 @@
#include "gtkcssimagegradientprivate.h" #include "gtkcssimagegradientprivate.h"
#include "gtkcssprovider.h" #include "gtkcssprovider.h"
#include "gtkgradientprivate.h"
#include "gtksymboliccolorprivate.h" #include "gtksymboliccolorprivate.h"
#include "gtkstylepropertiesprivate.h"
G_DEFINE_TYPE (GtkCssImageGradient, _gtk_css_image_gradient, GTK_TYPE_CSS_IMAGE) G_DEFINE_TYPE (GtkCssImageGradient, _gtk_css_image_gradient, GTK_TYPE_CSS_IMAGE)

View File

@ -33,9 +33,9 @@
#include "gtkcsstypedvalueprivate.h" #include "gtkcsstypedvalueprivate.h"
#include "gtkcsstypesprivate.h" #include "gtkcsstypesprivate.h"
#include "gtkgradient.h" #include "gtkgradient.h"
#include "gtkgradientprivate.h"
#include "gtkprivatetypebuiltins.h" #include "gtkprivatetypebuiltins.h"
#include "gtkstylecontextprivate.h" #include "gtkstylecontextprivate.h"
#include "gtkstylepropertiesprivate.h"
#include "gtksymboliccolorprivate.h" #include "gtksymboliccolorprivate.h"
#include "gtkthemingengine.h" #include "gtkthemingengine.h"
#include "gtktypebuiltins.h" #include "gtktypebuiltins.h"

View File

@ -16,11 +16,13 @@
*/ */
#include "config.h" #include "config.h"
#include "gtkgradient.h"
#include "gtkgradientprivate.h"
#include "gtkcssrgbavalueprivate.h" #include "gtkcssrgbavalueprivate.h"
#include "gtkstylecontextprivate.h" #include "gtkstylecontextprivate.h"
#include "gtkstyleproperties.h" #include "gtkstyleproperties.h"
#include "gtkstylepropertiesprivate.h" #include "gtksymboliccolorprivate.h"
/** /**
* SECTION:gtkgradient * SECTION:gtkgradient

34
gtk/gtkgradientprivate.h Normal file
View File

@ -0,0 +1,34 @@
/* GTK - The GIMP Toolkit
* Copyright (C) 2012 Benjamin Otte <otte@gnome.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GTK_GRADIENT_PRIVATE_H__
#define __GTK_GRADIENT_PRIVATE_H__
#include "gtkgradient.h"
#include "gtkcsstypesprivate.h"
G_BEGIN_DECLS
cairo_pattern_t * _gtk_gradient_resolve_full (GtkGradient *gradient,
GtkStyleProviderPrivate *provider,
GtkCssComputedValues *values,
GtkCssComputedValues *parent_values,
GtkCssDependencies *dependencies);
G_END_DECLS
#endif /* __GTK_STYLE_PROPERTIES_PRIVATE_H__ */

View File

@ -28,6 +28,7 @@
#include "gtkcssnumbervalueprivate.h" #include "gtkcssnumbervalueprivate.h"
#include "gtkcssrgbavalueprivate.h" #include "gtkcssrgbavalueprivate.h"
#include "gtkdebug.h" #include "gtkdebug.h"
#include "gtkgradientprivate.h"
#include "gtkstylepropertiesprivate.h" #include "gtkstylepropertiesprivate.h"
#include "gtktypebuiltins.h" #include "gtktypebuiltins.h"
#include "gtkthemingengineprivate.h" #include "gtkthemingengineprivate.h"

View File

@ -33,13 +33,6 @@ void _gtk_style_properties_set_property_by_property (GtkStylePropertie
GtkStateFlags state, GtkStateFlags state,
GtkCssValue *value); GtkCssValue *value);
cairo_pattern_t *
_gtk_gradient_resolve_full (GtkGradient *gradient,
GtkStyleProviderPrivate *provider,
GtkCssComputedValues *values,
GtkCssComputedValues *parent_values,
GtkCssDependencies *dependencies);
G_END_DECLS G_END_DECLS
#endif /* __GTK_STYLE_PROPERTIES_PRIVATE_H__ */ #endif /* __GTK_STYLE_PROPERTIES_PRIVATE_H__ */