One item that has been suggested for the roadmap for gramps 5.1.x is to correct the Gtk UIManager and associated deprecations.
I have created a proposal and discussion on how this might be done at https://gramps-project.org/wiki/index.php?title=GEPS_044:_Replace_Deprecated_Gtk.UIManager.
I take this goal to mean upgrading several of the currently used Gtk techniques that have been deprecated to the more modern methods. After looking around the web, it appears that there are few write-ups on how this might be done. The best advice available I found is summarized below.
The new SimpleActionGroup can NOT be used in this way.
The new mechanisms seem to require the use of Gtk.Application and Gtk.ApplicationWindow (at least to avoid other warnings). Using these will involve some changes to our startup code and main window code.
Gtk.Application includes the possibly of a multi document type of interface, potentially with several trees open at once. I propose that for initial work, we do NOT support this. I propose we continue to operate Gramps as a single instance application, where attempts to start another instance only bring the GUI to the front.
Gtk.Application also has several types of support for CLI. For this GEPS I intend to continue letting Gramps deal with the CLI before starting the Gtk.Application (when the GUI is needed). The Gtk.Application will not deal with CLI parameters.
Gtk.Application uses a (hopefully unique) application name to manage its features. I propose that we use "org.gramps-project.Gramps" (which is a valid name according to the rules).
The main goal is to utilize the new techniques instead of the deprecated ones. And to do this with minimal (hopefully no) changes to the GUI or functionality of Gramps.
I have added some additional detail on how this might be done to the GEPS wiki.
I have been testing a small sample application to see if my proposed code changes appear to work; so far I don't see any significant unsolvable problems.
One issue I do see is that the easy way to deal with one of the changes is to use a Gtk.Application method that was not supported until Gtk v3.12, while our current supported Gtk states we should work on 3.10 and above.
Please reply with any comments, suggestions etc. to this email; I will attempt to summarize in the GEPS wiki after a bit of time to let the comments settle out.
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Gramps-devel mailing list
|Free forum by Nabble||Edit this page|