Add private GtkWidget api for action groups

Similar to the just-added action muxer api for enumerating
action prefixes and for getting the action group for a
prefix.

https://bugzilla.gnome.org/show_bug.cgi?id=730095
This commit is contained in:
Matthias Clasen 2014-05-13 20:28:44 -04:00
parent 4396bbdb3c
commit 3f224a7165
2 changed files with 20 additions and 0 deletions

View File

@ -16252,3 +16252,20 @@ gtk_widget_get_template_child (GtkWidget *widget,
return ret; return ret;
} }
gchar **
_gtk_widget_list_action_prefixes (GtkWidget *widget)
{
if (widget->priv->muxer)
return gtk_action_muxer_list_prefixes (widget->priv->muxer);
return NULL;
}
GActionGroup *
_gtk_widget_get_action_group (GtkWidget *widget,
const gchar *prefix)
{
if (widget->priv->muxer)
return gtk_action_muxer_lookup (widget->priv->muxer, prefix);
return NULL;
}

View File

@ -148,6 +148,9 @@ void _gtk_widget_style_context_invalidated (GtkWidget *widget
void _gtk_widget_update_parent_muxer (GtkWidget *widget); void _gtk_widget_update_parent_muxer (GtkWidget *widget);
GtkActionMuxer * _gtk_widget_get_action_muxer (GtkWidget *widget); GtkActionMuxer * _gtk_widget_get_action_muxer (GtkWidget *widget);
gchar ** _gtk_widget_list_action_prefixes (GtkWidget *widget);
GActionGroup * _gtk_widget_get_action_group (GtkWidget *widget,
const gchar *prefix);
G_END_DECLS G_END_DECLS