[gtk+] Add a gtklabelprivate.h header



commit c6d9f829166f502b4adaea1897946a293eac49fd
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 3 20:44:21 2014 -0500

    Add a gtklabelprivate.h header
    
    For now, move the few private functions from gtklabel.h here.

 gtk/Makefile.am               |    1 +
 gtk/a11y/gtklabelaccessible.c |    1 +
 gtk/gtklabel.c                |    1 +
 gtk/gtklabel.h                |    7 -------
 gtk/gtklabelprivate.h         |   34 ++++++++++++++++++++++++++++++++++
 gtk/gtkmenushell.c            |    1 +
 6 files changed, 38 insertions(+), 7 deletions(-)
---
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index ecbcbd1..b616aa3 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -486,6 +486,7 @@ gtk_private_h_sources =             \
        gtkimcontextsimpleseqs.h \
        gtkintl.h               \
        gtkkeyhash.h            \
+       gtklabelprivate.h       \
        gtklockbuttonprivate.h  \
        gtkmenubuttonprivate.h  \
        gtkmenuprivate.h        \
diff --git a/gtk/a11y/gtklabelaccessible.c b/gtk/a11y/gtklabelaccessible.c
index 9c35ad7..f4bd02e 100644
--- a/gtk/a11y/gtklabelaccessible.c
+++ b/gtk/a11y/gtklabelaccessible.c
@@ -20,6 +20,7 @@
 #include <gtk/gtk.h>
 #include <gtk/gtkpango.h>
 #include "gtkwidgetprivate.h"
+#include "gtklabelprivate.h"
 #include "gtklabelaccessible.h"
 
 struct _GtkLabelAccessiblePrivate
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 9dad3ef..8d06be7 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -28,6 +28,7 @@
 #include <string.h>
 
 #include "gtklabel.h"
+#include "gtklabelprivate.h"
 #include "gtkaccellabel.h"
 #include "gtkdnd.h"
 #include "gtkmarshalers.h"
diff --git a/gtk/gtklabel.h b/gtk/gtklabel.h
index eecb8e8..1f4f74d 100644
--- a/gtk/gtklabel.h
+++ b/gtk/gtklabel.h
@@ -214,13 +214,6 @@ GDK_AVAILABLE_IN_ALL
 gboolean     gtk_label_get_track_visited_links  (GtkLabel *label);
 
 
-/* private */
-
-void _gtk_label_mnemonics_visible_apply_recursively (GtkWidget *widget,
-                                                     gboolean   mnemonics_visible);
-gint _gtk_label_get_cursor_position (GtkLabel *label);
-gint _gtk_label_get_selection_bound (GtkLabel *label);
-
 G_END_DECLS
 
 #endif /* __GTK_LABEL_H__ */
diff --git a/gtk/gtklabelprivate.h b/gtk/gtklabelprivate.h
new file mode 100644
index 0000000..e8fe1b2
--- /dev/null
+++ b/gtk/gtklabelprivate.h
@@ -0,0 +1,34 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_LABEL_PRIVATE_H__
+#define __GTK_LABEL_PRIVATE_H__
+
+
+#include <gtk/gtklabel.h>
+
+
+G_BEGIN_DECLS
+
+void _gtk_label_mnemonics_visible_apply_recursively (GtkWidget *widget,
+                                                     gboolean   mnemonics_visible);
+gint _gtk_label_get_cursor_position (GtkLabel *label);
+gint _gtk_label_get_selection_bound (GtkLabel *label);
+
+G_END_DECLS
+
+#endif /* __GTK_LABEL_PRIVATE_H__ */
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c
index 97efed3..3bbceee 100644
--- a/gtk/gtkmenushell.c
+++ b/gtk/gtkmenushell.c
@@ -77,6 +77,7 @@
 #include "gtktypebuiltins.h"
 #include "gtkmodelmenuitem.h"
 #include "gtkwidgetprivate.h"
+#include "gtklabelprivate.h"
 
 #include "deprecated/gtktearoffmenuitem.h"
 


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