set_window_progress


Description:

[ CCode ( cname = "xapp_set_window_progress" ) ]
public void set_window_progress (Window window, int progress)

Sets the progress hint for a window manager (like muffin) to make available when applications want to display the application's progress in some operation.

The value sent to the WM will be clamped to between 0 and 100.

Note: If a window will stick around after progress is complete, you will probably need to set progress to 0 to remove any progress effects on taskbars and window lists.

Setting progress will also cancel the 'pulsing' flag on the window as well, if it has been set.

Parameters:

window

The Window to set the progress for

progress

The value to set for progress.


Namespace: XApp
Package: xapp