Declaration [src]

gtk_window_set_icon_from_file (
  GtkWindow* window,
  const gchar* filename,
  GError** error

Description [src]

Sets the icon for window. Warns on failure if err is NULL.

This function is equivalent to calling gtk_window_set_icon() with a pixbuf created by loading the image from filename.

Available since:2.2


filename const gchar*

Location of icon file.

 The data is owned by the caller of the function.
 The value 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.