grim/guifications3
Clone
Summary
Browse
Changes
Graph
fix a documentation goof up
2009-12-27, Gary Kramlich
9a882cfb0ec1
fix a documentation goof up
/*
* Guifications - The end-all, be-all notification framework
* Copyright (C) 2003-2009 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
#
include
<config.h>
#endif
/* HAVE_CONFIG_H */
#include
"guifications-daemon-web-theme.h"
/******************************************************************************
* Globals
*****************************************************************************/
static
gchar
*
current_theme
=
NULL
;
/******************************************************************************
* API
*****************************************************************************/
void
gfd_web_theme_set_theme
(
const
gchar
*
theme
)
{
if
(
current_theme
)
g_free
(
current_theme
);
current_theme
=
(
theme
)
?
g_strdup
(
theme
)
:
NULL
;
}
const
gchar
*
gfd_web_theme_get_theme
(
void
)
{
return
current_theme
;
}
gchar
*
gfd_web_theme_get_template_path
(
const
gchar
*
tplate
)
{
const
gchar
*
theme_dir
=
NULL
;
gchar
*
ret
=
NULL
;
theme_dir
=
(
current_theme
)
?
current_theme
:
"default"
;
ret
=
g_build_filename
(
DATADIR
,
"guifications-daemon"
,
"web"
,
"themes"
,
theme_dir
,
tplate
,
NULL
);
return
ret
;
}