Add a gtklabelprivate.h header

For now, move the few private functions from gtklabel.h here.
This commit is contained in:
Matthias Clasen 2014-01-03 20:44:21 -05:00
parent 3c5bb9722b
commit c6d9f82916
6 changed files with 38 additions and 7 deletions

View File

@ -486,6 +486,7 @@ gtk_private_h_sources = \
gtkimcontextsimpleseqs.h \
gtkintl.h \
gtkkeyhash.h \
gtklabelprivate.h \
gtklockbuttonprivate.h \
gtkmenubuttonprivate.h \
gtkmenuprivate.h \

View File

@ -20,6 +20,7 @@
#include <gtk/gtk.h>
#include <gtk/gtkpango.h>
#include "gtkwidgetprivate.h"
#include "gtklabelprivate.h"
#include "gtklabelaccessible.h"
struct _GtkLabelAccessiblePrivate

View File

@ -28,6 +28,7 @@
#include <string.h>
#include "gtklabel.h"
#include "gtklabelprivate.h"
#include "gtkaccellabel.h"
#include "gtkdnd.h"
#include "gtkmarshalers.h"

View File

@ -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__ */

34
gtk/gtklabelprivate.h Normal file
View File

@ -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__ */

View File

@ -77,6 +77,7 @@
#include "gtktypebuiltins.h"
#include "gtkmodelmenuitem.h"
#include "gtkwidgetprivate.h"
#include "gtklabelprivate.h"
#include "deprecated/gtktearoffmenuitem.h"