1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-09 19:15:49 +01:00

added colorwell updating through colorpanel

added delegate and new functions to tabview
This commit is contained in:
kojima
1999-05-17 03:55:35 +00:00
parent 07e83b45d0
commit aff8982859
5 changed files with 70 additions and 8 deletions

View File

@@ -69,7 +69,6 @@ static WMDragSourceProcs dragProcs = {
static void
colorChangedObserver(void *data, WMNotification *notification)
{
/*
WMColorPanel *panel = (WMColorPanel*)WMGetNotificationObject(notification);
WMColorWell *cPtr = (WMColorWell*)data;
WMColor *color;
@@ -79,21 +78,21 @@ colorChangedObserver(void *data, WMNotification *notification)
color = WMGetColorPanelColor(panel);
WMSetColorWellColor(cPtr, color);*/
WMSetColorWellColor(cPtr, color);
WMPostNotificationName(WMColorWellDidChangeNotification, cPtr, NULL);
}
static void
updateColorCallback(void *self, void *data)
{
/*
WMColorPanel *panel = (WMColorPanel*)self;
WMColorWell *cPtr = (ColorWell*)data;
WMColor *color;
color = WMGetColorPanelColor(panel);
WMSetColorWellColor(cPtr, color);*/
WMSetColorWellColor(cPtr, color);
WMPostNotificationName(WMColorWellDidChangeNotification, cPtr, NULL);
}