Constructor
AyatanaAppIndicatorGlibIndicatornew_with_path
Declaration
AppIndicator*
app_indicator_new_with_path (
const gchar* id,
const gchar* icon_name,
AppIndicatorCategory category,
const gchar* icon_theme_path
)
Description
Creates a new AppIndicator
setting the properties:
AppIndicator:id
with id
, AppIndicator:category
with category
,
AppIndicator:icon-name
with icon_name
and AppIndicator:icon-theme-path
with icon_theme_path
.
Parameters
id
-
Type:
const gchar*
The unique id of the indicator to create.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. icon_name
-
Type:
const gchar*
The icon name for this indicator.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. category
-
Type:
AppIndicatorCategory
The category of the indicator.
icon_theme_path
-
Type:
const gchar*
A custom path for finding icons.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
Return value
Type: AppIndicator
A pointer to a new AppIndicator
object.
The caller of the function takes ownership of the data, and is responsible for freeing it. |