HudGtkManager
HudGtkManager — Work with a GtkApplication to easily export action groups
|
|
Stability Level
Stable, unless otherwise indicated
Object Hierarchy
GObject
╰── HudManager
╰── HudGtkManager
Includes
#include <libhud-gtk/manager.h>
Description
A helper class HudGtkManager to work with GtkApplication and
automatically export the base action group "app." along with the
window action groups typically "win.". These can then have HudActionDescription
objects used to describe them without having to worry about creating
and managing the GActionGroup's.
Functions
hud_gtk_manager_new ()
HudGtkManager *
hud_gtk_manager_new (GtkApplication *app
);
Creates a HudGtkManager object that is connected to the app
so that
new windows get tracked and their actions automatically added to so
the HUD can access them.
From the GtkApplication passed as app
any GtkApplicationWindow
added to the application will also be added as a potential target
("win") for actions. For example, if a GtkApplicationWindow
features an action "fullscreen" then action descriptions can speak of
"win.fullscreen".
app
must have no windows at the time that this function is
called.
hud_gtk_manager_get_publisher ()
HudActionPublisher *
hud_gtk_manager_get_publisher (HudGtkManager *manager
,
GVariant *id
);
Finds or creates a publisher for the specific GtkApplicationWindow that
is referenced by id
. This can be used to add descriptions on the publisher
or additional action groups as needed.
Returns
A HudActionPublisher for the window.
[transfer none]
Types and Values
struct HudGtkManagerClass
struct HudGtkManagerClass {
HudManagerClass parent_class;
};
Class data for HudGtkManager.
struct HudGtkManager
struct HudGtkManager;
Helper class to work with GtkApplication to automatically
export action groups registered there to the HUD.
HudGtkManagerPrivate
typedef struct _HudGtkManagerPrivate HudGtkManagerPrivate;
Private data for HudGtkManager.