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