add widget name in warnings
This commit is contained in:
parent
19ffbf6e0f
commit
d7e679d2d7
6
widget.c
6
widget.c
|
@ -50,12 +50,12 @@ widget_calculate_alignments(Widget *widget)
|
||||||
switch(widget->alignment)
|
switch(widget->alignment)
|
||||||
{
|
{
|
||||||
case AlignFlex:
|
case AlignFlex:
|
||||||
warn("multiple flex widgets in panel -"
|
warn("multiple flex widgets (%s) in panel -"
|
||||||
" ignoring flex for all but the first.\n");
|
" ignoring flex for all but the first.\n", widget->name);
|
||||||
widget->alignment = AlignRight;
|
widget->alignment = AlignRight;
|
||||||
break;
|
break;
|
||||||
case AlignCenter:
|
case AlignCenter:
|
||||||
warn("widgets cannot be center aligned\n");
|
warn("widget %s cannot be center aligned\n", widget->name);
|
||||||
case AlignAuto:
|
case AlignAuto:
|
||||||
widget->alignment = AlignRight;
|
widget->alignment = AlignRight;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue