set_n_rows


Description:

public bool set_n_rows (int n_rows)

Tries to change the number of rows in the layout of Workspace on the Screen this is watching.

Since no more than one application should set this property of a Screen at a time, setting the layout is not guaranteed to work.

If this has not been added to a widget hierarchy, the call will fail because this can't know the screen on which to modify the layout.

Parameters:

this

a Pager.

n_rows

the number of rows to use for the layout of Workspace on the Screen this is watching.

Returns:

true if the layout of Workspace has been successfully changed or did not need to be changed, false otherwise.