diff --git a/WINGs/ChangeLog b/WINGs/ChangeLog index 9c060397..e9ffea2c 100644 --- a/WINGs/ChangeLog +++ b/WINGs/ChangeLog @@ -19,6 +19,7 @@ Changes since wmaker 0.80.0: WMDefaultSystemFont(WMScreen *scr) and WMDefaultBoldSystemFont(WMScreen *scr) - Added WMSetButtonImageDimsWhenDisabled() and WMGetButtonEnabled() - Cleaned-up the header files of functions/vars declared but not implemented +- Added WMGetTextFieldDelegate() Changes since wmaker 0.70.0: diff --git a/WINGs/WINGs/WINGs.h b/WINGs/WINGs/WINGs.h index 1a134fc8..c746e26d 100644 --- a/WINGs/WINGs/WINGs.h +++ b/WINGs/WINGs/WINGs.h @@ -1096,6 +1096,7 @@ void WMSetTextFieldPrevTextField(WMTextField *tPtr, WMTextField *prev); void WMSetTextFieldDelegate(WMTextField *tPtr, WMTextFieldDelegate *delegate); +WMTextFieldDelegate* WMGetTextFieldDelegate(WMTextField *tPtr); extern char *WMTextDidChangeNotification; extern char *WMTextDidBeginEditingNotification; diff --git a/WINGs/widgets.c b/WINGs/widgets.c index 347df101..250398bc 100644 --- a/WINGs/widgets.c +++ b/WINGs/widgets.c @@ -302,7 +302,7 @@ static char *CHECK_MARK[] = { #define STIPPLE_WIDTH 8 #define STIPPLE_HEIGHT 8 static unsigned char STIPPLE_BITS[] = { - 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa + 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55 }; diff --git a/WINGs/wtext.c b/WINGs/wtext.c index c819a7f3..ea1feb35 100644 --- a/WINGs/wtext.c +++ b/WINGs/wtext.c @@ -3150,6 +3150,7 @@ WMCreateTextForDocumentType(WMWidget *parent, WMAction *parser, WMAction *writer gcv.foreground = W_PIXEL(scr->gray); gcv.background = W_PIXEL(scr->darkGray); gcv.fill_style = FillStippled; + /* why not use scr->stipple here? */ gcv.stipple = XCreateBitmapFromData(dpy, W_DRAWABLE(scr), STIPPLE_BITS, STIPPLE_WIDTH, STIPPLE_HEIGHT); tPtr->stippledGC = XCreateGC(dpy, W_DRAWABLE(scr), diff --git a/WINGs/wtextfield.c b/WINGs/wtextfield.c index 2cbe9b12..d576708f 100644 --- a/WINGs/wtextfield.c +++ b/WINGs/wtextfield.c @@ -378,6 +378,15 @@ WMSetTextFieldDelegate(WMTextField *tPtr, WMTextFieldDelegate *delegate) } +WMTextFieldDelegate* +WMGetTextFieldDelegate(WMTextField *tPtr) +{ + CHECK_CLASS(tPtr, WC_TextField); + + return tPtr->delegate; +} + + void WMInsertTextFieldText(WMTextField *tPtr, char *text, int position) {