set_window_icon_from_file


Description:

[ CCode ( cname = "xapp_set_window_icon_from_file" ) ]
public void set_window_icon_from_file (Window window, string? file_name) throws Error

Sets the icon name hint for a window manager (like muffin) to make available when applications want to change their icons during runtime without having to resort to the internal low-res pixbufs that GdkWindow sets on the client side.

This also chains up and calls GtkWindow.set_icon_from_file for convenience and compatibility. Set to null to unset.

Parameters:

window

The Window to set the icon name for

file_name

The icon path to set, or null to unset.


Namespace: XApp
Package: xapp