mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
WINGs: Added explicit parameter list to function prototypes (Simple cases)
It is dangerous to let the compiler know about a function without letting him know the arguments because he won't be able to report invalid calls. This patch concern the cases where adding the arguments did not need other code change.
This commit is contained in:
committed by
Carlos R. Mafra
parent
a622197faa
commit
708bc27e3f
@@ -37,7 +37,7 @@ static void handleDragEvents(XEvent * event, void *data);
|
||||
|
||||
static void handleActionEvents(XEvent * event, void *data);
|
||||
|
||||
static void willResizeColorWell();
|
||||
static void willResizeColorWell(W_ViewDelegate * self, WMView * view, unsigned int *width, unsigned int *height);
|
||||
|
||||
W_ViewDelegate _ColorWellViewDelegate = {
|
||||
NULL,
|
||||
|
||||
@@ -64,7 +64,7 @@ static void vScrollCallBack(WMWidget * scroller, void *self);
|
||||
static void toggleItemSelection(WMList * lPtr, int index);
|
||||
|
||||
static void updateGeometry(WMList * lPtr);
|
||||
static void didResizeList();
|
||||
static void didResizeList(W_ViewDelegate * self, WMView * view);
|
||||
|
||||
static void unselectAllListItems(WMList * lPtr, WMListItem * exceptThis);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ typedef struct W_ProgressIndicator {
|
||||
/* define if only the ticks within the progress region should be displayed */
|
||||
#undef SHOW_PROGRESS_TICKS_ONLY
|
||||
|
||||
static void didResizeProgressIndicator();
|
||||
static void didResizeProgressIndicator(W_ViewDelegate * self, WMView * view);
|
||||
|
||||
W_ViewDelegate _ProgressIndicatorDelegate = {
|
||||
NULL,
|
||||
|
||||
@@ -73,7 +73,7 @@ typedef struct W_Scroller {
|
||||
static void destroyScroller(Scroller * sPtr);
|
||||
static void paintScroller(Scroller * sPtr);
|
||||
|
||||
static void willResizeScroller();
|
||||
static void willResizeScroller(W_ViewDelegate * self, WMView * view, unsigned int *width, unsigned int *height);
|
||||
static void handleEvents(XEvent * event, void *data);
|
||||
static void handleActionEvents(XEvent * event, void *data);
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@ static void destroyScrollView(ScrollView * sPtr);
|
||||
static void paintScrollView(ScrollView * sPtr);
|
||||
static void handleEvents(XEvent * event, void *data);
|
||||
static void handleViewportEvents(XEvent * event, void *data);
|
||||
static void resizeScrollView();
|
||||
static void updateScrollerProportion();
|
||||
static void resizeScrollView(W_ViewDelegate *self, WMView *view);
|
||||
static void updateScrollerProportion(ScrollView *sPtr);
|
||||
|
||||
W_ViewDelegate _ScrollViewViewDelegate = {
|
||||
NULL,
|
||||
|
||||
@@ -29,7 +29,7 @@ typedef struct W_Slider {
|
||||
|
||||
} Slider;
|
||||
|
||||
static void didResizeSlider();
|
||||
static void didResizeSlider(W_ViewDelegate * self, WMView * view);
|
||||
|
||||
W_ViewDelegate _SliderViewDelegate = {
|
||||
NULL,
|
||||
|
||||
@@ -96,7 +96,7 @@ static void paintTextField(TextField * tPtr);
|
||||
|
||||
static void handleEvents(XEvent * event, void *data);
|
||||
static void handleTextFieldActionEvents(XEvent * event, void *data);
|
||||
static void didResizeTextField();
|
||||
static void didResizeTextField(W_ViewDelegate * self, WMView * view);
|
||||
|
||||
struct W_ViewDelegate _TextFieldViewDelegate = {
|
||||
NULL,
|
||||
|
||||
@@ -89,9 +89,9 @@ struct W_ViewDelegate _WindowViewDelegate = {
|
||||
|
||||
static void destroyWindow(_Window * win);
|
||||
|
||||
static void handleEvents();
|
||||
static void handleEvents(XEvent * event, void *clientData);
|
||||
|
||||
static void realizeWindow();
|
||||
static void realizeWindow(WMWindow * win);
|
||||
|
||||
static void realizeObserver(void *self, WMNotification * not)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user