GMenuModel exporter
GMenuModel exporter — Export GMenuModels on D-Bus
|
|
Includes
#include <gio/gio.h>
Functions
g_dbus_connection_export_menu_model ()
guint
g_dbus_connection_export_menu_model (GDBusConnection *connection,
const gchar *object_path,
GMenuModel *menu,
GError **error);
Exports menu
on connection
at object_path
.
The implemented D-Bus API should be considered private.
It is subject to change in the future.
An object path can only have one menu model exported on it. If this
constraint is violated, the export will fail and 0 will be
returned (with error
set accordingly).
You can unexport the menu model using
g_dbus_connection_unexport_menu_model() with the return value of
this function.
Returns
the ID of the export (never zero), or 0 in case of failure
Since: 2.32