mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-02 06:35:44 +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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user