From 9959169bb056b1970f20208f1d9757014e0632f1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 18 Jun 2008 17:19:36 +0200 Subject: [PATCH] statusbar: check for widget uniqness Signed-off-by: Julien Danjou --- awesomerc.lua.in | 4 ++-- statusbar.c | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 5ac4bde6..5b55c089 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -91,7 +91,7 @@ mytasklist:set("text_focus", " widget->name, (*widget)->name)) + luaL_error(L, "a widget with name `%s' already on statusbar `%s'", + witer->widget->name, (*sb)->name); (*sb)->need_update = true; w->widget = *widget;