[gtk/widget-class-actions: 8/22] widget: Remove gtk_widget_list_action_prefixes



commit ff48e4223df943cc17dcee1675b8003a644c2873
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 16 00:17:45 2019 +0000

    widget: Remove gtk_widget_list_action_prefixes
    
    This function was added just for the inspector,
    and is not used there anymore. Drop it.

 gtk/gtkactionmuxer.c        |  6 ------
 gtk/gtkactionmuxerprivate.h |  1 -
 gtk/gtkwidget.c             | 23 -----------------------
 gtk/gtkwidget.h             |  3 ---
 4 files changed, 33 deletions(-)
---
diff --git a/gtk/gtkactionmuxer.c b/gtk/gtkactionmuxer.c
index 292606250d..5020f69359 100644
--- a/gtk/gtkactionmuxer.c
+++ b/gtk/gtkactionmuxer.c
@@ -755,12 +755,6 @@ gtk_action_muxer_remove (GtkActionMuxer *muxer,
     }
 }
 
-const gchar **
-gtk_action_muxer_list_prefixes (GtkActionMuxer *muxer)
-{
-  return (const gchar **) g_hash_table_get_keys_as_array (muxer->groups, NULL);
-}
-
 GActionGroup *
 gtk_action_muxer_lookup (GtkActionMuxer *muxer,
                          const gchar    *prefix)
diff --git a/gtk/gtkactionmuxerprivate.h b/gtk/gtkactionmuxerprivate.h
index 2eea5483c6..01b6f14bd1 100644
--- a/gtk/gtkactionmuxerprivate.h
+++ b/gtk/gtkactionmuxerprivate.h
@@ -41,7 +41,6 @@ void                    gtk_action_muxer_insert                         (GtkActi
 
 void                    gtk_action_muxer_remove                         (GtkActionMuxer *muxer,
                                                                          const gchar    *prefix);
-const gchar **          gtk_action_muxer_list_prefixes                  (GtkActionMuxer *muxer);
 GActionGroup *          gtk_action_muxer_lookup                         (GtkActionMuxer *muxer,
                                                                          const gchar    *prefix);
 GActionGroup *          gtk_action_muxer_find                           (GtkActionMuxer *muxer,
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 0bc88b06b2..695085795c 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12413,29 +12413,6 @@ gtk_widget_get_template_child (GtkWidget   *widget,
   return ret;
 }
 
-/**
- * gtk_widget_list_action_prefixes:
- * @widget: A #GtkWidget
- *
- * Retrieves a %NULL-terminated array of strings containing the prefixes of
- * #GActionGroup's available to @widget.
- *
- * Returns: (transfer container): a %NULL-terminated array of strings.
- */
-const gchar **
-gtk_widget_list_action_prefixes (GtkWidget *widget)
-{
-  GtkActionMuxer *muxer;
-
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-
-  muxer = _gtk_widget_get_action_muxer (widget, FALSE);
-  if (muxer)
-    return gtk_action_muxer_list_prefixes (muxer);
-
-  return g_new0 (const gchar *, 1);
-}
-
 /**
  * gtk_widget_get_action_group:
  * @widget: A #GtkWidget
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 3d0378a0a0..eea6b968ca 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -974,9 +974,6 @@ GDK_AVAILABLE_IN_ALL
 GActionGroup           *gtk_widget_get_action_group     (GtkWidget             *widget,
                                                          const gchar           *prefix);
 
-GDK_AVAILABLE_IN_ALL
-const gchar **          gtk_widget_list_action_prefixes (GtkWidget             *widget);
-
 GDK_AVAILABLE_IN_ALL
 void                    gtk_widget_insert_action_group  (GtkWidget    *widget,
                                                          const gchar  *name,


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