Add a gtkscaleprivate.h header

This commit is contained in:
Matthias Clasen 2011-01-30 03:17:05 -05:00
parent 4a0aa41742
commit ec37512f64
4 changed files with 40 additions and 8 deletions

View File

@ -417,6 +417,7 @@ gtk_private_h_sources = \
gtkrecentchooserdefault.h \
gtkrecentchooserprivate.h \
gtkrecentchooserutils.h \
gtkscaleprivate.h \
gtksearchengine.h \
gtksearchenginesimple.h \
gtkselectionprivate.h \

View File

@ -30,7 +30,7 @@
#include <math.h>
#include <stdlib.h>
#include "gtkscale.h"
#include "gtkscaleprivate.h"
#include "gtkiconfactory.h"
#include "gtkicontheme.h"
#include "gtkmarshalers.h"

View File

@ -105,13 +105,6 @@ void gtk_scale_add_mark (GtkScale *scale,
const gchar *markup);
void gtk_scale_clear_marks (GtkScale *scale);
/* internal API */
void _gtk_scale_clear_layout (GtkScale *scale);
void _gtk_scale_get_value_size (GtkScale *scale,
gint *width,
gint *height);
gchar * _gtk_scale_format_value (GtkScale *scale,
gdouble value);
G_END_DECLS

38
gtk/gtkscaleprivate.h Normal file
View File

@ -0,0 +1,38 @@
/* 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_SCALE_PRIVATE_H__
#define __GTK_SCALE_PRIVATE_H__
#include <gtk/gtkscale.h>
G_BEGIN_DECLS
void _gtk_scale_clear_layout (GtkScale *scale);
void _gtk_scale_get_value_size (GtkScale *scale,
gint *width,
gint *height);
gchar * _gtk_scale_format_value (GtkScale *scale,
gdouble value);
G_END_DECLS
#endif /* __GTK_SCALE_PRIVATE_H__ */