- Now when Window Maker calls wmsetbg to set the background, it will pass the
[wmaker-crm.git] / WINGs / ChangeLog
blob8a01460832d04956f3b48494df308973f4463f37
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.
24 changes since wmaker 0.63.1:
25 ............................
26 - added WMRunModalLoop() and WMBreakModalLoop()
27 - added WMSetBoxExpandsToParent()
28 - added WMRemoveBoxSubview()
29 - moved WINGs headers in a WINGs subdirectory when installed.
30   use #include <WINGs/header_file_name> in your application from now on.
31   Also updated get-{wings|wutil}-flags.
32 - Fixed a mem leak in WMList.
33 - Fixed a bug that caused sigsegv for a WMList with more than 32767 items.
34 - Added an example of how to create a server type program with WMConnection.
35 - added WMOpenScreen()
38 changes since wmaker 0.62.1:
39 ............................
40 - added WRuler widget
41 - added WText widget (rtf multiline text widget) 
42         Nwanua Elumeze <nwanua@colorado.edu>
43 - added a new AUTO option for the UseMultiByte option
44 - added WMRaiseWidget()/WMLowerWidget()
45 - added missing EscapeTextMovement to textfield delegate/notification
46 - added WMGetLabelText()
47 - added WMReparentWidget()
48 - added WMCreateTabViewItem()
49 - added W_CreateUnmanagedTopView()
50 - added wtokenjoin(), wtokensplit(), wtokenfree(), wtrimspace()
51 - added WMWidgetIsMapped()
52 - added WMSetApplicationIconWindow()
53 - restructured the directory tree. Added Documentation, Examples and Tests
54   subdirectories
55 - removed WMArrayBag and reorganized WMTreeBag to be WMBag.
56 - added WMArray class.
57 - added WMSetWindowUserPosition()
58 - added WMGetListSelectedItems()
59 - added WMSetListAllowMultipleSelection(), WMListAllowsMultipleSelection().
60 - added WMSetListAllowEmptySelection(), WMListAllowsEmptySelection().
61 - WMListSelectionDidChangeNotification passes NULL as the notification 
62   client data (previously passed the selected item row).
63 - added WMUnselectListItem(), WMSelectAllListItems(), WMUnselectAllListItems()
64 - better behavior of wheel mices in WMList. Simple mouse wheel events
65   will scroll by 1/3 of the WMList height. Using Shift as a modifier will
66   scroll line by line, while using Control as a modifier will scroll page
67   by page.
68 - better behavior of WMScroller regarding mouse wheel events. 'Shift' modifier
69   will scroll line by line, while 'Control' modifier will scroll page by page.
70 - fixed some buffer overflow allowing bugs.
71 - added WSDecrementWheel and WSIncrementWheel for handling mouse wheel in
72   scrollers and scrolled widgets. This should be treated like the WSxxxPage
73   counterparts, except it should scroll by page_size/3 instead of one full page
74 - added WMSetBrowserAllowMultipleSelection(), WMSetBrowserAllowEmptySelection()
75   WMBrowserAllowsMultipleSelection() and WMBrowserAllowsEmptySelection()
76 - WMBrowser now allows multiple selections.
77 - Added WMGetBrowserPaths() to retrieve the paths for browsers that allow
78   multiple selections.
79 - WMDestroyWidget() now calls WMUnmapWidget() first
80 - added WMScrollerDidScrollNotification to scroller
81 - added WMGetScrollViewVisibleRect()
82 - fixed a mem leak in the browser code.
83 - renamed wstrappend() to wstrconcat(). wstrconcat(str1, str2) concatenates
84   str1 with str2 and returns that in a newly malloc'ed string.
85   Be sure to rename wstrappend with wstrconcat in your code too, else
86   hazardous things can happen!
87 - implemented a new wstrappend() function. wstrappend(dst, src) will append 
88   src to dst modifing dst and returning a pointer to it. No new string is 
89   generated, except if dst is NULL, in which case its the same as calling
90   wstrdup(src).
91   dst can ONLY be NULL or a dynamically allocated string (obtained from a
92   call to malloc, realloc, wmalloc, wrealloc, ...). dst CANNOT be a static
93   or a constant string!
94 - added wmessage() for printing a variable formatted string to stderr, with
95   the program name prepended to it. Similar to wwarning(), except that it
96   doesn't add "warning:" in the output message.
97 - added WMBox widget
98 - added WMAddTabViewItemWithView()
99 - added W_SetViewCursor()
100 - made Extra widgets library
101 - added table widget in Extras library
102 - added WMGetConnectionUnsentData() (WMGetConnectionQueuedData() too as an
103   alias).
104 - added WMSetConnectionCloseOnExec() to specify if the socket associated
105   with a connection survives an exec* call or not. When a new connection is
106   created using the WMCreate... or WMAcceptConnection() calls, it has the
107   close on exec flag set automatically to 'True' by the library. Unless
108   you want to let the socket of some connection to survive across an exec*
109   call, you need not to call this function.
110 - removed all the wsyserror() and wwarning() calls from host.c and
111   connection.c and replaced where appropriate with assertions. If a function
112   returns some invalid result, you can still get the system error message if
113   you need, by calling wsyserrorwithcode() and passing WCErrorCode, if
114   WCErrorCode > 0. If WCErrorCode==0, that is not a system error, and
115   wsyserrorwithcode() should not be called in this case.
116 - added WMNextHashEnumeratorKey() to retrieve all keys in some hash enumerator
117   one by one.
118 - fixed a bug with mouse wheels scrolling in scrollers even with the widget
119   fully visible.
120 - Fixed a memory leak (the destroy function for a view was never called and
121   as a result the shaded windows didn't go away when closed. The non-shaded
122   windows were unmapped on close but not destroyed either so they only
123   apparently went away, but continued to use memory).
127 changes since wmaker 0.62.0:
128 ............................
129 - added WMSetWidgetDefaultFont(), WMSetWidgetDefaultBoldFont()
133 changes since wmaker 0.62.0:
134 ............................
135 - added WM{S,G}etDataFormat()
136 - added drag and drop
137 - changed selection code
138 - added clientdata to WMFindInBag
139 - removed SetWindowInitialSize()
140 - added SetWindowAspectRatio()
141 - added initial timeout when establishing a connection.
142 - added WMSetConnectionDefaultTimeout() and WMSetConnectionOpenTimeout();
143 - added WMGetConnectionTimeoutState()
145 changes since wmaker 0.61.1:
146 ............................
148 - WARNING: semantic of bags has changed!
149         An index assigned to an item will always keep that index unless
150         you insert an item before it.
152         For example:
153                 bag = WMCreateBag();
154                 WMSetInBag(bag, 10, "bla");
155         That code will put "bla" in index 10, instead of 0, as it used to be.
156 - fixed WMInsertInBag(). It ignored index, and always put the new item at end.
157 - added WMSaveUserDefaults().
158 - rewrote WMPopUpButton to use WMMenuItem
159 - added WMGetPopUpButtonMenuItem(WMPopUpButton *bPtr, int index)
160 - WMSortListItemsWithComparer(WMList *lPtr, (int)(f)(const void*, const void*))
161 - WMSortBrowserColumnWithComparer()
162 - fixed bug with sorting list items.
163 - fixed bug in handling keyboard input associated with selection and
164   notification sending.
165 - filepanel puts dirs on top of list (Wolff <wolff@cybercable.fr>)
166 - added WMReplaceInBag (Wolff <wolff@cybercable.fr>)
167 - added vertical views and multiple views in WMSplitView (Wolff <wolff@cybercable.fr>)
168 - changed values of parameter values of WMSplitViewConstrainProc()
169 - configurable default fontsize patch (Igor P. Roboul <igor@mordor.myip.org>)
170 - fixed a bug that crashed the programm when a popup button was scrolled.
171 - fixed a bug that caused incorrect drawing position of the popup indicator.
172 - fixed a bug that prevented selecting no item (-1) in a popup button.
173 - an assertion will be raised if the program tries to select a popup button
174   item that is beyond the total number of items present in the popup button.
175 - changed names of functions for SplitView to be consistent. Some contained
176   SubView while other Subview. Now all have Subview.
177 - fixed a bug in how input events were posted. Establishing 2 or more input 
178   handlers for the same file descriptor, handling different (read/write/except)
179   events, caused wrong handlers to be called.
180 - Reimplemented the input and idle handlers with WMBag to avoid a functional
181   problem with them: inability to remove handlers next to the called one, from
182   the called handler itself. Trying to do this with the old version caused the
183   program to crash.
184 - changed wrealloc behaviour to be like this: new = wrealloc(old, new_size);
185     1. if old is NULL, return wmalloc(new_size).
186     2. if new_size is 0, call wfree(old), and return NULL.
187     3. if both old is a valid pointer and new_size>0, call realloc.
188 - added wstrerror(int errnum) to return the string associated with errnum.
189 - new wsyserrorwithcode(int error, const char* fmt, ...), similar to 
190   wsyserror(), but printing the message for the specified error code.
191 - added 3 new classes: WMData, WMHost and WMConnection
192 - fixed a big memory leak in the color panel code (from Pascal Hofstee).
193 - added scrolling to tabview
195 changes since wmaker 0.61.0:
196 ............................
198 - added WMGetTextFieldFont()
199 - escape key in panels (craig nellist <crn@ozemail.com.au>)
200 - applied patch with fixes and enhancements to textfield 
201         (Franck Wolff <wolff@cybercable.fr>)
202 - changed WMList to use WMBag internally, instead of a linked list
203 - replaced WMAddSortedListItem() with WMSortListItems()
204 - replaced WMAddSortedBrowserItem() with WMSortBrowserColumn()
206 changes since wmaker 0.60.0:
207 ............................
209 - added WMScreenWidth() and WMScreenHeight() functions.
210 - fixed some problems when compiling with non gcc compilers.
211 - added WMSetTextFieldFont()
212 - added WMSetButtonImageDefault() (craig nellist <crn@ozemail.com.au>)
213 - added WMBag (array/list)
214 - added libWUtil, a library that is a subset of libWINGs. It contains utils
215   that can be used in writing non-GUI programs. They include: hashes,
216   notifications, input/idle/timer handlers, user defaults database handling,
217   memory handling, application resource handling, etc.
218   All the non-GUI stuff from libWINGs is present.
219   Still linWINGs contain all this stuff so if you use libWINGs, you don't
220   need to link against libWUtil too.
221   One notable aspect of libWUtil is that it has a modified version of the
222   event handling function. It is named WHandleEvents() and will handle all
223   input/idle/timer events the app has.
224   If your app has a permanent input handler (as for example a socket a server
225   is listening on), then the main loop of the app can be:
226         while(1) {
227             WHandleEvents();
228         }
229   but if there is no permanent input handler, you need to add some delay to
230   avoid a too high cpu load by your program:
231         while(1) {
232             WHandleEvents();
233             wusleep(5000);
234         }
235   A permanent input handler is one that is established when the program starts
236   and is present until the program exits.
237   One that is deleted and later reinstalled, is not considered permanent.
238   This difference is because if there is some input handler, the function will
239   block until some event appears, while if there is no input handler the
240   function will return almost immediately (after handling the timer/idle
241   stuff).
243   Except the stuff declared in WUtil.h, the following functions declared in
244   WINGs.h are also present in libWUtil (you will need to #include <WINGs.h>
245   if you use one of these):
246         WMInitializeApplication(char *applicationName, int *argc, char **argv);
247         WMSetResourcePath(char *path);
248         WMGetApplicationName();
249         WMPathForResourceOfType(char *resource, char *ext);
250         WMAddTimerHandler(int milliseconds, WMCallback *callback, void *cdata);
251         WMDeleteTimerWithClientData(void *cdata);
252         WMDeleteTimerHandler(WMHandlerID handlerID);
253         WMAddIdleHandler(WMCallback *callback, void *cdata);
254         WMDeleteIdleHandler(WMHandlerID handlerID);
255         WMAddInputHandler(int fd, int condition, WMInputProc *proc,
256                           void *clientData);
257         WMDeleteInputHandler(WMHandlerID handlerID);
258 - added progress indicator widget
259 - Changed WMSetWindowUPosition() and WMSetWindowUSize() to
260   WMSetWindowInitialPosition() and WMSetWindowInitialSize() respectively,
261   for better naming conventions.
264 changes since wmaker 0.53.0:
265 ............................
267 - added balloon help
268 - fixed a bug with setting initial path in browsers.
269 - added WMSetButtonImageDimsWhenDisabled()
270 - changed simple callback/notifications to delegate-like stuff. Affected
271   widgets are:
272         WMBrowser
273         - WMSetBrowserFillProc() was replaced with WMSetBrowserDelegate
274         - WMBrowserDidScrollNotification was replaced with a delegate callback
276         WMTextField (not completed yet)
277         The notifications will still work, but using the delegate is preferable
279   How to convert old code to delegate callbacks:
280         1 - create a variable (static or dynamic) of the type of the 
281             delegate for the widget type.
282         2 - Replace the notification observers with the equivalent 
283             delegate callbacks. 
284         3 - Put pointers to the callbacks in the delegate variable.
286         Take a look in wfilepanel.c to see how it is used there.
288 - changed W_ViewProcedureTable to delegates
289         This will only affect user created widgets. If you have a custom
290         widget, you will need to update the callbacks and the declaration
291         of the W_ViewProcedureTable variable to be a W_ViewDelegate,
292         which is declared in WINGsP.h  To setup the delegate, assign
293         the delegate variable to view->delegate.
295 - WMTextField
296         Removed all the didChange notifications that were sent when the text
297         was changed programmatically. Only changes made by user interaction
298         will be notified now. If you need the old behaviour, send notifications
299         manually when you change the text.
301 - added WMTabView
302 - added WMGetColorPanelColor(WMColorPanel *panel)
303 - made WMGetUDStringForKey() to only return a reference to the string, not a
304   wstrdup()'ed copy. DO NOT FREE IT ANYMORE!
305 - added MultiByteText option to userdefaults file to control use of multibyte
306   string drawing functions
307 - renamed WMCreateFont() to WMCreateFontSet()
308 - renamed WMCreateFontInDefaultEncoding() to WMCreateNormalFont()
309 - added WMCreateFont() with different semantics
312 changes since wmaker 0.52.0:
313 ............................
315 - added int WMGetBrowserMaxVisibleColumns(WMBrowser *bPtr);
318 changes since wmaker 0.51.2:
319 ............................
321 - added WMColorWellDidChangeNotification
322 - added wfindfileinarray()
323 - fixed bug in window title setting 
324         (MANOME Tomonori <manome@itlb.te.noda.sut.ac.jp>)
326 changes since wmaker 0.51.1:
327 ............................
329 - wusergnusteppath() will return a statically allocated string now.
330  DO NOT FREE IT ANYMORE!!
334 changes since wmaker 0.51.0:
335 ............................
337 - applied c++ compat header patch from Martynas Kunigelis <mkunigelis@alna.lt>
338 - added WMSetTextFieldBeveled()
339 - removed W_GC() : use WMColorGC() instead
340 - added WMCreatePixmap()
341 - changed WMSetTextFieldEnabled() to WMSetTextFieldEditable()
343 changes since wmaker 0.50.1:
344 ............................
346 - fixed various bugs
347 - added patch from Franck Wolff <frawolff@club-internet.fr>, with
348   many fixes and enhancements
349 - added notification queues, asynchronous notifications etc.
350 - added WMSetBrowserDoubleAction()
351 - fixed list double click action
353 changes since wmaker 0.50.2:
354 ............................
356 - added wsetabort() - look WUtil.h
357 - fixed bug in WMList resize
358 - added notification sending when changing textfield programatically
359 - removed WMHideWindow()
360 - fixed bug in WMCloseWindow()
361 - added textfield selection patch
362 - added color panel code
363 - added auto name completion for the file panel
364 - added function to select text range, and to set cursor position in text
365   fields programatically
367 changes since wmaker 0.20.3:
368 ............................
370 - added WMSetSliderImage(), WMSetSliderKnobThickness()
371 - added WMGetListItemHeight()
372 - added WMListDidScrollNotification
373 - added WSetColorWellBordered()
374 - added hacky color dragging in colorwell
375 - added poll() support in WMNextEvent. WARNING: the stuff needed for
376   WMAddInputHandler() is not yet implemented for the poll stuff
377 - added WMSetFilePanelAccessoryView(), WMGetFilePanelAccessoryView()
378 - added WMSetPopUpButtonEnabled()
379 - added WMGetLabelImage()
380 - autoscroll for popup button menus
381 - added WMDrawPixmap()
382 - WARNING: changed parameter list for WMListDrawProc
384 changes since wmaker 0.20.2:
385 ............................
387 - WMSetBrowserMaxVisibleColumns() - untested
391 changes since wmaker 0.20.0:
392 ............................
394 - added generic object field for WMListItem. This is for hanging generic
395   clientdata
398 changes since wmaker 0.20.0:
399 ............................
401 - changed WMGetFilePanelFile() with WMGetFilePanelFileName()
402 - made SavePanel
404 changes since wmaker 0.19.3:
405 ............................
407 - added WMCreatePanelForWindow()
408 - added extra parent parameter for filepanel, alertpanel and inputpanel
409 - WMCloseWindow()
410 - WMChangePanelOwner()
411 - added WMAddInputHandler()
412 - change range related function arguments (WMTextField) to use WMRange
414 changes since wmaker 0.19.1:
415 ............................
417 - added wstrappend()
418 - fixed bug when changing selected radio button by hand
420 changes since wmaker 0.18.1:
421 ............................
423 - removed textHeight arg from W_PaintImageAndText
424 - added WMCreateWindowWithStyle()
425 - added WMSetWindowBaseSize() and ResizeIncrements()
426 - added WMSetWindowLeve()
427 - added WMSetWindowDocumentEdited()
428 - added WMSetScrollViewLineScroll(), WMSetScrollViewPageScroll()
429 - added WMSetWindowMiniwindowTitle()
430 - added WMSetWindowMiniwindowImage()
432 changes since wmaker 0.18.0:
433 ............................
435 - added functions to get RGB components and "#rrggbb" string from WMColor.
436 - added function to create color from a name
437 - fixed bug that caused blocking until some new event arrives, even
438   when there already were events in the queue
439   (like having to move the pointer over window to force the window to be
440   painted)
442 changes since wmaker 0.17.5:
443 ............................
445 I don't remember everything, but here it goes:
447 - fixed some bugs in text field
448 - added a incomplete implementation of split view (not yet usable)
449 - added a slider
450 - changed the filepanel stuff. Each application can have only 1 file panel.
451 The same panel will be reused every time you call for it, unless you free it.
452 - changed semantics of WMCreateFont() so that it returns NULL if the requested
453   font can't be loaded
454 - removed WMAddDestroyCallback() 
455 - fixed bug in WMRemovePopUpButtonItem()
456 - added function for user specified item height in WMList
457 - added WMSetPopUpButtonText(). It will set the default text in the button
458   when no options are selected
459 - fixed bug in remove/add item in already mapped popupbuttons. Note: it is
460   not good practice to change the contents of a popup button when it's
461   already visible and the user has probably interacted with it.
462 - fixed behaviour of "radio buttons"
463 - WMInitializeApplication() must be the first function to be called in the
464   program
465 - removed applicationName, argc and argv arguments from the WMCreateScree...
466   functions
467 - WMReleaseColor(scr,color) changed to WMReleaseColor(color)
468 - WMPaintColorRectangle() changed to WMPaintColorSwatch()
469 - added various functions in font and color handling
470 - added WMSetButtonFont()
471 - changed WMCreateCommandButton() so that the buttons it creates will change
472         their label when pushed
473 - added WMGetSystemPixmap(WMScreen *scr, int image)
474 - added partial I18N support
475 - added libPropList requirement and some related utility functions
476 - added a interface to prooplist, so that it works as a user defaults db
477 - added WMWidthOfString() (removed WMFontWidthOfString())
478 - added WMDrawString()
479 - added WMSetTextFieldSecure(WMTextField *tPtr, Bool flag)
480 - WMGetListItem() will dup the returned string
481 - removed need for ProgName being defined
482 - rewrote hashtable stuff and made it available for outside use
483 - added notification functions, with view resize notification
484 - added WMSetWindowMinSize() and MaxSize()
485 - text editing notification
486 - added WMSetListPosition() etc.
487 - added WMInsertBrowserItem()
488 - the above 2 functions return WMListItem*, instead of Bool
489 - rewrote browser
490 - WMGetListItem() will return WMListItem*
491 - removed WMGetListItems() and WMSetListItems()
492 - fixed focus stuff for multi-window apps
493 - changed all WMList function names that contained index to row