mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 12:00:31 +01:00
WINGS: removed compiler warnings.
This patch removes compiler warnings.
This commit is contained in:
committed by
Carlos R. Mafra
parent
201ea95e9d
commit
3b97d33d0a
@@ -340,7 +340,6 @@ static void colorListPaintItem(WMList * lPtr, int index, Drawable d, char *text,
|
||||
static void colorListSelect(WMWidget * w, void *data);
|
||||
static void colorListColorMenuCallback(WMWidget * w, void *data);
|
||||
static void colorListListMenuCallback(WMWidget * w, void *data);
|
||||
static void colorListListMenuNew(W_ColorPanel * panel);
|
||||
|
||||
static void wheelInit(W_ColorPanel * panel);
|
||||
static void grayInit(W_ColorPanel * panel);
|
||||
@@ -3238,8 +3237,6 @@ static void colorListListMenuCallback(WMWidget * w, void *data)
|
||||
|
||||
switch (item) {
|
||||
case CLmenuAdd:
|
||||
/* New Color List */
|
||||
colorListListMenuNew(panel);
|
||||
break;
|
||||
case CLmenuRename:
|
||||
break;
|
||||
@@ -3248,11 +3245,6 @@ static void colorListListMenuCallback(WMWidget * w, void *data)
|
||||
}
|
||||
}
|
||||
|
||||
static void colorListListMenuNew(W_ColorPanel * panel)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*************** Panel Initialisation Functions *****************/
|
||||
|
||||
static void wheelInit(W_ColorPanel * panel)
|
||||
|
||||
@@ -111,21 +111,6 @@ static void updateColorCallback(void *self, void *data)
|
||||
WMPostNotificationName(WMColorWellDidChangeNotification, cPtr, NULL);
|
||||
}
|
||||
|
||||
static void activatedObserver(void *data, WMNotification * notification)
|
||||
{
|
||||
/*
|
||||
WMColorWell *cPtr = (WMColorWell*)data;
|
||||
|
||||
if (!cPtr->flags.active || WMGetNotificationObject(notification) == cPtr)
|
||||
return;
|
||||
|
||||
W_SetViewBackgroundColor(cPtr->view, WMWidgetScreen(cPtr)->gray);
|
||||
paintColorWell(cPtr);
|
||||
|
||||
cPtr->flags.active = 0;
|
||||
*/
|
||||
}
|
||||
|
||||
static WMArray *getXdndTypeArray(void)
|
||||
{
|
||||
WMArray *types = WMCreateArray(1);
|
||||
@@ -173,8 +158,6 @@ WMColorWell *WMCreateColorWell(WMWidget * parent)
|
||||
|
||||
W_ResizeView(cPtr->view, DEFAULT_WIDTH, DEFAULT_HEIGHT);
|
||||
|
||||
WMAddNotificationObserver(activatedObserver, cPtr, _ColorWellActivatedNotification, NULL);
|
||||
|
||||
cPtr->color = WMBlackColor(WMWidgetScreen(cPtr));
|
||||
|
||||
WMAddNotificationObserver(colorChangedObserver, cPtr, WMColorPanelColorChangedNotification, NULL);
|
||||
|
||||
@@ -470,11 +470,6 @@ static char *get_name_from_path(const char *path)
|
||||
return wstrdup(&(path[size]));
|
||||
}
|
||||
|
||||
static Bool filterFileName(WMFilePanel * panel, const char *file, Bool isDirectory)
|
||||
{
|
||||
return True;
|
||||
}
|
||||
|
||||
#define CAST(item) (*((WMListItem**)item))
|
||||
static int comparer(const void *a, const void *b)
|
||||
{
|
||||
@@ -535,9 +530,7 @@ static void listDirectoryOnColumn(WMFilePanel * panel, int column, const char *p
|
||||
int isDirectory;
|
||||
|
||||
isDirectory = S_ISDIR(stat_buf.st_mode);
|
||||
|
||||
if (filterFileName(panel, dentry->d_name, isDirectory))
|
||||
WMInsertBrowserItem(bPtr, column, -1, dentry->d_name, isDirectory);
|
||||
WMInsertBrowserItem(bPtr, column, -1, dentry->d_name, isDirectory);
|
||||
}
|
||||
}
|
||||
WMSortBrowserColumnWithComparer(bPtr, column, comparer);
|
||||
@@ -738,6 +731,9 @@ out:
|
||||
|
||||
static void goUnmount(WMWidget *widget, void *p_panel)
|
||||
{
|
||||
/* Not implemented yet */
|
||||
(void) widget;
|
||||
(void) p_panel;
|
||||
}
|
||||
|
||||
static void goFloppy(WMWidget *widget, void *p_panel)
|
||||
|
||||
@@ -141,6 +141,8 @@ static void didResizeProgressIndicator(W_ViewDelegate * self, WMView * view)
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) self;
|
||||
(void) width;
|
||||
(void) height;
|
||||
|
||||
assert(width > 0);
|
||||
assert(height > 0);
|
||||
|
||||
@@ -775,10 +775,12 @@ void WMSetSplitViewVertical(WMSplitView * sPtr, Bool flag)
|
||||
*/
|
||||
}
|
||||
|
||||
int WMGetSplitViewDividerThickness(WMSplitView * sPtr)
|
||||
int WMGetSplitViewDividerThickness(WMSplitView *sPtr)
|
||||
{
|
||||
CHECK_CLASS(sPtr, WC_SplitView);
|
||||
|
||||
(void) sPtr;
|
||||
|
||||
return (DIVIDER_THICKNESS);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user