Privately export css_provider_get_theme_dir

This commit is contained in:
Matthias Clasen 2011-01-26 11:17:34 -05:00
parent 368a5c8937
commit ea24fa62c8
3 changed files with 37 additions and 4 deletions

View File

@ -383,6 +383,7 @@ gtk_private_h_sources = \
gtkbuilderprivate.h \
gtkbuttonprivate.h \
gtkcellareaboxcontextprivate.h \
gtkcssproviderprivate.h \
gtkcustompaperunixdialog.h \
gtkdndcursors.h \
gtkentryprivate.h \

View File

@ -25,12 +25,13 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <cairo-gobject.h>
#include "gtkcssproviderprivate.h"
#include "gtkanimationdescription.h"
#include "gtk9slice.h"
#include "gtkgradient.h"
#include "gtkthemingengine.h"
#include "gtkstyleprovider.h"
#include "gtkcssprovider.h"
#include "gtkstylecontextprivate.h"
#include "gtkprivate.h"
@ -3936,8 +3937,8 @@ gtk_css_provider_get_default (void)
return provider;
}
static gchar *
css_provider_get_theme_dir (void)
gchar *
_gtk_css_provider_get_theme_dir (void)
{
const gchar *var;
gchar *path;
@ -4000,7 +4001,7 @@ gtk_css_provider_get_named (const gchar *name,
if (!path)
{
gchar *theme_dir = css_provider_get_theme_dir ();
gchar *theme_dir = _gtk_css_provider_get_theme_dir ();
path = g_build_filename (theme_dir, name, subpath, NULL);
g_free (theme_dir);

View File

@ -0,0 +1,31 @@
/* GTK - The GIMP Toolkit
* Copyright (C) 2011 Red Hat, Inc.
*
* 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, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GTK_CSS_PROVIDER_PRIVATE_H__
#define __GTK_CSS_PROVIDER_PRIVATE_H__
#include "gtkcssprovider.h"
G_BEGIN_DECLS
gchar *_gtk_css_provider_get_theme_dir (void);
G_END_DECLS
#endif /* __GTK_CSS_PROVIDER_PRIVATE_H__ */