1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-02 06:35:44 +01:00

Moved color panel testing to wtest.c and removed testcolorpanel.c

This commit is contained in:
dan
2001-04-16 00:37:34 +00:00
parent 79b17caa73
commit 5c37df521e
3 changed files with 20 additions and 83 deletions

View File

@@ -115,7 +115,8 @@ testFrame(WMScreen *scr)
}
static void resizedWindow(void *self, WMNotification *notif)
static void
resizedWindow(void *self, WMNotification *notif)
{
WMView *view = (WMView*)WMGetNotificationObject(notif);
WMSize size = WMGetViewSize(view);
@@ -507,6 +508,21 @@ testColorWell(WMScreen *scr)
WMMapWidget(win);
}
void
testColorPanel(WMScreen *scr)
{
WMColorPanel *panel = WMGetColorPanel(scr);
/*if (colorname) {
startcolor = WMCreateNamedColor(scr, colorname, False);
WMSetColorPanelColor(panel, startcolor);
WMReleaseColor(startcolor);
}*/
WMShowColorPanel(panel);
}
void
sliderCallback(WMWidget *w, void *data)
{
@@ -545,6 +561,7 @@ testSlider(WMScreen *scr)
WMMapWidget(win);
}
void
testTextField(WMScreen *scr)
{
@@ -1282,6 +1299,7 @@ main(int argc, char **argv)
testDragAndDrop(scr);
#if 0
testColorPanel(scr);
testScrollView(scr);
testTabView(scr);
testBox(scr);