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