Make GtkColumnViewSorter public
authorMatthias Clasen <mclasen@redhat.com>
Thu, 20 Oct 2022 14:05:13 +0000 (10:05 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Oct 2022 17:01:18 +0000 (13:01 -0400)
API is yet to come.

gtk/gtk.h
gtk/gtkcolumnviewsorter.h [new file with mode: 0644]
gtk/gtkcolumnviewsorterprivate.h
gtk/meson.build

index cf139b5dda96b4e234c85a1a48b14c61d80b7c5c..21727f7abc89f1ca57f2fdaff7da4638fb578a47 100644 (file)
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -85,6 +85,7 @@
 #include <gtk/gtkcolorutils.h>
 #include <gtk/gtkcolumnview.h>
 #include <gtk/gtkcolumnviewcolumn.h>
+#include <gtk/gtkcolumnviewsorter.h>
 #include <gtk/deprecated/gtkcombobox.h>
 #include <gtk/deprecated/gtkcomboboxtext.h>
 #include <gtk/gtkconstraintlayout.h>
diff --git a/gtk/gtkcolumnviewsorter.h b/gtk/gtkcolumnviewsorter.h
new file mode 100644 (file)
index 0000000..a412768
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright © 2022 Matthias Clasen
+ *
+ * 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.1 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/>.
+ *
+ * Authors: Matthias Clasen <mclasen@redhat.com>
+ */
+
+#ifndef __GTK_COLUMN_VIEW_SORTER_H__
+#define __GTK_COLUMN_VIEW_SORTER_H__
+
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gdk/gdk.h>
+#include <gtk/gtksorter.h>
+#include <gtk/gtkcolumnviewcolumn.h>
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_COLUMN_VIEW_SORTER             (gtk_column_view_sorter_get_type ())
+
+GDK_AVAILABLE_IN_4_10
+G_DECLARE_FINAL_TYPE (GtkColumnViewSorter, gtk_column_view_sorter, GTK, COLUMN_VIEW_SORTER, GtkSorter)
+
+
+G_END_DECLS
+
+#endif /* __GTK_SORTER_H__ */
+
index 81801f3bdfe5616b2850ac7f411903b2e23ef84f..7b370b7e7154efc7eaafe25752bcc698de2cdc0c 100644 (file)
 #error "Only <gtk/gtk.h> can be included directly."
 #endif
 
-#include <gdk/gdk.h>
-#include <gtk/gtksorter.h>
-#include <gtk/gtkcolumnviewcolumn.h>
+#include <gtk/gtkcolumnviewsorter.h>
 
 G_BEGIN_DECLS
 
-#define GTK_TYPE_COLUMN_VIEW_SORTER             (gtk_column_view_sorter_get_type ())
-
-G_DECLARE_FINAL_TYPE (GtkColumnViewSorter, gtk_column_view_sorter, GTK, COLUMN_VIEW_SORTER, GtkSorter)
-
 GtkColumnViewSorter *   gtk_column_view_sorter_new              (void);
 
 gboolean                gtk_column_view_sorter_add_column       (GtkColumnViewSorter    *self,
index bfca55c198031fdf8c6844ff08e258df47279f3b..5ce0ae81e3ffbf29fd33ab1d0700dbf509540a5f 100644 (file)
@@ -443,6 +443,7 @@ gtk_public_headers = files([
   'gtkcolorutils.h',
   'gtkcolumnview.h',
   'gtkcolumnviewcolumn.h',
+  'gtkcolumnviewsorter.h',
   'gtkconstraintguide.h',
   'gtkconstraintlayout.h',
   'gtkconstraint.h',