(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)

This commit is contained in:
rubidium
2009-03-15 15:12:06 +00:00
parent e9ae5ae307
commit f9def73be6
44 changed files with 369 additions and 348 deletions

View File

@@ -1180,12 +1180,12 @@ static const Widget _toolb_normal_widgets[] = {
{ WIDGETS_END},
};
static const WindowDesc _toolb_normal_desc = {
static const WindowDesc _toolb_normal_desc(
0, 0, 0, TBP_BUTTONHEIGHT, 640, TBP_BUTTONHEIGHT,
WC_MAIN_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_NO_FOCUS,
_toolb_normal_widgets,
};
_toolb_normal_widgets
);
/* --- Toolbar handling for the scenario editor */
@@ -1433,12 +1433,12 @@ static const Widget _toolb_scen_widgets[] = {
{WIDGETS_END},
};
static const WindowDesc _toolb_scen_desc = {
static const WindowDesc _toolb_scen_desc(
0, 0, 130, TBP_BUTTONHEIGHT, 640, TBP_BUTTONHEIGHT,
WC_MAIN_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_NO_FOCUS,
_toolb_scen_widgets,
};
_toolb_scen_widgets
);
/* --- Allocating the toolbar --- */