Function

MateDesktopDesktopItemfind_icon

Declaration [src]

char*
mate_desktop_item_find_icon (
  GtkIconTheme* icon_theme,
  const char* icon,
  int desired_size,
  int flags
)

Description [src]

This function goes and looks for the icon file. If the icon is not an absolute filename, this will look for it in the standard places. If it can’t find the icon, it will return NULL.

Parameters

icon_theme

Type: GtkIconTheme

A GtkIconTheme.

The data is owned by the caller of the function.
icon

Type: const char*

Icon name, something you’d get out of the Icon key.

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

Type: int

FIXME.

flags

Type: int

FIXME.

Return value

Type: char*

A newly allocated string.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.