1
0
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:
dan
2002-04-03 00:51:36 +00:00
parent 6e72c20248
commit 750917986e
5 changed files with 13 additions and 1 deletions

View File

@@ -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:

View File

@@ -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;

View File

@@ -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
}; };

View File

@@ -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),

View File

@@ -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)
{ {