[gtk+] Add a gtkscaleprivate.h header



commit ec37512f64555af6e4fdd7e61a649ead564d53a2
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 30 03:17:05 2011 -0500

    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(-)
---
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 366c7fe..d799ed2 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 f27bd65..190f1b4 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -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"
diff --git a/gtk/gtkscale.h b/gtk/gtkscale.h
index 9a58525..b0fb131 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 0000000..1306850
--- /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 <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__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]