Function

GtkWindowset_default_icon_from_file

Declaration [src]

gboolean
gtk_window_set_default_icon_from_file (
  const gchar* filename,
  GError** error
)

Description [src]

Sets an icon to be used as fallback for windows that haven’t had gtk_window_set_icon_list() called on them from a file on disk. Warns on failure if err is NULL.

Available since:2.2

Parameters

filename const gchar*
 

Location of icon file.

 The data is owned by the caller of the function.
 The string is a file system path, using the OS encoding.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if setting the icon succeeded.