Function

MatePanelAppletAppletfactory_main

Declaration [src]

int
mate_panel_applet_factory_main (
  const gchar* factory_id,
  gboolean out_process,
  GType applet_type,
  MatePanelAppletFactoryCallback callback,
  gpointer data
)

Description

No description available.

Parameters

factory_id

Type: const gchar*

Factory ID.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
out_process

Type: gboolean

Boolean, dummy to support applets sending it.

applet_type

Type: GType

GType of the applet this factory creates.

callback

Type: MatePanelAppletFactoryCallback

Callback to be called when a new applet is to be created.

data

Type: gpointer

Callback data.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: int

0 on success, 1 if there is an error.