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