From d7e679d2d7ac43d1778caa61afb81bd570a7e18f Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 28 Feb 2008 16:19:03 +0100 Subject: [PATCH] add widget name in warnings --- widget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widget.c b/widget.c index c0137de82..66c07dc4d 100644 --- a/widget.c +++ b/widget.c @@ -50,12 +50,12 @@ widget_calculate_alignments(Widget *widget) switch(widget->alignment) { case AlignFlex: - warn("multiple flex widgets in panel -" - " ignoring flex for all but the first.\n"); + warn("multiple flex widgets (%s) in panel -" + " ignoring flex for all but the first.\n", widget->name); widget->alignment = AlignRight; break; case AlignCenter: - warn("widgets cannot be center aligned\n"); + warn("widget %s cannot be center aligned\n", widget->name); case AlignAuto: widget->alignment = AlignRight; break;