Skip to content
  • Luca Bacci's avatar
    prepare-for-gtk3: Prepare for removal of Gtk::Menu_Helpers::MenuList (#7) · 0d73ff83
    Luca Bacci authored and Mike Fleetwood's avatar Mike Fleetwood committed
    GParted uses Gtk::Menu_Helpers::MenuList helper class to access
    individual menu items.  This helper class made it easy to navigate menu
    items by index.
    
    Gtk::Menu_Helpers::MenuList was removed in the switch from Gtkmm2 to
    Gtkmm3 [1].  Instead, use a separate std::map<Gtk::MenuItem*> to keep
    track of individual Gtk::MenuItem objects.
    
    Reference:
    [1] Gtkmm 3 commit "MenuShell: Remove items()." removed the code
        gtkmm@c8e47b0d
    
    Closes #7 - Port to Gtk3
    0d73ff83