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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user