Constructor

GtkStatusIconnew_from_file

deprecated: 3.14 since: 2.10

Declaration [src]

GtkStatusIcon*
gtk_status_icon_new_from_file (
  const gchar* filename
)

Description [src]

Creates a status icon displaying the file filename.

The image will be scaled down to fit in the available space in the notification area, if necessary.

Available since: 2.10

Deprecated since: 3.14

Use GNotification and GtkApplication to provide status notifications.

Parameters

filename

Type: const gchar*

A filename.

The data is owned by the caller of the function.
The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.

Return value

Type: GtkStatusIcon

A new GtkStatusIcon.

The caller of the function takes ownership of the data, and is responsible for freeing it.