mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
- Added WMGetTextFieldDelegate()
- Fixed a problem with drawing the return arrow on buttons when disabled
This commit is contained in:
@@ -19,6 +19,7 @@ Changes since wmaker 0.80.0:
|
|||||||
WMDefaultSystemFont(WMScreen *scr) and WMDefaultBoldSystemFont(WMScreen *scr)
|
WMDefaultSystemFont(WMScreen *scr) and WMDefaultBoldSystemFont(WMScreen *scr)
|
||||||
- Added WMSetButtonImageDimsWhenDisabled() and WMGetButtonEnabled()
|
- Added WMSetButtonImageDimsWhenDisabled() and WMGetButtonEnabled()
|
||||||
- Cleaned-up the header files of functions/vars declared but not implemented
|
- Cleaned-up the header files of functions/vars declared but not implemented
|
||||||
|
- Added WMGetTextFieldDelegate()
|
||||||
|
|
||||||
|
|
||||||
Changes since wmaker 0.70.0:
|
Changes since wmaker 0.70.0:
|
||||||
|
|||||||
@@ -1096,6 +1096,7 @@ void WMSetTextFieldPrevTextField(WMTextField *tPtr, WMTextField *prev);
|
|||||||
|
|
||||||
void WMSetTextFieldDelegate(WMTextField *tPtr, WMTextFieldDelegate *delegate);
|
void WMSetTextFieldDelegate(WMTextField *tPtr, WMTextFieldDelegate *delegate);
|
||||||
|
|
||||||
|
WMTextFieldDelegate* WMGetTextFieldDelegate(WMTextField *tPtr);
|
||||||
|
|
||||||
extern char *WMTextDidChangeNotification;
|
extern char *WMTextDidChangeNotification;
|
||||||
extern char *WMTextDidBeginEditingNotification;
|
extern char *WMTextDidBeginEditingNotification;
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ static char *CHECK_MARK[] = {
|
|||||||
#define STIPPLE_WIDTH 8
|
#define STIPPLE_WIDTH 8
|
||||||
#define STIPPLE_HEIGHT 8
|
#define STIPPLE_HEIGHT 8
|
||||||
static unsigned char STIPPLE_BITS[] = {
|
static unsigned char STIPPLE_BITS[] = {
|
||||||
0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa
|
0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3150,6 +3150,7 @@ WMCreateTextForDocumentType(WMWidget *parent, WMAction *parser, WMAction *writer
|
|||||||
gcv.foreground = W_PIXEL(scr->gray);
|
gcv.foreground = W_PIXEL(scr->gray);
|
||||||
gcv.background = W_PIXEL(scr->darkGray);
|
gcv.background = W_PIXEL(scr->darkGray);
|
||||||
gcv.fill_style = FillStippled;
|
gcv.fill_style = FillStippled;
|
||||||
|
/* why not use scr->stipple here? */
|
||||||
gcv.stipple = XCreateBitmapFromData(dpy, W_DRAWABLE(scr),
|
gcv.stipple = XCreateBitmapFromData(dpy, W_DRAWABLE(scr),
|
||||||
STIPPLE_BITS, STIPPLE_WIDTH, STIPPLE_HEIGHT);
|
STIPPLE_BITS, STIPPLE_WIDTH, STIPPLE_HEIGHT);
|
||||||
tPtr->stippledGC = XCreateGC(dpy, W_DRAWABLE(scr),
|
tPtr->stippledGC = XCreateGC(dpy, W_DRAWABLE(scr),
|
||||||
|
|||||||
@@ -378,6 +378,15 @@ WMSetTextFieldDelegate(WMTextField *tPtr, WMTextFieldDelegate *delegate)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
WMTextFieldDelegate*
|
||||||
|
WMGetTextFieldDelegate(WMTextField *tPtr)
|
||||||
|
{
|
||||||
|
CHECK_CLASS(tPtr, WC_TextField);
|
||||||
|
|
||||||
|
return tPtr->delegate;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
WMInsertTextFieldText(WMTextField *tPtr, char *text, int position)
|
WMInsertTextFieldText(WMTextField *tPtr, char *text, int position)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user