mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-23 15:45:50 +01:00
WPrefs: Cleaned dangerous function prototype usage
- remove extern declaration in source file, use header instead - add inclusion of header defining the functions of the file to get the compiler to cross-check them - marked static the functions that should not be visible ouside their file
This commit is contained in:
committed by
Carlos R. Mafra
parent
549cefc47b
commit
5a65dbeb3d
@@ -330,7 +330,7 @@ static void createPanel(Panel * p)
|
||||
showData(panel);
|
||||
}
|
||||
|
||||
Panel *InitFocus(WMScreen * scr, WMWindow * win)
|
||||
Panel *InitFocus(WMScreen *scr, WMWidget *parent)
|
||||
{
|
||||
_Panel *panel;
|
||||
|
||||
@@ -338,7 +338,7 @@ Panel *InitFocus(WMScreen * scr, WMWindow * win)
|
||||
|
||||
panel->sectionName = _("Window Focus Preferences");
|
||||
panel->description = _("Keyboard focus switching policy and related options.");
|
||||
panel->parent = win;
|
||||
panel->parent = parent;
|
||||
|
||||
panel->callbacks.createWidgets = createPanel;
|
||||
panel->callbacks.updateDomain = storeData;
|
||||
|
||||
Reference in New Issue
Block a user