[gtk/stack-fixes: 7/13] Keep GtkSingleSelection private for now



commit 00581c66116bc4438189d95be3c8a2b0aa5d6782
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 8 15:09:00 2019 -0500

    Keep GtkSingleSelection private for now
    
    We are going to use the GtkSelectionModel interface in
    the API, and only want this to use this implementation
    for convenience.

 gtk/gtk.h                                                 | 1 -
 gtk/gtksingleselection.c                                  | 2 +-
 gtk/{gtksingleselection.h => gtksingleselectionprivate.h} | 8 --------
 gtk/meson.build                                           | 1 -
 4 files changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/gtk/gtk.h b/gtk/gtk.h
index c79f1a9dfb..90ee2e8654 100644
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -195,7 +195,6 @@
 #include <gtk/gtkshortcutsshortcut.h>
 #include <gtk/gtkshortcutswindow.h>
 #include <gtk/gtkshow.h>
-#include <gtk/gtksingleselection.h>
 #include <gtk/gtkslicelistmodel.h>
 #include <gtk/gtksnapshot.h>
 #include <gtk/gtksortlistmodel.h>
diff --git a/gtk/gtksingleselection.c b/gtk/gtksingleselection.c
index 7b25d991a9..9a5bd0fad3 100644
--- a/gtk/gtksingleselection.c
+++ b/gtk/gtksingleselection.c
@@ -19,7 +19,7 @@
 
 #include "config.h"
 
-#include "gtksingleselection.h"
+#include "gtksingleselectionprivate.h"
 
 #include "gtkintl.h"
 #include "gtkselectionmodel.h"
diff --git a/gtk/gtksingleselection.h b/gtk/gtksingleselectionprivate.h
similarity index 93%
rename from gtk/gtksingleselection.h
rename to gtk/gtksingleselectionprivate.h
index 425a4996e4..fc0e6a3cc1 100644
--- a/gtk/gtksingleselection.h
+++ b/gtk/gtksingleselectionprivate.h
@@ -38,25 +38,17 @@ G_BEGIN_DECLS
  */
 #define GTK_INVALID_LIST_POSITION (G_MAXUINT)
 
-GDK_AVAILABLE_IN_ALL
 G_DECLARE_FINAL_TYPE (GtkSingleSelection, gtk_single_selection, GTK, SINGLE_SELECTION, GObject)
 
-GDK_AVAILABLE_IN_ALL
 GtkSingleSelection * gtk_single_selection_new                (GListModel             *model);
 
-GDK_AVAILABLE_IN_ALL
 guint           gtk_single_selection_get_selected       (GtkSingleSelection     *self);
-GDK_AVAILABLE_IN_ALL
 void            gtk_single_selection_set_selected       (GtkSingleSelection     *self,
                                                          guint                   position);
-GDK_AVAILABLE_IN_ALL
 gboolean        gtk_single_selection_get_autoselect     (GtkSingleSelection     *self);
-GDK_AVAILABLE_IN_ALL
 void            gtk_single_selection_set_autoselect     (GtkSingleSelection     *self,
                                                          gboolean                autoselect);
-GDK_AVAILABLE_IN_ALL
 gboolean        gtk_single_selection_get_can_unselect   (GtkSingleSelection     *self);
-GDK_AVAILABLE_IN_ALL
 void            gtk_single_selection_set_can_unselect   (GtkSingleSelection     *self,
                                                          gboolean                can_unselect);
 
diff --git a/gtk/meson.build b/gtk/meson.build
index 3ebb1b5867..29430577de 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -570,7 +570,6 @@ gtk_public_headers = files([
   'gtkshortcutsshortcut.h',
   'gtkshortcutswindow.h',
   'gtkshow.h',
-  'gtksingleselection.h',
   'gtksizegroup.h',
   'gtksizerequest.h',
   'gtkslicelistmodel.h',


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