Blame docs/reference/gio/html/gio-GMenuModel-exporter.html

Packit ae235b
Packit ae235b
<html>
Packit ae235b
<head>
Packit ae235b
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Packit ae235b
<title>GMenuModel exporter: GIO Reference Manual</title>
Packit ae235b
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
Packit ae235b
<link rel="home" href="index.html" title="GIO Reference Manual">
Packit ae235b
<link rel="up" href="application.html" title="Application support">
Packit ae235b
<link rel="prev" href="GMenu.html" title="GMenu">
Packit ae235b
<link rel="next" href="GDBusMenuModel.html" title="GDBusMenuModel">
Packit ae235b
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
Packit ae235b
<link rel="stylesheet" href="style.css" type="text/css">
Packit ae235b
</head>
Packit ae235b
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
Packit ae235b
Packit ae235b
Packit ae235b
Top  | 
Packit ae235b
                  Description
Packit ae235b
Packit ae235b
Home
Packit ae235b
Up
Packit ae235b
Prev
Packit ae235b
Next
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

GMenuModel exporter

Packit ae235b

GMenuModel exporter — Export GMenuModels on D-Bus

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Functions

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
guint
Packit ae235b
Packit ae235b
Packit ae235b
g_dbus_connection_export_menu_model ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
void
Packit ae235b
Packit ae235b
Packit ae235b
g_dbus_connection_unexport_menu_model ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Includes

Packit ae235b
#include <gio/gio.h>
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Description

Packit ae235b

These functions support exporting a GMenuModel on D-Bus.

Packit ae235b
The D-Bus interface that is used is a private implementation
Packit ae235b
detail.

Packit ae235b

To access an exported GMenuModel remotely, use

Packit ae235b
g_dbus_menu_model_get() to obtain a GDBusMenuModel.

Packit ae235b
Packit ae235b
Packit ae235b

Functions

Packit ae235b
Packit ae235b

g_dbus_connection_export_menu_model ()

Packit ae235b
guint
Packit ae235b
g_dbus_connection_export_menu_model (GDBusConnection *connection,
Packit ae235b
                                     const gchar *object_path,
Packit ae235b
                                     GMenuModel *menu,
Packit ae235b
                                     GError **error);
Packit ae235b

Exports menu

Packit ae235b
 on connection
Packit ae235b
 at object_path
Packit ae235b
.

Packit ae235b

The implemented D-Bus API should be considered private.

Packit ae235b
It is subject to change in the future.

Packit ae235b

An object path can only have one menu model exported on it. If this

Packit ae235b
constraint is violated, the export will fail and 0 will be
Packit ae235b
returned (with error
Packit ae235b
 set accordingly).

Packit ae235b

You can unexport the menu model using

Packit ae235b
g_dbus_connection_unexport_menu_model() with the return value of
Packit ae235b
this function.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

connection

Packit ae235b

a GDBusConnection

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

object_path

Packit ae235b

a D-Bus object path

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

menu

Packit ae235b

a GMenuModel

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

return location for an error, or NULL

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

the ID of the export (never zero), or 0 in case of failure

Packit ae235b
Packit ae235b

Since: 2.32

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_dbus_connection_unexport_menu_model ()

Packit ae235b
void
Packit ae235b
g_dbus_connection_unexport_menu_model (GDBusConnection *connection,
Packit ae235b
                                       guint export_id);
Packit ae235b

Reverses the effect of a previous call to

Packit ae235b
g_dbus_connection_export_menu_model().

Packit ae235b

It is an error to call this function with an ID that wasn't returned

Packit ae235b
from g_dbus_connection_export_menu_model() or to call it with the
Packit ae235b
same ID more than once.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

connection

Packit ae235b

a GDBusConnection

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

export_id

Packit ae235b

the ID from g_dbus_connection_export_menu_model()

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Since: 2.32

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Types and Values

Packit ae235b
Packit ae235b
Packit ae235b

See Also

Packit ae235b

GMenuModel, GDBusMenuModel

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Generated by GTK-Doc V1.27
Packit ae235b
</body>
Packit ae235b
</html>