MenuManager


Object Hierarchy:

Dazzle.MenuManager Dazzle.MenuManager Dazzle.MenuManager GLib.Object GLib.Object GLib.Object->Dazzle.MenuManager

Description:

[ CCode ( type_id = "dzl_menu_manager_get_type ()" ) ]
[ Version ( since = "3.26" ) ]
public sealed class MenuManager : Object

The goal of MenuManager is to simplify the process of merging multiple GtkBuilder .

ui files containing menus into a single representation of the application menus. Additionally, it provides the ability to "unmerge" previously merged menus.

This allows for an application to have plugins which seemlessly extends the core application menus.

Implementation notes:

To make this work, we don't use the GMenu instances created by a GtkBuilder instance. Instead, we create the menus ourself and recreate section and submenu links. This allows the MenuManager to be in full control of the generated menus.

get_menu_by_id will always return a Menu, however that menu may contain no children until something has extended it later on during the application process.


Namespace: Dazzle
Package: libdazzle-1.0

Content:

Creation methods:

Methods:

Inherited Members: