[gtk+] GtkToggleButton: Move nonexported API to a private header
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkToggleButton: Move nonexported API to a private header
- Date: Mon, 20 Oct 2014 02:43:20 +0000 (UTC)
commit 3f5d4623051e8c499730880ab6c80d120aec9f44
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Oct 19 22:42:49 2014 -0400
GtkToggleButton: Move nonexported API to a private header
This is our standard practice nowadays.
gtk/Makefile.am | 1 +
gtk/gtkradiobutton.c | 1 +
gtk/gtktogglebutton.c | 1 +
gtk/gtktogglebutton.h | 3 ---
gtk/gtktogglebuttonprivate.h | 40 ++++++++++++++++++++++++++++++++++++++++
5 files changed, 43 insertions(+), 3 deletions(-)
---
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 706bb90..8f98609 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -669,6 +669,7 @@ gtk_private_h_sources = \
gtkthemingbackgroundprivate.h \
deprecated/gtkthemingengineprivate.h \
gtktrashmonitor.h \
+ gtktogglebuttonprivate.h \
gtktoolbarprivate.h \
gtktoolpaletteprivate.h \
gtktreedatalist.h \
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 9bfc83c..4e98dd9 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -27,6 +27,7 @@
#include "gtkradiobutton.h"
#include "gtkbuttonprivate.h"
+#include "gtktogglebuttonprivate.h"
#include "gtklabel.h"
#include "gtkmarshalers.h"
#include "gtkprivate.h"
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c
index d766f19..a808d18 100644
--- a/gtk/gtktogglebutton.c
+++ b/gtk/gtktogglebutton.c
@@ -27,6 +27,7 @@
#include "gtktogglebutton.h"
#include "gtkbuttonprivate.h"
+#include "gtktogglebuttonprivate.h"
#include "gtklabel.h"
#include "gtkmain.h"
#include "gtkmarshalers.h"
diff --git a/gtk/gtktogglebutton.h b/gtk/gtktogglebutton.h
index 67a02f1..692aed3 100644
--- a/gtk/gtktogglebutton.h
+++ b/gtk/gtktogglebutton.h
@@ -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
diff --git a/gtk/gtktogglebuttonprivate.h b/gtk/gtktogglebuttonprivate.h
new file mode 100644
index 0000000..f487b54
--- /dev/null
+++ b/gtk/gtktogglebuttonprivate.h
@@ -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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]