grim/gplate
Clone
Summary
Browse
Changes
Graph
I thought I already added this.. my bad
trying_to_get_includes_working
2008-02-20, grim
545b7214a0de
I thought I already added this.. my bad
/*
* Copyright (C) 2007-2008 Gary Kramlich <grim@reaperworld.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program 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 General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifdef HAVE_CONFIG_H
#
include
<config.h>
#endif
/* HAVE_CONFIG_H */
#include
<gplate/gplate-code-tag.h>
/******************************************************************************
* Tag stuff
*****************************************************************************/
static
const
gchar
*
gplate_code_tag_class_get_prefix
(
const
GPlateTagClass
*
tag_class
)
{
return
"{%"
;
}
static
const
gchar
*
gplate_code_tag_class_get_suffix
(
const
GPlateTagClass
*
tag_class
)
{
return
"%}"
;
}
/******************************************************************************
* Object Stuff
*****************************************************************************/
static
void
gplate_code_tag_class_init
(
GPlateCodeTagClass
*
klass
)
{
GPlateTagClass
*
tag_class
=
GPLATE_TAG_CLASS
(
klass
);
tag_class
->
get_prefix
=
gplate_code_tag_class_get_prefix
;
tag_class
->
get_suffix
=
gplate_code_tag_class_get_suffix
;
}
/******************************************************************************
* GPlateCodeTag API
*****************************************************************************/
GType
gplate_code_tag_get_gtype
(
void
)
{
static
GType
type
=
0
;
if
(
type
==
0
)
{
static
const
GTypeInfo
info
=
{
sizeof
(
GPlateCodeTagClass
),
NULL
,
NULL
,
(
GClassInitFunc
)
gplate_code_tag_class_init
,
NULL
,
NULL
,
sizeof
(
GPlateCodeTag
),
0
,
NULL
,
};
type
=
g_type_register_static
(
GPLATE_TYPE_TAG
,
"GPlateCodeTag"
,
&
info
,
0
);
}
return
type
;
}