Fix Error: src/cwindow.cxx:97:3: error: array designators are a C99 extension [-Werror,-Wc99-designator]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
76e6a03d71
commit
82ee0d1e24
@ -94,19 +94,15 @@ struct SToolbarInfo
|
|||||||
|
|
||||||
struct SToolbarInfo GToolBarInfo[NTOOLBAR_BUTTONS] =
|
struct SToolbarInfo GToolBarInfo[NTOOLBAR_BUTTONS] =
|
||||||
{
|
{
|
||||||
[MENU_BUTTON] =
|
|
||||||
{
|
{
|
||||||
&CONFIG_TWM4NX_MENU_IMAGE, false, EVENT_TOOLBAR_MENU
|
&CONFIG_TWM4NX_MENU_IMAGE, false, EVENT_TOOLBAR_MENU
|
||||||
},
|
},
|
||||||
[DELETE_BUTTON] =
|
|
||||||
{
|
{
|
||||||
&CONFIG_TWM4NX_TERMINATE_IMAGE, true, EVENT_TOOLBAR_TERMINATE
|
&CONFIG_TWM4NX_TERMINATE_IMAGE, true, EVENT_TOOLBAR_TERMINATE
|
||||||
},
|
},
|
||||||
[RESIZE_BUTTON] =
|
|
||||||
{
|
{
|
||||||
&CONFIG_TWM4NX_RESIZE_IMAGE, true, EVENT_RESIZE_BUTTON
|
&CONFIG_TWM4NX_RESIZE_IMAGE, true, EVENT_RESIZE_BUTTON
|
||||||
},
|
},
|
||||||
[MINIMIZE_BUTTON] =
|
|
||||||
{
|
{
|
||||||
&CONFIG_TWM4NX_MINIMIZE_IMAGE, true, EVENT_TOOLBAR_MINIMIZE
|
&CONFIG_TWM4NX_MINIMIZE_IMAGE, true, EVENT_TOOLBAR_MINIMIZE
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user