Grammar/spelling corrections in comments and docs.

Signed-off-by: Brian Gianforcaro <b.gianfo@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Brian Gianforcaro 2009-08-30 01:26:19 -04:00 committed by Julien Danjou
parent 9997402e99
commit 3145e3145e
26 changed files with 58 additions and 58 deletions

6
README
View File

@ -10,9 +10,9 @@ After extracting the dist tarball, run:
This will create a build directory, run cmake in it and build awesome. This will create a build directory, run cmake in it and build awesome.
After the building done, you can type this to install: After building is finished, you can install:
make install # might need root permissions make install # you might need root permissions
Running awesome Running awesome
--------------- ---------------
@ -32,7 +32,7 @@ the DISPLAY environment variable is set correctly, e.g.:
Configuration Configuration
------------- -------------
The configuration of awesome is done by creating a $XDG_CONFIG_HOME/awesome/rc.lua file. The configuration of awesome is done by creating a $XDG_CONFIG_HOME/awesome/rc.lua file.
An example is provided in the sources. An example configuration named "awesomerc.lua.in" is provided in the source.
Troubleshooting Troubleshooting
--------------- ---------------

View File

@ -274,8 +274,8 @@ awesome_restart(void)
a_exec(globalconf.argv); a_exec(globalconf.argv);
} }
/** Function to restart aweome on some signals. /** Function to restart awesome on some signals.
* \param w the signam received, unused * \param w the signal received, unused
* \param revents Currently unused * \param revents Currently unused
*/ */
static void static void
@ -289,7 +289,7 @@ restart_on_signal(EV_P_ ev_signal *w, int revents)
* ignored (especially on UnmapNotify's). Other types of errors call Xlibs * ignored (especially on UnmapNotify's). Other types of errors call Xlibs
* default error handler, which may call exit. * default error handler, which may call exit.
* \param data Currently unused. * \param data Currently unused.
* \param c The connectiont to the X server. * \param c The connection to the X server.
* \param e The error event. * \param e The error event.
* \return 0 if no error, or xerror's xlib return status. * \return 0 if no error, or xerror's xlib return status.
*/ */
@ -446,7 +446,7 @@ main(int argc, char **argv)
xtest_query = xcb_get_extension_data(globalconf.connection, &xcb_test_id); xtest_query = xcb_get_extension_data(globalconf.connection, &xcb_test_id);
globalconf.have_xtest = xtest_query->present; globalconf.have_xtest = xtest_query->present;
/* initiliaze dbus */ /* initialize dbus */
a_dbus_init(); a_dbus_init();
/* Grab server */ /* Grab server */

View File

@ -305,7 +305,7 @@ client_unfocus(client_t *c)
client_unfocus_update(c); client_unfocus_update(c);
} }
/** Check if client supports protocol a protocole in WM_PROTOCOL. /** Check if client supports atom a protocol in WM_PROTOCOL.
* \param c The client. * \param c The client.
* \param atom The protocol atom to check for. * \param atom The protocol atom to check for.
* \return True if client has the atom in protocol, false otherwise. * \return True if client has the atom in protocol, false otherwise.
@ -355,7 +355,7 @@ client_ban(client_t *c)
} }
} }
/** This is part of The Bob Marley Algorithmm: we ignore enter and leave window /** This is part of The Bob Marley Algorithm: we ignore enter and leave window
* in certain cases, like map/unmap or move, so we don't get spurious events. * in certain cases, like map/unmap or move, so we don't get spurious events.
*/ */
void void
@ -688,7 +688,7 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int phys_screen,
/* Always stay in NORMAL_STATE. Even though iconified seems more /* Always stay in NORMAL_STATE. Even though iconified seems more
* appropriate sometimes. The only possible loss is that clients not using * appropriate sometimes. The only possible loss is that clients not using
* visibility events may continue to proces data (when banned). * visibility events may continue to process data (when banned).
* Without any exposes or other events the cost should be fairly limited though. * Without any exposes or other events the cost should be fairly limited though.
* *
* Some clients may expect the window to be unmapped when STATE_ICONIFIED. * Some clients may expect the window to be unmapped when STATE_ICONIFIED.
@ -830,7 +830,7 @@ client_geometry_hints(client_t *c, area_t geometry)
} }
/** Resize client window. /** Resize client window.
* The sizse given as parameters are with titlebar and borders! * The sizes given as parameters are with titlebar and borders!
* \param c Client to resize. * \param c Client to resize.
* \param geometry New window geometry. * \param geometry New window geometry.
* \param hints Use size hints. * \param hints Use size hints.
@ -863,7 +863,7 @@ client_resize(client_t *c, area_t geometry, bool hints)
if(geometry_internal.width == 0 || geometry_internal.height == 0) if(geometry_internal.width == 0 || geometry_internal.height == 0)
return false; return false;
/* Also let client hints propegate to the "official" geometry. */ /* Also let client hints propagate to the "official" geometry. */
geometry = titlebar_geometry_add(c->titlebar, c->border_width, geometry_internal); geometry = titlebar_geometry_add(c->titlebar, c->border_width, geometry_internal);
if(c->geometries.internal.x != geometry_internal.x if(c->geometries.internal.x != geometry_internal.x
@ -1229,7 +1229,7 @@ client_unmanage(client_t *c)
{ {
tag_array_t *tags = &c->screen->tags; tag_array_t *tags = &c->screen->tags;
/* Reset transient_for attributes of widows that maybe refering to us */ /* Reset transient_for attributes of widows that maybe referring to us */
foreach(_tc, globalconf.clients) foreach(_tc, globalconf.clients)
{ {
client_t *tc = *_tc; client_t *tc = *_tc;
@ -1317,7 +1317,7 @@ client_kill(client_t *c)
* \param L The Lua VM state. * \param L The Lua VM state.
* \return The number of elements pushed on stack. * \return The number of elements pushed on stack.
* \luastack * \luastack
* \lparam An optional screen nunmber. * \lparam An optional screen number.
* \lreturn A table with all clients. * \lreturn A table with all clients.
*/ */
static int static int

View File

@ -128,7 +128,7 @@ color_init_unchecked(color_t *color, const char *colstr, ssize_t len)
/** Initialize a color. /** Initialize a color.
* \param req color_init request. * \param req color_init request.
* \return True if color allocation was successfull. * \return True if color allocation was successful.
*/ */
bool bool
color_init_reply(color_init_cookie_t req) color_init_reply(color_init_cookie_t req)
@ -218,7 +218,7 @@ xcolor_init_unchecked(xcolor_t *color, const char *colstr, ssize_t len)
/** Initialize a X color. /** Initialize a X color.
* \param req xcolor_init request. * \param req xcolor_init request.
* \return True if color allocation was successfull. * \return True if color allocation was successful.
*/ */
bool bool
xcolor_init_reply(xcolor_init_request_t req) xcolor_init_reply(xcolor_init_request_t req)

View File

@ -49,7 +49,7 @@ atoms_init(xcb_connection_t *conn)
for(i = 0; i < countof(ATOM_LIST); i++) for(i = 0; i < countof(ATOM_LIST); i++)
{ {
if(!(r = xcb_intern_atom_reply(conn, cs[i], NULL))) if(!(r = xcb_intern_atom_reply(conn, cs[i], NULL)))
/* An error occured, get reply for next atom */ /* An error occurred, get reply for next atom */
continue; continue;
*ATOM_LIST[i].atom = r->atom; *ATOM_LIST[i].atom = r->atom;

View File

@ -52,7 +52,7 @@ luaA_object_incref(lua_State *L, int tud, int oud)
/* Get pointer value of the item */ /* Get pointer value of the item */
void *pointer = (void *) lua_topointer(L, oud); void *pointer = (void *) lua_topointer(L, oud);
/* Not referencable. */ /* Not reference able. */
if(!pointer) if(!pointer)
{ {
lua_remove(L, oud); lua_remove(L, oud);
@ -152,7 +152,7 @@ luaA_settype(lua_State *L, lua_class_t *lua_class)
* \param L The Lua VM state. * \param L The Lua VM state.
* \param oud The object index on the stack. * \param oud The object index on the stack.
* \param name The name of the signal. * \param name The name of the signal.
* \param ud The index of function to call when signal is emited. * \param ud The index of function to call when signal is emitted.
*/ */
void void
luaA_object_add_signal(lua_State *L, int oud, luaA_object_add_signal(lua_State *L, int oud,
@ -167,7 +167,7 @@ luaA_object_add_signal(lua_State *L, int oud,
* \param L The Lua VM state. * \param L The Lua VM state.
* \param oud The object index on the stack. * \param oud The object index on the stack.
* \param name The name of the signal. * \param name The name of the signal.
* \param ud The index of function to call when signal is emited. * \param ud The index of function to call when signal is emitted.
*/ */
void void
luaA_object_remove_signal(lua_State *L, int oud, luaA_object_remove_signal(lua_State *L, int oud,

View File

@ -95,7 +95,7 @@ luaA_object_registry_push(lua_State *L)
* That only works with userdata, table, thread or function. * That only works with userdata, table, thread or function.
* \param L The Lua VM state. * \param L The Lua VM state.
* \param oud The object index on the stack. * \param oud The object index on the stack.
* \return The object reference, or NULL if not referencable. * \return The object reference, or NULL if not referenceable.
*/ */
static inline void * static inline void *
luaA_object_ref(lua_State *L, int oud) luaA_object_ref(lua_State *L, int oud)

View File

@ -52,7 +52,7 @@ typedef enum
Left Left
} position_t; } position_t;
/** \brief replace \c NULL strings with emtpy strings */ /** \brief replace \c NULL strings with empty strings */
#define NONULL(x) (x ? x : "") #define NONULL(x) (x ? x : "")
#define DO_NOTHING(...) #define DO_NOTHING(...)
@ -200,7 +200,7 @@ static inline ssize_t a_strnlen(const char *s, ssize_t n)
/** \brief \c NULL resistant strdup. /** \brief \c NULL resistant strdup.
* *
* the a_strdup() function returns a pointer to a new string, which is a * The a_strdup() function returns a pointer to a new string, which is a
* duplicate of \c s. Memory should be freed using p_delete(). * duplicate of \c s. Memory should be freed using p_delete().
* *
* \warning when s is \c "", it returns NULL ! * \warning when s is \c "", it returns NULL !

2
draw.c
View File

@ -668,7 +668,7 @@ draw_text_extents(draw_text_context_t *data)
/** Transform a string to a alignment_t type. /** Transform a string to a alignment_t type.
* Recognized string are flex, fixed, left, center, middle or right. * Recognized string are flex, fixed, left, center, middle or right.
* \param align Atring with align text. * \param align A string with align text.
* \param len The string length. * \param len The string length.
* \return An alignment_t type. * \return An alignment_t type.
*/ */

View File

@ -67,11 +67,11 @@ image_imlib_load_strerror(Imlib_Load_Error e)
case IMLIB_LOAD_ERROR_PATH_TOO_LONG: case IMLIB_LOAD_ERROR_PATH_TOO_LONG:
return "path too long"; return "path too long";
case IMLIB_LOAD_ERROR_PATH_COMPONENT_NON_EXISTANT: case IMLIB_LOAD_ERROR_PATH_COMPONENT_NON_EXISTANT:
return "path component non existant"; return "path component non existent";
case IMLIB_LOAD_ERROR_PATH_COMPONENT_NOT_DIRECTORY: case IMLIB_LOAD_ERROR_PATH_COMPONENT_NOT_DIRECTORY:
return "path compoment not a directory"; return "path component not a directory";
case IMLIB_LOAD_ERROR_PATH_POINTS_OUTSIDE_ADDRESS_SPACE: case IMLIB_LOAD_ERROR_PATH_POINTS_OUTSIDE_ADDRESS_SPACE:
return "path points oustide address space"; return "path points outside address space";
case IMLIB_LOAD_ERROR_TOO_MANY_SYMBOLIC_LINKS: case IMLIB_LOAD_ERROR_TOO_MANY_SYMBOLIC_LINKS:
return "too many symbolic links"; return "too many symbolic links";
case IMLIB_LOAD_ERROR_OUT_OF_MEMORY: case IMLIB_LOAD_ERROR_OUT_OF_MEMORY:

2
key.c
View File

@ -957,7 +957,7 @@ key_getkeysym(xcb_keycode_t detail, uint16_t state)
* instead */ * instead */
return k1; return k1;
/* The Shift modifer is on, or the Lock modifier is on and is /* The Shift modifier is on, or the Lock modifier is on and is
* interpreted as ShiftLock, or both */ * interpreted as ShiftLock, or both */
else if((state & XCB_MOD_MASK_SHIFT) else if((state & XCB_MOD_MASK_SHIFT)
|| (state & XCB_MOD_MASK_LOCK && (state & globalconf.shiftlockmask))) || (state & XCB_MOD_MASK_LOCK && (state & globalconf.shiftlockmask)))

View File

@ -57,7 +57,7 @@ keygrabber_grab(void)
/** Handle keypress event. /** Handle keypress event.
* \param L Lua stack to push the key pressed. * \param L Lua stack to push the key pressed.
* \param e Received XKeyEvent. * \param e Received XKeyEvent.
* \return True if a key was succesfully get, false otherwise. * \return True if a key was successfully get, false otherwise.
*/ */
bool bool
keygrabber_handlekpress(lua_State *L, xcb_key_press_event_t *e) keygrabber_handlekpress(lua_State *L, xcb_key_press_event_t *e)
@ -92,7 +92,7 @@ keygrabber_handlekpress(lua_State *L, xcb_key_press_event_t *e)
* continue grabbing, false to stop. * continue grabbing, false to stop.
* The function is called with 3 arguments: * The function is called with 3 arguments:
* a table containing modifiers keys, a string with the key pressed and a * a table containing modifiers keys, a string with the key pressed and a
* string with eithe "press" or "release" to indicate the event type. * string with either "press" or "release" to indicate the event type.
* *
* \param L The Lua VM state. * \param L The Lua VM state.
* \return The number of elements pushed on stack. * \return The number of elements pushed on stack.

4
luaa.c
View File

@ -237,7 +237,7 @@ luaAe_type(lua_State *L)
} }
/** Modified version of os.execute() which use spawn code to reset signal /** Modified version of os.execute() which use spawn code to reset signal
* handlers correctly before exec()ing the new program. * handlers correctly before exec()'ing the new program.
* \param L The Lua VM state. * \param L The Lua VM state.
* \return The number of arguments pushed on stack. * \return The number of arguments pushed on stack.
*/ */
@ -342,7 +342,7 @@ luaA_wtable_index(lua_State *L)
return 1; return 1;
} }
/** Newndex function of wtable objects. /** Newindex function of wtable objects.
* \param L The Lua VM state. * \param L The Lua VM state.
* \return The number of elements pushed on stack. * \return The number of elements pushed on stack.
*/ */

4
luaa.h
View File

@ -112,7 +112,7 @@ luaA_pusharea(lua_State *L, area_t geometry)
* \param L The Lua stack. * \param L The Lua stack.
* \param idx Index of the object in the stack. * \param idx Index of the object in the stack.
* \param ref A int address: it will be filled with the int * \param ref A int address: it will be filled with the int
* registered. If the adresse point to an already registered object, it will * registered. If the address points to an already registered object, it will
* be unregistered. * be unregistered.
* \return Always 0. * \return Always 0.
*/ */
@ -141,7 +141,7 @@ luaA_unregister(lua_State *L, int *ref)
* \param L The Lua stack. * \param L The Lua stack.
* \param idx Index of the function in the stack. * \param idx Index of the function in the stack.
* \param fct A int address: it will be filled with the int * \param fct A int address: it will be filled with the int
* registered. If the adresse point to an already registered function, it will * registered. If the address points to an already registered function, it will
* be unregistered. * be unregistered.
* \return luaA_register value. * \return luaA_register value.
*/ */

View File

@ -34,7 +34,7 @@
* \param y will be set to the Pointer-y-coordinate relative to window * \param y will be set to the Pointer-y-coordinate relative to window
* \param child Will be set to the window under the pointer. * \param child Will be set to the window under the pointer.
* \param mask will be set to the current buttons state * \param mask will be set to the current buttons state
* \return true on success, false if an error occured * \return true on success, false if an error occurred
**/ **/
bool bool
mouse_query_pointer(xcb_window_t window, int16_t *x, int16_t *y, xcb_window_t *child, uint16_t *mask) mouse_query_pointer(xcb_window_t window, int16_t *x, int16_t *y, xcb_window_t *child, uint16_t *mask)
@ -66,7 +66,7 @@ mouse_query_pointer(xcb_window_t window, int16_t *x, int16_t *y, xcb_window_t *c
* \param y This will be set to the Pointer-y-coordinate relative to window. * \param y This will be set to the Pointer-y-coordinate relative to window.
* \param child This will be set to the window under the pointer. * \param child This will be set to the window under the pointer.
* \param mask This will be set to the current buttons state. * \param mask This will be set to the current buttons state.
* \return True on success, false if an error occured. * \return True on success, false if an error occurred.
*/ */
static bool static bool
mouse_query_pointer_root(screen_t **s, int16_t *x, int16_t *y, xcb_window_t *child, uint16_t *mask) mouse_query_pointer_root(screen_t **s, int16_t *x, int16_t *y, xcb_window_t *child, uint16_t *mask)

View File

@ -255,7 +255,7 @@ screen_virttophys(int screen)
/** Move a client to a virtual screen. /** Move a client to a virtual screen.
* \param c The client to move. * \param c The client to move.
* \param new_screen The destinatiuon screen. * \param new_screen The destination screen.
* \param doresize Set to true if we also move the client to the new x and * \param doresize Set to true if we also move the client to the new x and
* y of the new screen. * y of the new screen.
*/ */
@ -340,7 +340,7 @@ screen_client_moveto(client_t *c, screen_t *new_screen, bool doresize)
/** Push a screen onto the stack. /** Push a screen onto the stack.
* \param L The Lua VM state. * \param L The Lua VM state.
* \param s The scren to push. * \param s The screen to push.
* \return The number of elements pushed on stack. * \return The number of elements pushed on stack.
*/ */
int int
@ -455,7 +455,7 @@ luaA_screen_index(lua_State *L)
* \luastack * \luastack
* \lvalue A screen. * \lvalue A screen.
* \lparam A signal name. * \lparam A signal name.
* \lparam A function to call when the signal is emited. * \lparam A function to call when the signal is emitted.
*/ */
static int static int
luaA_screen_add_signal(lua_State *L) luaA_screen_add_signal(lua_State *L)

View File

@ -47,7 +47,7 @@ struct a_screen
SnMonitorContext *snmonitor; SnMonitorContext *snmonitor;
/** The default visual, used to draw */ /** The default visual, used to draw */
xcb_visualtype_t *visual; xcb_visualtype_t *visual;
/** The signals emited by screen objects */ /** The signals emitted by screen objects */
signal_array_t signals; signal_array_t signals;
}; };
ARRAY_FUNCS(screen_t, screen, DO_NOTHING) ARRAY_FUNCS(screen_t, screen, DO_NOTHING)

View File

@ -71,7 +71,7 @@ luaA_selection_get(lua_State *L)
* xcb_event_poll_for_event_loop() and awesome_refresh(), * xcb_event_poll_for_event_loop() and awesome_refresh(),
* then check if some static buffer has been filled with data. * then check if some static buffer has been filled with data.
* If yes, that'd be the xsel data, otherwise, re-loop. * If yes, that'd be the xsel data, otherwise, re-loop.
* Anyway that's still brokes the socket or D-Bus, so maybe using * Anyway that's still brakes the socket or D-Bus, so maybe using
* ev_loop() would be even better. * ev_loop() would be even better.
*/ */
xcb_event_handle(&globalconf.evenths, event); xcb_event_handle(&globalconf.evenths, event);

View File

@ -127,7 +127,7 @@ systray_cleanup(int phys_screen)
/** Handle a systray request. /** Handle a systray request.
* \param embed_win The window to embed. * \param embed_win The window to embed.
* \param phys_screen The physical monitor to display on. * \param phys_screen The physical monitor to display on.
* \param info The embeding info * \param info The embedding info
* \return 0 on no error. * \return 0 on no error.
*/ */
int int
@ -221,7 +221,7 @@ systray_iskdedockapp(xcb_window_t w)
xcb_get_property_reply_t *kde_check; xcb_get_property_reply_t *kde_check;
bool ret; bool ret;
/* Check if that is a KDE tray because it does not repect fdo standards, /* Check if that is a KDE tray because it does not respect fdo standards,
* thanks KDE. */ * thanks KDE. */
kde_check_q = xcb_get_property_unchecked(globalconf.connection, false, w, kde_check_q = xcb_get_property_unchecked(globalconf.connection, false, w,
_KDE_NET_WM_SYSTEM_TRAY_WINDOW_FOR, _KDE_NET_WM_SYSTEM_TRAY_WINDOW_FOR,

View File

@ -62,7 +62,7 @@ static inline area_t
titlebar_geometry_add(wibox_t *t, int border, area_t geometry) titlebar_geometry_add(wibox_t *t, int border, area_t geometry)
{ {
/* We need to add titlebar border to the total width and height. /* We need to add titlebar border to the total width and height.
* This can then be substracted/added to the witdh/height/x/y. * This can then be subtracted/added to the width/height/x/y.
* In this case the border is included, because it belongs to a different window. * In this case the border is included, because it belongs to a different window.
*/ */
if(t && t->visible) if(t && t->visible)
@ -103,7 +103,7 @@ static inline area_t
titlebar_geometry_remove(wibox_t *t, int border, area_t geometry) titlebar_geometry_remove(wibox_t *t, int border, area_t geometry)
{ {
/* We need to add titlebar border to the total width and height. /* We need to add titlebar border to the total width and height.
* This can then be substracted/added to the witdh/height/x/y. * This can then be subtracted/added to the width/height/x/y.
* In this case the border is included, because it belongs to a different window. * In this case the border is included, because it belongs to a different window.
*/ */
if(t && t->visible) if(t && t->visible)

View File

@ -89,7 +89,7 @@ Options:
-u Use specified wallpapersetter, use no argument to forget. -u Use specified wallpapersetter, use no argument to forget.
-r set random wallpaper from a directory -r set random wallpaper from a directory
-F,-C,-T,-A,-U,-R same as uncapsed but without remembering. -F,-C,-T,-A,-U,-R same as lowercase but without remembering.
-h Display this help. -h Display this help.

10
wibox.c
View File

@ -94,7 +94,7 @@ shape_update(xcb_window_t win, xcb_shape_kind_t kind, image_t *image, int offset
} }
/** Update the window's shape. /** Update the window's shape.
* \param wibox The simplw window whose shape should be updated. * \param wibox The simple window whose shape should be updated.
*/ */
static void static void
wibox_shape_update(wibox_t *wibox) wibox_shape_update(wibox_t *wibox)
@ -258,13 +258,13 @@ wibox_moveresize(lua_State *L, int udx, area_t geometry)
wibox_draw_context_update(w, s); wibox_draw_context_update(w, s);
} }
/* Activatate BMA */ /* Activate BMA */
client_ignore_enterleave_events(); client_ignore_enterleave_events();
if(mask_vals) if(mask_vals)
xcb_configure_window(globalconf.connection, w->window, mask_vals, moveresize_win_vals); xcb_configure_window(globalconf.connection, w->window, mask_vals, moveresize_win_vals);
/* Deactivatate BMA */ /* Deactivate BMA */
client_restore_enterleave_events(); client_restore_enterleave_events();
w->screen = screen_getbycoord(w->screen, w->geometry.x, w->geometry.y); w->screen = screen_getbycoord(w->screen, w->geometry.x, w->geometry.y);
@ -369,7 +369,7 @@ wibox_map(wibox_t *wibox)
client_ignore_enterleave_events(); client_ignore_enterleave_events();
/* Map the wibox */ /* Map the wibox */
xcb_map_window(globalconf.connection, wibox->window); xcb_map_window(globalconf.connection, wibox->window);
/* Deactivatate BMA */ /* Deactivate BMA */
client_restore_enterleave_events(); client_restore_enterleave_events();
/* We must make sure the wibox does not display garbage */ /* We must make sure the wibox does not display garbage */
wibox_need_update(wibox); wibox_need_update(wibox);
@ -784,7 +784,7 @@ wibox_attach(lua_State *L, int udx, screen_t *s)
* \param L The Lua VM state. * \param L The Lua VM state.
* *
* \luastack * \luastack
* \lparam A table with optionaly defined values: * \lparam A table with optionally defined values:
* fg, bg, border_width, border_color, ontop, width and height. * fg, bg, border_width, border_color, ontop, width and height.
* \lreturn A brand new wibox. * \lreturn A brand new wibox.
*/ */

View File

@ -98,7 +98,7 @@ widget_getbycoords(orientation_t orientation, widget_node_array_t *widgets,
return NULL; return NULL;
} }
/** Convert a Lua table to a list of widget nodet. /** Convert a Lua table to a list of widget nodes.
* \param L The Lua VM state. * \param L The Lua VM state.
* \param widgets The linked list of widget node. * \param widgets The linked list of widget node.
*/ */
@ -534,7 +534,7 @@ luaA_widget_set_type(lua_State *L, widget_t *w)
} }
if(!wc) if(!wc)
luaL_error(L, "unkown widget type: %s", type); luaL_error(L, "unknown widget type: %s", type);
wc(w); wc(w);
w->type = wc; w->type = wc;

View File

@ -36,7 +36,7 @@ typedef enum
/** The plot data structure. */ /** The plot data structure. */
typedef struct typedef struct
{ {
/** Grapht title of the plot sections */ /** Graph title of the plot sections */
char *title; char *title;
/** Represents a full graph */ /** Represents a full graph */
float max_value; float max_value;

View File

@ -195,7 +195,7 @@ progressbar_draw(widget_t *widget, draw_context_t *ctx, area_t geometry, wibox_t
* basic progressbar: * basic progressbar:
* 1. the full space gets the size of the formerly empty one * 1. the full space gets the size of the formerly empty one
* 2. the pattern must be mirrored * 2. the pattern must be mirrored
* 3. the formerly 'empty' side gets drawed with fg colors, the 'full' with bg-color * 3. the formerly 'empty' side is drawn with fg colors, the 'full' with bg-color
* *
* ticks: * ticks:
* 1. round the values to a full tick accordingly * 1. round the values to a full tick accordingly
@ -307,7 +307,7 @@ progressbar_draw(widget_t *widget, draw_context_t *ctx, area_t geometry, wibox_t
else else
draw_rectangle(ctx, rectangle, 1.0, true, &bar->fg_off); draw_rectangle(ctx, rectangle, 1.0, true, &bar->fg_off);
} }
/* draw gaps TODO: improve e.g all in one */ /* draw gaps \todo improve e.g all in one */
if(d->ticks_count && d->ticks_gap) if(d->ticks_count && d->ticks_gap)
{ {
rectangle.width = pb_width; rectangle.width = pb_width;
@ -415,7 +415,7 @@ progressbar_draw(widget_t *widget, draw_context_t *ctx, area_t geometry, wibox_t
else else
draw_rectangle(ctx, rectangle, 1.0, true, &bar->fg_off); draw_rectangle(ctx, rectangle, 1.0, true, &bar->fg_off);
} }
/* draw gaps TODO: improve e.g all in one */ /* draw gaps \todo improve e.g all in one */
if(d->ticks_count && d->ticks_gap) if(d->ticks_count && d->ticks_gap)
{ {
rectangle.width = d->ticks_gap; rectangle.width = d->ticks_gap;