GtkToggleButton: Move nonexported API to a private header

This is our standard practice nowadays.
This commit is contained in:
Matthias Clasen 2014-10-19 22:42:49 -04:00
parent ce915dc6f0
commit 3f5d462305
5 changed files with 43 additions and 3 deletions

View File

@ -669,6 +669,7 @@ gtk_private_h_sources = \
gtkthemingbackgroundprivate.h \
deprecated/gtkthemingengineprivate.h \
gtktrashmonitor.h \
gtktogglebuttonprivate.h \
gtktoolbarprivate.h \
gtktoolpaletteprivate.h \
gtktreedatalist.h \

View File

@ -27,6 +27,7 @@
#include "gtkradiobutton.h"
#include "gtkbuttonprivate.h"
#include "gtktogglebuttonprivate.h"
#include "gtklabel.h"
#include "gtkmarshalers.h"
#include "gtkprivate.h"

View File

@ -27,6 +27,7 @@
#include "gtktogglebutton.h"
#include "gtkbuttonprivate.h"
#include "gtktogglebuttonprivate.h"
#include "gtklabel.h"
#include "gtkmain.h"
#include "gtkmarshalers.h"

View File

@ -95,9 +95,6 @@ void gtk_toggle_button_set_inconsistent (GtkToggleButton *toggle_button,
GDK_AVAILABLE_IN_ALL
gboolean gtk_toggle_button_get_inconsistent (GtkToggleButton *toggle_button);
void _gtk_toggle_button_set_active (GtkToggleButton *toggle_button,
gboolean is_active);
G_END_DECLS

View File

@ -0,0 +1,40 @@
/* GTK - The GIMP Toolkit
* Copyright (C) 2014 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, see <http://www.gnu.org/licenses/>.
*/
/*
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#ifndef __GTK_TOGGLE_BUTTON_PRIVATE_H__
#define __GTK_TOGGLE_BUTTON_PRIVATE_H__
#include <gtk/gtktogglebutton.h>
G_BEGIN_DECLS
void _gtk_toggle_button_set_active (GtkToggleButton *toggle_button,
gboolean is_active);
G_END_DECLS
#endif /* __GTK_TOGGLE_BUTTON_PRIVATE_H__ */