After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 708150 - GtkWidget: Add gtk_widget_remove_action_group()?
GtkWidget: Add gtk_widget_remove_action_group()?
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-09-16 10:50 UTC by Murray Cumming
Modified: 2013-09-17 11:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Murray Cumming 2013-09-16 10:50:48 UTC
gtk_widget_insert_action_group() 
  https://developer.gnome.org/gtk3/unstable/GtkWidget.html#gtk-widget-insert-action-group
seems to be a replacement for gtk_ui_manager_insert_action_group(). Shouldn't there also be some equivalent for gtk_ui_manager_remove_action_group()?
  https://developer.gnome.org/gtk3/unstable/GtkUIManager.html#gtk-ui-manager-remove-action-group

This would be useful when dynamically-building a menu, because it would let me just remove the existing action group and create a new one.
Comment 1 Matthias Clasen 2013-09-16 17:29:38 UTC
It is not documented, but gtk_widget_insert_action_group (widget, name, NULL) will remove a previously inserted action group