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 665315 - Prepare to phase out GtkActionGroup and GtkUIManager
Prepare to phase out GtkActionGroup and GtkUIManager
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkApplication
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks: 665312
 
 
Reported: 2011-12-01 18:08 UTC by Matthias Clasen
Modified: 2015-05-16 09:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2011-12-01 18:08:25 UTC
We cannot just accumulate alternative ways to create UIs, so we should make sure that GtkApplication/GAction/GMenu are sufficient to replace most uses of GtkActionGroup/GtkUIManager.

I think the most pressing need here is a way to hook up tool buttons to the same actions that back the menus.
Comment 1 Matthias Clasen 2012-01-11 05:33:18 UTC
Hooking up tool buttons, buttons and switches has been solved.
Comment 2 Kjell Ahlstedt 2013-07-15 14:54:51 UTC
GtkUIManager, GtkActionGroup and GtkAction have now been deprecated.
The demos showing the use of GtkUIManager (demos/gtk-demo/appwindow.c and
demos/gtk-demo/ui_manager.c) have been removed.

But the GtkBuilder demo (demos/gtk-demo/builder.c) still uses GtkUIManager,
GtkActionGroup and GtkAction. See demos/gtk-demo/demo.ui.
Will it be changed in the near future?

I'm asking because I plan to make a Gtk::Builder demo for gtkmm, to replace the
removed Gtk::UIManager demo. I hope I can steal some ideas, and perhaps copy
the whole demo.ui file, from gtk+.
Comment 3 Matthias Clasen 2015-05-11 02:14:40 UTC
I've ported the builder demo away from GtkUIManager now.
Comment 4 Kjell Ahlstedt 2015-05-16 09:16:44 UTC
Thanks! I have used it for making a builder demo in gtkmm.