forked from AuroraMiddleware/gtk
styleproperty: Rename ParseFunc and PrintFunc typedefs
Rename them to GtkStyleParseFunc and GtkStylePrintFunc, so we can export them.
This commit is contained in:
parent
d0e1e2b103
commit
715674c45b
@ -40,10 +40,10 @@
|
|||||||
#include "gtkthemingengine.h"
|
#include "gtkthemingengine.h"
|
||||||
#include "gtktypebuiltins.h"
|
#include "gtktypebuiltins.h"
|
||||||
|
|
||||||
typedef gboolean (* ParseFunc) (GtkCssParser *parser,
|
typedef gboolean (* GtkStyleParseFunc) (GtkCssParser *parser,
|
||||||
GFile *base,
|
GFile *base,
|
||||||
GValue *value);
|
GValue *value);
|
||||||
typedef void (* PrintFunc) (const GValue *value,
|
typedef void (* GtkStylePrintFunc) (const GValue *value,
|
||||||
GString *string);
|
GString *string);
|
||||||
|
|
||||||
static GHashTable *parse_funcs = NULL;
|
static GHashTable *parse_funcs = NULL;
|
||||||
@ -52,8 +52,8 @@ static GHashTable *properties = NULL;
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
register_conversion_function (GType type,
|
register_conversion_function (GType type,
|
||||||
ParseFunc parse,
|
GtkStyleParseFunc parse,
|
||||||
PrintFunc print)
|
GtkStylePrintFunc print)
|
||||||
{
|
{
|
||||||
if (parse)
|
if (parse)
|
||||||
g_hash_table_insert (parse_funcs, GSIZE_TO_POINTER (type), parse);
|
g_hash_table_insert (parse_funcs, GSIZE_TO_POINTER (type), parse);
|
||||||
@ -1380,7 +1380,7 @@ _gtk_style_property_parse_value (const GtkStyleProperty *property,
|
|||||||
GtkCssParser *parser,
|
GtkCssParser *parser,
|
||||||
GFile *base)
|
GFile *base)
|
||||||
{
|
{
|
||||||
ParseFunc func;
|
GtkStyleParseFunc func;
|
||||||
|
|
||||||
g_return_val_if_fail (value != NULL, FALSE);
|
g_return_val_if_fail (value != NULL, FALSE);
|
||||||
g_return_val_if_fail (parser != NULL, FALSE);
|
g_return_val_if_fail (parser != NULL, FALSE);
|
||||||
@ -1437,7 +1437,7 @@ _gtk_style_property_print_value (const GtkStyleProperty *property,
|
|||||||
const GValue *value,
|
const GValue *value,
|
||||||
GString *string)
|
GString *string)
|
||||||
{
|
{
|
||||||
PrintFunc func;
|
GtkStylePrintFunc func;
|
||||||
|
|
||||||
css_string_funcs_init ();
|
css_string_funcs_init ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user