Method

GtkWindowset_icon_from_file

Declaration [src]

gboolean
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

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.