[gtk+] Make GtkModelButton public



commit fd945be50b5683f79234b039bc33409e3f67cc83
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Oct 23 21:31:17 2014 -0400

    Make GtkModelButton public

 gtk/Makefile.am      |    2 +-
 gtk/gtk.h            |    1 +
 gtk/gtkmodelbutton.h |    6 ++++++
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index f60bec8..56bb755 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -393,6 +393,7 @@ gtk_public_h_sources =              \
        gtkmenushell.h          \
        gtkmenutoolbutton.h     \
        gtkmessagedialog.h      \
+       gtkmodelbutton.h        \
        gtkmodules.h            \
        gtkmountoperation.h     \
        gtknotebook.h           \
@@ -624,7 +625,6 @@ gtk_private_h_sources =             \
        gtkmenutrackeritem.h    \
        gtkmnemonichash.h       \
        gtkmodelmenuitem.h      \
-       gtkmodelbutton.h        \
        gtkmodifierstyle.h      \
        gtkmodulesprivate.h     \
        gtkmountoperationprivate.h \
diff --git a/gtk/gtk.h b/gtk/gtk.h
index 5955dd9..de87728 100644
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -141,6 +141,7 @@
 #include <gtk/gtkmenushell.h>
 #include <gtk/gtkmenutoolbutton.h>
 #include <gtk/gtkmessagedialog.h>
+#include <gtk/gtkmodelbutton.h>
 #include <gtk/gtkmodules.h>
 #include <gtk/gtkmountoperation.h>
 #include <gtk/gtknotebook.h>
diff --git a/gtk/gtkmodelbutton.h b/gtk/gtkmodelbutton.h
index b3963ba..c993ce4 100644
--- a/gtk/gtkmodelbutton.h
+++ b/gtk/gtkmodelbutton.h
@@ -20,6 +20,10 @@
 #ifndef __GTK_MODEL_BUTTON_H__
 #define __GTK_MODEL_BUTTON_H__
 
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
 #include <gtk/gtkwidget.h>
 
 G_BEGIN_DECLS
@@ -32,8 +36,10 @@ G_BEGIN_DECLS
 
 typedef struct _GtkModelButton                            GtkModelButton;
 
+GDK_AVAILABLE_IN_3_16
 GType                   gtk_model_button_get_type                    (void) G_GNUC_CONST;
 
+GDK_AVAILABLE_IN_3_16
 GtkWidget *             gtk_model_button_new                         (void);
 
 G_END_DECLS


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