[gtk/matthiasc-for-master: 11/11] Drop gtk_widget_get_action_group



commit cc667926d6265df85f3cfb0896f4d2aeda5e537d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 15 22:36:46 2019 +0000

    Drop gtk_widget_get_action_group
    
    Ths api exposes too much of the internal
    action muxer setup; we want to add actions
    to the muxer without an action group.

 docs/reference/gtk/gtk4-sections.txt |  1 -
 gtk/gtkwidget.c                      | 29 -----------------------------
 gtk/gtkwidget.h                      |  4 ----
 3 files changed, 34 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 4d072641da..786bcde361 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4551,7 +4551,6 @@ gtk_widget_get_overflow
 gtk_widget_set_overflow
 gtk_widget_insert_action_group
 gtk_widget_list_action_prefixes
-gtk_widget_get_action_group
 gtk_widget_activate_action
 gtk_widget_activate_default
 gtk_widget_measure
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 695085795c..532aecb3cb 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12413,35 +12413,6 @@ gtk_widget_get_template_child (GtkWidget   *widget,
   return ret;
 }
 
-/**
- * gtk_widget_get_action_group:
- * @widget: A #GtkWidget
- * @prefix: The “prefix” of the action group.
- *
- * Retrieves the #GActionGroup that was registered using @prefix. The resulting
- * #GActionGroup may have been registered to @widget or any #GtkWidget in its
- * ancestry.
- *
- * If no action group was found matching @prefix, then %NULL is returned.
- *
- * Returns: (transfer none) (nullable): A #GActionGroup or %NULL.
- */
-GActionGroup *
-gtk_widget_get_action_group (GtkWidget   *widget,
-                             const gchar *prefix)
-{
-  GtkActionMuxer *muxer;
-
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-  g_return_val_if_fail (prefix, NULL);
-
-  muxer = _gtk_widget_get_action_muxer (widget, FALSE);
-  if (muxer)
-    return gtk_action_muxer_lookup (muxer, prefix);
-
-  return NULL;
-}
-
 /**
  * gtk_widget_activate_action:
  * @widget: a #GtkWidget
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index eea6b968ca..ca9d768ea6 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -970,10 +970,6 @@ void    gtk_widget_class_bind_template_child_full       (GtkWidgetClass        *
                                                          gboolean               internal_child,
                                                          gssize                 struct_offset);
 
-GDK_AVAILABLE_IN_ALL
-GActionGroup           *gtk_widget_get_action_group     (GtkWidget             *widget,
-                                                         const gchar           *prefix);
-
 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]