gtkWindowSetIconFromFile {RGtk2}R Documentation

gtkWindowSetIconFromFile

Description

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

Usage

gtkWindowSetIconFromFile(object, filename, .errwarn = TRUE)

Arguments

object [GtkWindow] a GtkWindow
filename [character] location of icon file
.errwarn Whether to issue a warning on error or fail silently

Details

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

Since 2.2

Value

A list containing the following elements:

retval [logical] TRUE if setting the icon succeeded.
error [GError] location to store error, or NULL.

Author(s)

Derived by RGtkGen from GTK+ documentation


[Package RGtk2 version 2.12.5-3 Index]