mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-13 04:15: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
@@ -2036,7 +2036,7 @@ static void prepareForClose(_Panel * panel)
|
||||
WMSynchronizeUserDefaults(udb);
|
||||
}
|
||||
|
||||
Panel *InitAppearance(WMScreen * scr, WMWindow * win)
|
||||
Panel *InitAppearance(WMScreen *scr, WMWidget *parent)
|
||||
{
|
||||
_Panel *panel;
|
||||
|
||||
@@ -2046,7 +2046,7 @@ Panel *InitAppearance(WMScreen * scr, WMWindow * win)
|
||||
|
||||
panel->description = _("Background texture configuration for windows,\n" "menus and icons.");
|
||||
|
||||
panel->parent = win;
|
||||
panel->parent = parent;
|
||||
|
||||
panel->callbacks.createWidgets = createPanel;
|
||||
panel->callbacks.updateDomain = storeData;
|
||||
|
||||
Reference in New Issue
Block a user