From ec37512f64555af6e4fdd7e61a649ead564d53a2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 30 Jan 2011 03:17:05 -0500 Subject: [PATCH] Add a gtkscaleprivate.h header --- gtk/Makefile.am | 1 + gtk/gtkscale.c | 2 +- gtk/gtkscale.h | 7 ------- gtk/gtkscaleprivate.h | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 40 insertions(+), 8 deletions(-) create mode 100644 gtk/gtkscaleprivate.h diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 366c7fec3c..d799ed2d72 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -417,6 +417,7 @@ gtk_private_h_sources = \ gtkrecentchooserdefault.h \ gtkrecentchooserprivate.h \ gtkrecentchooserutils.h \ + gtkscaleprivate.h \ gtksearchengine.h \ gtksearchenginesimple.h \ gtkselectionprivate.h \ diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index f27bd65a9f..190f1b4ceb 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -30,7 +30,7 @@ #include #include -#include "gtkscale.h" +#include "gtkscaleprivate.h" #include "gtkiconfactory.h" #include "gtkicontheme.h" #include "gtkmarshalers.h" diff --git a/gtk/gtkscale.h b/gtk/gtkscale.h index 9a585253b7..b0fb1313b2 100644 --- a/gtk/gtkscale.h +++ b/gtk/gtkscale.h @@ -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 diff --git a/gtk/gtkscaleprivate.h b/gtk/gtkscaleprivate.h new file mode 100644 index 0000000000..1306850591 --- /dev/null +++ b/gtk/gtkscaleprivate.h @@ -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 + + +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__ */