Re: GMenu, GAction and GtkBuilder




2013-12-17 19:43, Murray Cumming skrev:
On Mo, 2013-11-25 at 16:59 +0100, Kjell Ahlstedt wrote:

Murray, in commit
https://git.gnome.org/browse/gtkmm/commit/?id=caf1165105d078a2cdc92caa14a1ebfc6724e6ef you undeprecated Gtk::ActionGroup, Activatable, Action, RadioAction, RecentAction, ToggleAction, and UIManager.

I looked at it more closely than before, when I updated the gtkmm
tutorial, and I think there are some issues.
      * When I deprecated those classes, I could not use
        _IS_DEPRECATED on Action and Activatable. I added an
        "//_IS_DEPRECATED" comment, and decrecated every method,
        signal, and property separately. You did not remove those
        deprecations. They still remain. I suppose they shall be
        removed.
Yes, please. We should release that in a bug-fix release.
I have fixed that in the master branch and the gtkmm-3-10 branch.
In those two branches I have also deprecated yet another method that uses StockID (one of the ToggleAction::create() methods).

      
      * In UIManager you undeprecated property "add_tearoffs" (but not
        set/get_add_tearoffs()). That property and those methods have
        been deprecated since gtk+ 3.4 according to the docs in gtk+.
        I suppose property "add_tearoff" shall remain deprecated.
Please just fix this in master. Adding a deprecating is more of a
disruption than removing a deprecation.
Fixed in the master branch only.
When I updated the tutorial, I did not change the "Menus and Toolbars"
chapter where Gtk::Action and relatives, and UIManager are described.
It's a bit confusing now when the text describes Gtk::Action and
Gtk::UIManager, and the examples use Gio::SimpleAction and
Gtk::Builder. But since Gio::SimpleAction and Gtk::Builder can't yet
completely replace Gtk::*Action and UIManager, I thought it best to
leave it as it is for a while. What do you think?
Maybe we should revert the changes to those examples, in a stable
branch, and put the changes in git master only.

Right now those changes in example programs exist only in the master branch. The latest stable release of gtkmm-documentation is 3.8.0 from 2013-06-10. That was before you replaced Gtk::*Action and Gtk::UIManager in the example programs.



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