1 Changes since wmaker 0.80.0:
2 ............................
4 - fixed a bug in wfindfile() (rewrote wfindfile() with better logic).
5 - separated the font caches for normal fonts and fontsets in WINGs (they can
6 have the same names and collide in the cache giving unwanted results)
7 - fixed labels not to display '\n' as a character if multiple '\n' are passed
8 but just skip to the next line.
9 - better warning when importing non-digit characters in PropList Data.
10 - rewrote WMBox to use a WMArray for subviews. with this change fixed a bug
11 about arranging subviews after removing one and a memleak occuring in the
13 - Fixed WMGetViewScreenPosition() to consider the window decorations.
14 - Added ability to enable/disable individual WMTableViewItems.
15 - Fixed textfields regarding interpretation of special keys with modifiers.
16 - Fixed some functions that accept a boolean flag as a paramater, to set only
17 1 or 0 for the flag value, not the flag passed by the user.
20 Changes since wmaker 0.70.0:
21 ............................
23 - added an internal strcasecmp() (only on systems where is not present)
24 - removed some redundant includes of ../src/config.h when wconfig.h is
26 - removed a wsyserror() message when reading a property list from file
27 (the programmer should decide if to give that message or just ignore).
28 - added a 'Bool recursive' flag to WMMergePLDictionaries()
29 - added WMSubtractPLDictionaries()
32 Changes since wmaker 0.65.0:
33 ............................
35 - fixed problem with WINGs based apps exiting with a "X_RotateProperties"
36 related error when text was selected in a textfiled.
37 - moved wstrdup(), wstrconcat() and wstrappend() from memory.c to string.c
38 - added property list handling code making libPropList unnecessary and
39 obsolete. Backward compatibility is provided through the
40 WINGs/proplist-compat.h header file which has #defines from old libPropList
41 function names to new function names with minimal changes. Read this
42 header file and the NEWS file for more details about this subject.
43 - Renamed WMGetUDAllKeys() to WMGetUDKeys()
46 Changes since wmaker 0.64.0:
47 ............................
49 - made programmatic scroller changes send notifications
50 - replaced WMSetBoxExpandsToParent with WMSetViewExpands...
51 - added WMGetLabelFont()
52 - added WMAddPersistentTimerHandler()
53 - Moved all internal handlers (timer, idle and input) to handlers.c
54 - simplified wevent.c and wutil.c.
55 - fixed handling of input with poll (was broken)
56 - fixed mem leak that occured when input handling was done with poll
57 - simpler and more straightforward event handling for timer, idle, input
58 and X events (also fixed some problems the old handling logic had)
59 - moved timer, idle and input handler definitions and prototypes from
60 WINGs.h to WUtil.h because they're not GUI related.
61 - better and more robust handling of events (timer, idle, input, X) in
62 WMMaskEvent(). Also fixed a bug where input and timer events were not
63 treated for undefined periods of time under some circumstances.
64 - fixed secure textfields not to allow text selection, to avoid compromising
65 sensitive information by pasting it to a terminal.
66 - replaced wmkrange(), wmkpoint() and wmksize() functions with macros.
67 - added WMRemoveFromArrayMatching(array, match, cdata), which will remove the
68 first element in the array that is matched by match(item, cdata)==True.
69 - added WMArrayFirst(), WMArrayLast(), WMArrayNext() and WMArrayPrevious()
70 functions and also WM_ITERATE_ARRAY() and WM_ETARETI_ARRAY() macros, to make
71 interfaces to WMBag and WMArray similar and to make life a little simpler
72 when iterating through all elements of an array.
73 - replaced bags with arrays wherever appropriate. This will improve
75 - replaced some recursive code with iterative code in selection.c
76 - added WMCreateBlendedPixmapFromRImage()
78 1. Renamed WMSetApplicationIconImage(), WMGetApplicationIconImage() and
79 WMSetWindowMiniwindowImage() to respectively WMSetApplicationIconPixmap(),
80 WMGetApplicationIconPixmap() and WMSetWindowMiniwindowPixmap()
81 They operate on a WMPixmap which is practically an X Pixmap with no alpha
82 channel information and the new name is more suggestive and also leaves
83 room for the new functions added for operating on images with alpha info.
84 2. Added WMSetApplicationIconImage() and WMGetApplicationIconImage() which
85 operate on an RImage and store alpha information too.
86 3. Added WMCreateApplicationIconBlendedPixmap() which will take the image
87 set by WMSetApplicationIconImage() and will combine it with a color.
88 If color is NULL it will blend using the default panel color (#aeaaae)
89 All these changes will allow WINGs to handle images with alpha blending
90 correctly in panels and wherever else needed. More about in NEWS.
91 - updated panels to use the newly available RImages if present and fallback
92 to old WMPixmaps if not, to properly show alpha blended images.
93 - replaced some still left malloc's with wmalloc's.
94 - fixed a bug in WMReparentWidget()
95 - added WMReparentWidget() to WINGs.h
96 - fixed a bug that made the scroller knob jump backwards when dragged (this
97 bug had no relation with the behavior that #define STRICT_NEXT_BEHAVIOUR
98 attempts to accomplish).
99 - fixed scrolling direction with mouse wheel for horizontal scroller.
102 changes since wmaker 0.63.1:
103 ............................
104 - added WMRunModalLoop() and WMBreakModalLoop()
105 - added WMSetBoxExpandsToParent()
106 - added WMRemoveBoxSubview()
107 - moved WINGs headers in a WINGs subdirectory when installed.
108 use #include <WINGs/header_file_name> in your application from now on.
109 Also updated get-{wings|wutil}-flags.
110 - Fixed a mem leak in WMList.
111 - Fixed a bug that caused sigsegv for a WMList with more than 32767 items.
112 - Added an example of how to create a server type program with WMConnection.
113 - added WMOpenScreen()
116 changes since wmaker 0.62.1:
117 ............................
118 - added WRuler widget
119 - added WText widget (rtf multiline text widget)
120 Nwanua Elumeze <nwanua@colorado.edu>
121 - added a new AUTO option for the UseMultiByte option
122 - added WMRaiseWidget()/WMLowerWidget()
123 - added missing EscapeTextMovement to textfield delegate/notification
124 - added WMGetLabelText()
125 - added WMReparentWidget()
126 - added WMCreateTabViewItem()
127 - added W_CreateUnmanagedTopView()
128 - added wtokenjoin(), wtokensplit(), wtokenfree(), wtrimspace()
129 - added WMWidgetIsMapped()
130 - added WMSetApplicationIconWindow()
131 - restructured the directory tree. Added Documentation, Examples and Tests
133 - removed WMArrayBag and reorganized WMTreeBag to be WMBag.
134 - added WMArray class.
135 - added WMSetWindowUserPosition()
136 - added WMGetListSelectedItems()
137 - added WMSetListAllowMultipleSelection(), WMListAllowsMultipleSelection().
138 - added WMSetListAllowEmptySelection(), WMListAllowsEmptySelection().
139 - WMListSelectionDidChangeNotification passes NULL as the notification
140 client data (previously passed the selected item row).
141 - added WMUnselectListItem(), WMSelectAllListItems(), WMUnselectAllListItems()
142 - better behavior of wheel mices in WMList. Simple mouse wheel events
143 will scroll by 1/3 of the WMList height. Using Shift as a modifier will
144 scroll line by line, while using Control as a modifier will scroll page
146 - better behavior of WMScroller regarding mouse wheel events. 'Shift' modifier
147 will scroll line by line, while 'Control' modifier will scroll page by page.
148 - fixed some buffer overflow allowing bugs.
149 - added WSDecrementWheel and WSIncrementWheel for handling mouse wheel in
150 scrollers and scrolled widgets. This should be treated like the WSxxxPage
151 counterparts, except it should scroll by page_size/3 instead of one full page
152 - added WMSetBrowserAllowMultipleSelection(), WMSetBrowserAllowEmptySelection()
153 WMBrowserAllowsMultipleSelection() and WMBrowserAllowsEmptySelection()
154 - WMBrowser now allows multiple selections.
155 - Added WMGetBrowserPaths() to retrieve the paths for browsers that allow
157 - WMDestroyWidget() now calls WMUnmapWidget() first
158 - added WMScrollerDidScrollNotification to scroller
159 - added WMGetScrollViewVisibleRect()
160 - fixed a mem leak in the browser code.
161 - renamed wstrappend() to wstrconcat(). wstrconcat(str1, str2) concatenates
162 str1 with str2 and returns that in a newly malloc'ed string.
163 Be sure to rename wstrappend with wstrconcat in your code too, else
164 hazardous things can happen!
165 - implemented a new wstrappend() function. wstrappend(dst, src) will append
166 src to dst modifing dst and returning a pointer to it. No new string is
167 generated, except if dst is NULL, in which case its the same as calling
169 dst can ONLY be NULL or a dynamically allocated string (obtained from a
170 call to malloc, realloc, wmalloc, wrealloc, ...). dst CANNOT be a static
171 or a constant string!
172 - added wmessage() for printing a variable formatted string to stderr, with
173 the program name prepended to it. Similar to wwarning(), except that it
174 doesn't add "warning:" in the output message.
176 - added WMAddTabViewItemWithView()
177 - added W_SetViewCursor()
178 - made Extra widgets library
179 - added table widget in Extras library
180 - added WMGetConnectionUnsentData() (WMGetConnectionQueuedData() too as an
182 - added WMSetConnectionCloseOnExec() to specify if the socket associated
183 with a connection survives an exec* call or not. When a new connection is
184 created using the WMCreate... or WMAcceptConnection() calls, it has the
185 close on exec flag set automatically to 'True' by the library. Unless
186 you want to let the socket of some connection to survive across an exec*
187 call, you need not to call this function.
188 - removed all the wsyserror() and wwarning() calls from host.c and
189 connection.c and replaced where appropriate with assertions. If a function
190 returns some invalid result, you can still get the system error message if
191 you need, by calling wsyserrorwithcode() and passing WCErrorCode, if
192 WCErrorCode > 0. If WCErrorCode==0, that is not a system error, and
193 wsyserrorwithcode() should not be called in this case.
194 - added WMNextHashEnumeratorKey() to retrieve all keys in some hash enumerator
196 - fixed a bug with mouse wheels scrolling in scrollers even with the widget
198 - Fixed a memory leak (the destroy function for a view was never called and
199 as a result the shaded windows didn't go away when closed. The non-shaded
200 windows were unmapped on close but not destroyed either so they only
201 apparently went away, but continued to use memory).
205 changes since wmaker 0.62.0:
206 ............................
207 - added WMSetWidgetDefaultFont(), WMSetWidgetDefaultBoldFont()
211 changes since wmaker 0.62.0:
212 ............................
213 - added WM{S,G}etDataFormat()
214 - added drag and drop
215 - changed selection code
216 - added clientdata to WMFindInBag
217 - removed SetWindowInitialSize()
218 - added SetWindowAspectRatio()
219 - added initial timeout when establishing a connection.
220 - added WMSetConnectionDefaultTimeout() and WMSetConnectionOpenTimeout();
221 - added WMGetConnectionTimeoutState()
223 changes since wmaker 0.61.1:
224 ............................
226 - WARNING: semantic of bags has changed!
227 An index assigned to an item will always keep that index unless
228 you insert an item before it.
232 WMSetInBag(bag, 10, "bla");
233 That code will put "bla" in index 10, instead of 0, as it used to be.
234 - fixed WMInsertInBag(). It ignored index, and always put the new item at end.
235 - added WMSaveUserDefaults().
236 - rewrote WMPopUpButton to use WMMenuItem
237 - added WMGetPopUpButtonMenuItem(WMPopUpButton *bPtr, int index)
238 - WMSortListItemsWithComparer(WMList *lPtr, (int)(f)(const void*, const void*))
239 - WMSortBrowserColumnWithComparer()
240 - fixed bug with sorting list items.
241 - fixed bug in handling keyboard input associated with selection and
242 notification sending.
243 - filepanel puts dirs on top of list (Wolff <wolff@cybercable.fr>)
244 - added WMReplaceInBag (Wolff <wolff@cybercable.fr>)
245 - added vertical views and multiple views in WMSplitView (Wolff <wolff@cybercable.fr>)
246 - changed values of parameter values of WMSplitViewConstrainProc()
247 - configurable default fontsize patch (Igor P. Roboul <igor@mordor.myip.org>)
248 - fixed a bug that crashed the programm when a popup button was scrolled.
249 - fixed a bug that caused incorrect drawing position of the popup indicator.
250 - fixed a bug that prevented selecting no item (-1) in a popup button.
251 - an assertion will be raised if the program tries to select a popup button
252 item that is beyond the total number of items present in the popup button.
253 - changed names of functions for SplitView to be consistent. Some contained
254 SubView while other Subview. Now all have Subview.
255 - fixed a bug in how input events were posted. Establishing 2 or more input
256 handlers for the same file descriptor, handling different (read/write/except)
257 events, caused wrong handlers to be called.
258 - Reimplemented the input and idle handlers with WMBag to avoid a functional
259 problem with them: inability to remove handlers next to the called one, from
260 the called handler itself. Trying to do this with the old version caused the
262 - changed wrealloc behaviour to be like this: new = wrealloc(old, new_size);
263 1. if old is NULL, return wmalloc(new_size).
264 2. if new_size is 0, call wfree(old), and return NULL.
265 3. if both old is a valid pointer and new_size>0, call realloc.
266 - added wstrerror(int errnum) to return the string associated with errnum.
267 - new wsyserrorwithcode(int error, const char* fmt, ...), similar to
268 wsyserror(), but printing the message for the specified error code.
269 - added 3 new classes: WMData, WMHost and WMConnection
270 - fixed a big memory leak in the color panel code (from Pascal Hofstee).
271 - added scrolling to tabview
273 changes since wmaker 0.61.0:
274 ............................
276 - added WMGetTextFieldFont()
277 - escape key in panels (craig nellist <crn@ozemail.com.au>)
278 - applied patch with fixes and enhancements to textfield
279 (Franck Wolff <wolff@cybercable.fr>)
280 - changed WMList to use WMBag internally, instead of a linked list
281 - replaced WMAddSortedListItem() with WMSortListItems()
282 - replaced WMAddSortedBrowserItem() with WMSortBrowserColumn()
284 changes since wmaker 0.60.0:
285 ............................
287 - added WMScreenWidth() and WMScreenHeight() functions.
288 - fixed some problems when compiling with non gcc compilers.
289 - added WMSetTextFieldFont()
290 - added WMSetButtonImageDefault() (craig nellist <crn@ozemail.com.au>)
291 - added WMBag (array/list)
292 - added libWUtil, a library that is a subset of libWINGs. It contains utils
293 that can be used in writing non-GUI programs. They include: hashes,
294 notifications, input/idle/timer handlers, user defaults database handling,
295 memory handling, application resource handling, etc.
296 All the non-GUI stuff from libWINGs is present.
297 Still linWINGs contain all this stuff so if you use libWINGs, you don't
298 need to link against libWUtil too.
299 One notable aspect of libWUtil is that it has a modified version of the
300 event handling function. It is named WHandleEvents() and will handle all
301 input/idle/timer events the app has.
302 If your app has a permanent input handler (as for example a socket a server
303 is listening on), then the main loop of the app can be:
307 but if there is no permanent input handler, you need to add some delay to
308 avoid a too high cpu load by your program:
313 A permanent input handler is one that is established when the program starts
314 and is present until the program exits.
315 One that is deleted and later reinstalled, is not considered permanent.
316 This difference is because if there is some input handler, the function will
317 block until some event appears, while if there is no input handler the
318 function will return almost immediately (after handling the timer/idle
321 Except the stuff declared in WUtil.h, the following functions declared in
322 WINGs.h are also present in libWUtil (you will need to #include <WINGs.h>
323 if you use one of these):
324 WMInitializeApplication(char *applicationName, int *argc, char **argv);
325 WMSetResourcePath(char *path);
326 WMGetApplicationName();
327 WMPathForResourceOfType(char *resource, char *ext);
328 WMAddTimerHandler(int milliseconds, WMCallback *callback, void *cdata);
329 WMDeleteTimerWithClientData(void *cdata);
330 WMDeleteTimerHandler(WMHandlerID handlerID);
331 WMAddIdleHandler(WMCallback *callback, void *cdata);
332 WMDeleteIdleHandler(WMHandlerID handlerID);
333 WMAddInputHandler(int fd, int condition, WMInputProc *proc,
335 WMDeleteInputHandler(WMHandlerID handlerID);
336 - added progress indicator widget
337 - Changed WMSetWindowUPosition() and WMSetWindowUSize() to
338 WMSetWindowInitialPosition() and WMSetWindowInitialSize() respectively,
339 for better naming conventions.
342 changes since wmaker 0.53.0:
343 ............................
346 - fixed a bug with setting initial path in browsers.
347 - added WMSetButtonImageDimsWhenDisabled()
348 - changed simple callback/notifications to delegate-like stuff. Affected
351 - WMSetBrowserFillProc() was replaced with WMSetBrowserDelegate
352 - WMBrowserDidScrollNotification was replaced with a delegate callback
354 WMTextField (not completed yet)
355 The notifications will still work, but using the delegate is preferable
357 How to convert old code to delegate callbacks:
358 1 - create a variable (static or dynamic) of the type of the
359 delegate for the widget type.
360 2 - Replace the notification observers with the equivalent
362 3 - Put pointers to the callbacks in the delegate variable.
364 Take a look in wfilepanel.c to see how it is used there.
366 - changed W_ViewProcedureTable to delegates
367 This will only affect user created widgets. If you have a custom
368 widget, you will need to update the callbacks and the declaration
369 of the W_ViewProcedureTable variable to be a W_ViewDelegate,
370 which is declared in WINGsP.h To setup the delegate, assign
371 the delegate variable to view->delegate.
374 Removed all the didChange notifications that were sent when the text
375 was changed programmatically. Only changes made by user interaction
376 will be notified now. If you need the old behaviour, send notifications
377 manually when you change the text.
380 - added WMGetColorPanelColor(WMColorPanel *panel)
381 - made WMGetUDStringForKey() to only return a reference to the string, not a
382 wstrdup()'ed copy. DO NOT FREE IT ANYMORE!
383 - added MultiByteText option to userdefaults file to control use of multibyte
384 string drawing functions
385 - renamed WMCreateFont() to WMCreateFontSet()
386 - renamed WMCreateFontInDefaultEncoding() to WMCreateNormalFont()
387 - added WMCreateFont() with different semantics
390 changes since wmaker 0.52.0:
391 ............................
393 - added int WMGetBrowserMaxVisibleColumns(WMBrowser *bPtr);
396 changes since wmaker 0.51.2:
397 ............................
399 - added WMColorWellDidChangeNotification
400 - added wfindfileinarray()
401 - fixed bug in window title setting
402 (MANOME Tomonori <manome@itlb.te.noda.sut.ac.jp>)
404 changes since wmaker 0.51.1:
405 ............................
407 - wusergnusteppath() will return a statically allocated string now.
408 DO NOT FREE IT ANYMORE!!
412 changes since wmaker 0.51.0:
413 ............................
415 - applied c++ compat header patch from Martynas Kunigelis <mkunigelis@alna.lt>
416 - added WMSetTextFieldBeveled()
417 - removed W_GC() : use WMColorGC() instead
418 - added WMCreatePixmap()
419 - changed WMSetTextFieldEnabled() to WMSetTextFieldEditable()
421 changes since wmaker 0.50.1:
422 ............................
425 - added patch from Franck Wolff <frawolff@club-internet.fr>, with
426 many fixes and enhancements
427 - added notification queues, asynchronous notifications etc.
428 - added WMSetBrowserDoubleAction()
429 - fixed list double click action
431 changes since wmaker 0.50.2:
432 ............................
434 - added wsetabort() - look WUtil.h
435 - fixed bug in WMList resize
436 - added notification sending when changing textfield programatically
437 - removed WMHideWindow()
438 - fixed bug in WMCloseWindow()
439 - added textfield selection patch
440 - added color panel code
441 - added auto name completion for the file panel
442 - added function to select text range, and to set cursor position in text
443 fields programatically
445 changes since wmaker 0.20.3:
446 ............................
448 - added WMSetSliderImage(), WMSetSliderKnobThickness()
449 - added WMGetListItemHeight()
450 - added WMListDidScrollNotification
451 - added WSetColorWellBordered()
452 - added hacky color dragging in colorwell
453 - added poll() support in WMNextEvent. WARNING: the stuff needed for
454 WMAddInputHandler() is not yet implemented for the poll stuff
455 - added WMSetFilePanelAccessoryView(), WMGetFilePanelAccessoryView()
456 - added WMSetPopUpButtonEnabled()
457 - added WMGetLabelImage()
458 - autoscroll for popup button menus
459 - added WMDrawPixmap()
460 - WARNING: changed parameter list for WMListDrawProc
462 changes since wmaker 0.20.2:
463 ............................
465 - WMSetBrowserMaxVisibleColumns() - untested
469 changes since wmaker 0.20.0:
470 ............................
472 - added generic object field for WMListItem. This is for hanging generic
476 changes since wmaker 0.20.0:
477 ............................
479 - changed WMGetFilePanelFile() with WMGetFilePanelFileName()
482 changes since wmaker 0.19.3:
483 ............................
485 - added WMCreatePanelForWindow()
486 - added extra parent parameter for filepanel, alertpanel and inputpanel
488 - WMChangePanelOwner()
489 - added WMAddInputHandler()
490 - change range related function arguments (WMTextField) to use WMRange
492 changes since wmaker 0.19.1:
493 ............................
496 - fixed bug when changing selected radio button by hand
498 changes since wmaker 0.18.1:
499 ............................
501 - removed textHeight arg from W_PaintImageAndText
502 - added WMCreateWindowWithStyle()
503 - added WMSetWindowBaseSize() and ResizeIncrements()
504 - added WMSetWindowLeve()
505 - added WMSetWindowDocumentEdited()
506 - added WMSetScrollViewLineScroll(), WMSetScrollViewPageScroll()
507 - added WMSetWindowMiniwindowTitle()
508 - added WMSetWindowMiniwindowImage()
510 changes since wmaker 0.18.0:
511 ............................
513 - added functions to get RGB components and "#rrggbb" string from WMColor.
514 - added function to create color from a name
515 - fixed bug that caused blocking until some new event arrives, even
516 when there already were events in the queue
517 (like having to move the pointer over window to force the window to be
520 changes since wmaker 0.17.5:
521 ............................
523 I don't remember everything, but here it goes:
525 - fixed some bugs in text field
526 - added a incomplete implementation of split view (not yet usable)
528 - changed the filepanel stuff. Each application can have only 1 file panel.
529 The same panel will be reused every time you call for it, unless you free it.
530 - changed semantics of WMCreateFont() so that it returns NULL if the requested
532 - removed WMAddDestroyCallback()
533 - fixed bug in WMRemovePopUpButtonItem()
534 - added function for user specified item height in WMList
535 - added WMSetPopUpButtonText(). It will set the default text in the button
536 when no options are selected
537 - fixed bug in remove/add item in already mapped popupbuttons. Note: it is
538 not good practice to change the contents of a popup button when it's
539 already visible and the user has probably interacted with it.
540 - fixed behaviour of "radio buttons"
541 - WMInitializeApplication() must be the first function to be called in the
543 - removed applicationName, argc and argv arguments from the WMCreateScree...
545 - WMReleaseColor(scr,color) changed to WMReleaseColor(color)
546 - WMPaintColorRectangle() changed to WMPaintColorSwatch()
547 - added various functions in font and color handling
548 - added WMSetButtonFont()
549 - changed WMCreateCommandButton() so that the buttons it creates will change
550 their label when pushed
551 - added WMGetSystemPixmap(WMScreen *scr, int image)
552 - added partial I18N support
553 - added libPropList requirement and some related utility functions
554 - added a interface to prooplist, so that it works as a user defaults db
555 - added WMWidthOfString() (removed WMFontWidthOfString())
556 - added WMDrawString()
557 - added WMSetTextFieldSecure(WMTextField *tPtr, Bool flag)
558 - WMGetListItem() will dup the returned string
559 - removed need for ProgName being defined
560 - rewrote hashtable stuff and made it available for outside use
561 - added notification functions, with view resize notification
562 - added WMSetWindowMinSize() and MaxSize()
563 - text editing notification
564 - added WMSetListPosition() etc.
565 - added WMInsertBrowserItem()
566 - the above 2 functions return WMListItem*, instead of Bool
568 - WMGetListItem() will return WMListItem*
569 - removed WMGetListItems() and WMSetListItems()
570 - fixed focus stuff for multi-window apps
571 - changed all WMList function names that contained index to row