-
Michael Gratton authored
* src/client/composer/composer-widget.vala (ComposerWidget::action_entries): Add an entry for the inspector so it can be loaded via the context model in the same way as other items. (ComposerWidget::context_menu_*): Keep track of a number of the context menu's sections, so we can selectively include them in the WK context menu. (ComposerWidget::on_context_menu): Re-implement to work wth the WK2 context menu model, which annoyingly doesn't even extend any of the GtkMenu infrastrcuture. * src/client/util/util-gtk.vala (menu_foreach): Pass the action target through to the loop's delegate, it's a bit more useful for dealing with the WK2 model. (add_g_menu_to_gtk_menu): Removed, WebKitContextMenu doesn't extend Gtk.Menu any longer so this is is no longer needed. * ui/composer-menus.ui: Reoganise to use standard composer action prefix. Duplicate rich and plain text clipboard sections so they can just be selectively enabled. Include dummy sections for WK items to specify where they are located in the menu, and a section for the inspector.
20db6e57