mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-18 08:33:33 +01:00
- Updated WINGs/NEWS with info about hw the API changed how how things
are affected. Fixes for old code too. - Double buffering in WMList. All widgets or apps using WMList and having user drawing porcedures in place will inherit this double buffering automatically too. - New functions in WINGs: WMGetColorAlpha(), WMIsAAFont() - Misc code cleanups in WINGs and src/dialog.c
This commit is contained in:
@@ -52,7 +52,6 @@ W_ViewDelegate _SliderViewDelegate = {
|
||||
|
||||
static void destroySlider(Slider *sPtr);
|
||||
static void paintSlider(Slider *sPtr);
|
||||
static void realizeSlider(Slider *sPtr);
|
||||
|
||||
static void handleEvents(XEvent *event, void *data);
|
||||
static void handleActionEvents(XEvent *event, void *data);
|
||||
@@ -62,11 +61,11 @@ static void makeKnobPixmap(Slider *sPtr);
|
||||
static void
|
||||
realizeObserver(void *self, WMNotification *not)
|
||||
{
|
||||
realizeSlider(self);
|
||||
makeKnobPixmap(self);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
WMSlider*
|
||||
WMCreateSlider(WMWidget *parent)
|
||||
{
|
||||
@@ -103,8 +102,8 @@ WMCreateSlider(WMWidget *parent)
|
||||
sPtr->knobThickness = 20;
|
||||
|
||||
sPtr->flags.continuous = 1;
|
||||
|
||||
WMAddNotificationObserver(realizeObserver, sPtr,
|
||||
|
||||
WMAddNotificationObserver(realizeObserver, sPtr,
|
||||
WMViewRealizedNotification, sPtr->view);
|
||||
|
||||
return sPtr;
|
||||
@@ -294,15 +293,6 @@ makeKnobPixmap(Slider *sPtr)
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
realizeSlider(Slider *sPtr)
|
||||
{
|
||||
W_RealizeView(sPtr->view);
|
||||
|
||||
makeKnobPixmap(sPtr);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
didResizeSlider(W_ViewDelegate *self, WMView *view)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user