2007-10-03 17:26:14 +02:00
|
|
|
/*
|
2007-10-17 10:53:32 +02:00
|
|
|
* statusbar.c - statusbar functions
|
2007-10-03 17:26:14 +02:00
|
|
|
*
|
2008-03-15 09:10:32 +01:00
|
|
|
* Copyright © 2007-2008 Julien Danjou <julien@danjou.info>
|
2007-10-03 17:26:14 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
2007-09-15 15:16:53 +02:00
|
|
|
*/
|
|
|
|
|
2008-09-24 12:13:21 +02:00
|
|
|
#include "luaa.h"
|
2008-09-21 10:13:21 +02:00
|
|
|
#include "wibox.h"
|
2008-01-07 18:12:38 +01:00
|
|
|
|
2008-09-21 20:39:23 +02:00
|
|
|
/** Create a new statusbar (DEPRECATED).
|
2008-06-10 20:12:51 +02:00
|
|
|
* \param L The Lua VM state.
|
|
|
|
*
|
|
|
|
* \luastack
|
2008-09-21 11:42:54 +02:00
|
|
|
* \lparam A table with optionaly defined values:
|
2008-05-28 08:59:01 +02:00
|
|
|
* position, align, fg, bg, width and height.
|
2008-06-10 20:12:51 +02:00
|
|
|
* \lreturn A brand new statusbar.
|
2008-05-28 08:59:01 +02:00
|
|
|
*/
|
2008-05-20 15:39:47 +02:00
|
|
|
static int
|
|
|
|
luaA_statusbar_new(lua_State *L)
|
|
|
|
{
|
2008-09-21 20:39:23 +02:00
|
|
|
deprecate();
|
2008-08-19 18:20:39 +02:00
|
|
|
|
2008-09-21 20:39:23 +02:00
|
|
|
return luaA_wibox_new(L);
|
2008-07-01 16:31:22 +02:00
|
|
|
}
|
|
|
|
|
2008-05-20 15:39:47 +02:00
|
|
|
const struct luaL_reg awesome_statusbar_methods[] =
|
|
|
|
{
|
2008-06-30 14:01:55 +02:00
|
|
|
{ "__call", luaA_statusbar_new },
|
2008-05-20 15:39:47 +02:00
|
|
|
{ NULL, NULL }
|
|
|
|
};
|
|
|
|
const struct luaL_reg awesome_statusbar_meta[] =
|
|
|
|
{
|
|
|
|
{ NULL, NULL },
|
|
|
|
};
|
|
|
|
|
2007-12-18 09:24:15 +01:00
|
|
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|