Re: Replacing Gtk::Action and Gtk::UIManager with Gio::Action and Gtk::Builder



On Tue, 2013-09-03 at 23:04 +0200, Murray Cumming wrote:
There are other problems that prevent a simple deprecation of
GtkAction:
* There is no replacement yet for GtkRadioActionItem:
  https://bugzilla.gnome.org/show_bug.cgi?id=705656

I meant GtkRecentAction:
https://bugzilla.gnome.org/show_bug.cgi?id=707422

This is still the major obstacle to us really deprecating GtkAction
and
GtkUIManager. I don't see much chance that it will be fixed in the GTK
+
API soon enough.

It doesn't look like this will ever be replaced, and there seems some
chance that GNOME applications will just stop having recent files menu
items:
https://mail.gnome.org/archives/gtk-devel-list/2013-September/msg00022.html

* GtkBuilder's <menu> syntax does not let us define toolbars, like
GtkUIManager's syntax did. But apparently I'll be able to get this
working with GtkBuilder's old syntax and the items' action-name
properties.

I've chosen to just do this in code, in the examples. However, we need
to use the C API to set the GAction's name on the toolbar button:
https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/menus/main_menu/examplewindow.cc
because we cannot yet break the ABI to add Gtk::Actionable as a base
class for several classes:
https://git.gnome.org/browse/gtkmm/commit/?id=3381c0aea10891a2dccc49b5e450fd497a3cb807

So, I think we can leave these classes deprecated after all. I'll post
separately about the new API.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



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