-- Reno desktop is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License along with Reno desktop. If not, see <https://www.gnu.org/licenses/>.
localawful=require("awful")
localwibox=require("wibox")
returnfunction(widget,list,max_elements)
ifnottostring(widget):match("wibox.layout")then
error("Cannot attach pager to widget that isn't a layout")