simplify change mode
[gcalctool.git] / ChangeLog-2002
blob6717616a2368341b8bcf5db9fbfc2916237a2bc2
1 /*  $Header: /cvs/gnome/gcalctool/ChangeLog-2002,v 1.4 2006/01/09 16:30:20 richb Exp $
2  *
3  *  Copyright (c) 1987-2007 Sun Microsystems, Inc.
4  *  All Rights Reserved.
5  */
7 gcalctool change history - 2002.
8 ================================
10 v4.1.27 - 24th December 2002.  (richb)
12 * Fixed bug #101782 (http://bugzilla.gnome.org/show_bug.cgi?id=101782)
14   Removed trailing "\n"'s where possible. Also removed a few inappropriate
15   leading spaces before newlines. Paragraphs should hopefully format better.
17 ----
19 v4.1.26 - 24th December 2002.  (richb)
21 * Fixed bug #101861 (http://bugzilla.gnome.org/show_bug.cgi?id=101861)
23   The size of the memory register window was being hard-wired. These
24   fixed values have been removed, and everything is now dynamically
25   sized. This should now work with any font.
27 ----
29 v4.1.25 - 23th December 2002.  (richb)
31 * Fixed bug #101867 (http://bugzilla.gnome.org/show_bug.cgi?id=101867)
33   Changed multiply key from "X" to "*" (same as the existing gnome-calculator).
35 ----
37 v4.1.24 - 23th December 2002.  (richb)
39 * Fixed bug #101780 (http://bugzilla.gnome.org/show_bug.cgi?id=101780)
41   Removed leading and trailing spaces from the labels for the gcalctool
42   buttons.
44 ----
46 v4.1.23 - 23th December 2002.  (richb)
48 * Fixed bug #101777 (http://bugzilla.gnome.org/show_bug.cgi?id=101777)
50   Removed trailing periods on the four window titles.
52 ----
54 v4.1.22 - 23th December 2002.
56   23th December 2002 - HideToshi Tajima <hidetoshi.tajima@Sun.COM>
57         
58   * gcalctool/calctool.c:
59         Changed _() to N_() for the strings in the structure tables.
60   * gcalctool/gtk.c:
61         Put _() to the strings in the set_item, set_label and set_title()
62         funtcions.
63   * gcalctool/graphics.c:
64         Put _() to the mode_buttons[] in button_str() function.
66 ----
68 v4.1.21 - 20th December 2002.
70   20th December 2002 - HideToshi Tajima <hidetoshi.tajima@Sun.COM>
71         
72   * gcalctool/gtk.c:
73         Added N_() macro on GtkItemFactoryMenu.
74         Set a translation function to all of the gtk item factory objects.
75   * gcalctool/calctool.h
76         Added "config.h" in calctool.h for ENABLE_NLS.
77         Changed PACKAGE to GETTEXT_PACKAGE in dgettext().
78         Added N_ macro both for #ifdef ENABLE_NLS and the else case.
79 ----
81 v4.1.20 - 10th September 2002.
83 * [Sun Bugtraq bug #1102883 against DeskSet calctool].
84   If you enter 2 and select Inv, select Sin to get the arc sine value,
85   "Error" is displayed on the window. Do the same thing but select Cos
86   to get arc cosine value, the error message is "acos DOMAIN error",
87   which is better. Sine should have the same error message to be more
88   consistant.
90   Fixed this by making all error messages just display "Error" which is
91   more consistent.
93 ----
95 v4.1.19 - 10th September 2002.
97 * [Sun Bugtraq bug #4006391 against CDE dtcalc].
98   Bring up gcalctool, enter 10000 X 0.58 =, get answer is 5800.
99   Then click on Int button, supposely should get 5800, but the answer is 5799.
101   [Evaluation taken from bug #4006391:
103   10000 * 0.58 = 5800
105   The value displayed should be 5800. However the actual number calculated is
106   5799.999999999999999999999999999...
108   This value is stored in an array of type int, the array has 150 elements.
109   The second field tells how many fields the integer part takes up, in this 
110   case 1 as 5799 is smaller than MAX_INT. The next N cells hold the fraction 
111   part.
113   When we determine the Int value, we simply set the fraction part to 0, 
114   which leaves us with a value of 5799].
116   The fix in dtcalc for bug #4006391 is wrong. Need to set the accuracy to
117   MAX_DIGITS in mpcmim() in mp.c (not 9).
119 ----
121 v4.1.18 - 10th September 2002.
123 * [Sun Bugtraq bug #1258472 against CDE dtcalc].
124   Start up gcalctool and set to decimal and fixed. Set accuracy to 2 decimal 
125   places. Do a division like 0.19/2  It gives 0.0A
127   Changes to make_number() and make_fixed(). Took the fix from bug #1258472 
128   (reworked for smaller/simpler code). This introduces a min_fix 
129   two-dimensional array (accurracy/base), and if we are displaying a fixed 
130   number (that isn't 0.0), and mpFix is TRUE, then tests whether the number 
131   to be displayed is less that the appropriate min_fix value.
133   In make_fixed() we also test if dval is greater that base-1 and if it is,
134   then it's reset to base-1.
136 * Removed all occurances of v->row and v->column as they are no longer
137   needed.
139 ----
141 v4.1.17 - 10th September 2002.
143 * [Sun Bugtraq bug #1190181 against OpenWindows DeskSet calctool].
144   gcalctool core dumped if parent directory was not readable.
146   Following scenario:
148     % cd /tmp
149     % mkdir subdir
150     % cd subdir
151     % mkdir asubdir
152     % chmod 100 .
153     % cd asubdir
154     % /home/richb/rich_stuff/gcalctool/gcalctool/gcalctool
155       Segmentation Fault (core dumped)
157   The problem occured because gcalctool failed to handle NULL returned
158   from getcwd().
160   There were two occurances, in read_rcfiles() and write_rcfile(). Have
161   added more bullet proofing to check if the return value of getcwd() is
162   NULL.
164 ----
166 v4.1.16 - 9th September 2002.
168 * Added all the bugs/rfe's from Sun's bugtraq database that need to be fixed
169   (and/or implemented) at sometime.
171 * Adjusted the definition of matherr() in calctool.c so that strict ANSI C
172   compilers will compile it if _XOPEN_SOURCE is defined.
174 * If gcalctool initially came up in BASIC mode, and you then tried to display
175   one of the other modes, the buttons in the mode window would be incorrect.
176   Needed to set v->modetype appropriately in make_mtable() in gtk.c just
177   before get_label() was called.
179 ----
181 v4.1.15 - 9th September 2002.
183 * With the changes made in v4.1.14, the Keys functionality no longer did 
184   the correct thing when the calculator was setup as left-handed. Changes 
185   made to do_keys() to get the correct index for the appropriate button.
187 * If you switched hands (left/right-handed), the redisplay of the calculator
188   keys in the main window, did not take into effect whether the user was 
189   currently showing the keyboard equivalents. This was fixed by using the 
190   get_label() funcion in make_ktable() and m,ake_mtable().
192 * Simplified the get_label() routine to no longer return the numbers of 
193   chars and spaces in the label.
195 ----
197 v4.1.14 - 9th September 2002.
199 * If started as left-handed (gconf key "righthanded" is "false"), and the
200   user is using the old OpenWindows colors (with the supplied gcalctoolrc
201   file), the buttons are not colored correctly.
203   Have adjusted the code so that the buttons are attached in the table in
204   the appropriate positions depending upon whether it's left or right handed,
205   rather than rearranging the entries in the buttons struct.
207 ----
209 v4.1.13 - 30th August 2002.
211 * The unused buttons in the mode window are now hidden. Doing this before
212   was a problem because it made the size of the remaining visible ones 
213   incorrect. This now works, because the GtkTable* is now created with the
214   third parameter TRUE; i.e. each button is the size of the largest one.
216   This also fixes the problem where not all the unused buttons on the 
217   various mode popups are colored correctly (if the user is using the 
218   old OpenWindows colors (with the supplied gcalctoolrc file). Adjusted
219   the supplied gcalctoolrc to remove the grey-bg and back-bg styles, and
220   the mode buttons that used them.
222 ----
224 v4.1.12 - 30th August 2002.
226 * Replaced the use of X resources with gconf schemas. Updated the manual 
227   pages to reflect this change. Note this is a minimal gconf implementation.
228   gcalctool doesn't actively look for other applications changing its
229   key/value pairs. Also all the keys are stored as strings to make it more
230   portable and easier to convert to the next resource database technology 
231   when it comes along.
233 ----
235 v4.1.11 - 29th August 2002.
237 * Explicitly setting the size of the calculator buttons has been removed.
238   Each button is now the size of the largest one in that table.
240 * The width of the mode window is now set to be the width of the main
241   calculator window (the size was previously hard-wired).
243 ----
245 v4.1.10 - 29th August 2002.
247 * Fixes for I18N support from HideToshi Tajima <hidetoshi.tajima@sun.com>.
248   Thanks!
250 ----
252 v4.1.9 - 24th June 2002.
254 * Now that gcalctool is using Gtk resources to determine the appearance of 
255   the calculator, there is no need to use the custom display_frame widget. 
256   This means that the display_frame.[c,h] files are removed from the 
257   distribution.
259 * The calculator display area now has tooltip help.
261 ----
263 v4.1.8 - 21st June 2002.
265 * Fixed up mistakes is the gcalctool tooltip help text (as it pertains now
266   to gcalctool rather than the old XView calctool).
268 * Three keyboard accelerators weren't working when a "menu" button had been
269   pressed and the calculator was in pending mode:
271   Base button - "o" (octal).
272   Mode button - "l" (logical).
273   Trig button - "g" (gradient).
275   Extra code has been added to the frame_interpose() routine in gtk.c to
276   cater for keypresses when in pending mode, that aren't automatically
277   handled by existing keyboard accelerators.
279 * The + and . keys on the numeric keypad don't work.
280   (See: http://bugzilla.gnome.org/show_bug.cgi?id=79184)
281   For now, explicit code has been added to frame_interpose() in gtk.c to
282   handle these two keys. This should be removed when 79184 is fixed.
284 ----
286 v4.1.7 - 20th June 2002.
288 * Added in help support. Hitting the Help key will toggle whether tooltip
289   help messages are displayed for the various buttons and other widgets.
291   By default tooltips are disabled. Start gcalctool with the "-h" command
292   line option will enable them. There is also a "gcalctool.showhelp"
293   resource that can enable/disdable them. 
295   Used the text from the calctool.info file in the XView distribution for 
296   the tooltip messages.
298   The manual pages have been updated to reflect these changes.
300 ----
302 v4.1.6 - 20th June 2002.
304 * The new Constant/Function popup now has the various items aligned.
306 ----
308 v4.1.5 - 20th June 2002.
310 * The size of the buttons in the Mode window are incorrect if the unused ones
311   are not shown. Solved this my simply making the unused ones insnsitive, and
312   showing them all.
314 ----
316 v4.1.4 - 19th June 2002.
318 * Keyboard accelerators now work for the gcalctool "menu" buttons. Needed to
319   add a g_signal_connect( ... "clicked" ...) callback for all buttons, not
320   just the non-menu" buttons.
322 ----
324 v4.1.3 - 14th June 2002.
326 * The constant and function definitions are now read and written to a file
327   named ~/.gcalctoolcf  now (was ~/.gcalctoolrc). Manual pages also updated
328   to reflect this change.
330 * gcalctool now also tries to read a ~/.gcalctoolrc file at startup time.
331   This file (if it exists) can contain resources for changing the appearance
332   of the application. A gcalctoolrc file is now also included with the
333   gcalctool distribution, which gives the old OpenWindows DeskSet appearance
334   to the calculator.
336 * The ability to change various colors via X resources has also been removed.
337   The manual pages have been updated to reflect this.
339   This change means that all code related to colors has been removed from
340   gcalctool. color.h has been removed from the distribution.
342 ----
344 v4.1.2 - 13th June 2002.
346 * Removed all the code in gtk.c that was surronded by #ifdef FIXUP.
348 * Starting gcalctool then switching hands to left-handed, then using the
349   keyboard for input wrongly associates the various keyboard accelerators
350   for the swapped keys.
352   Reworked the logic in set_prop_options() in gtk.c. Needed to remove the
353   keyboard accelerators for the old buttons, before the keyboard layout
354   was switched.
356 ----
358 v4.1.1 - 13th June 2002.
360 * Adjusted configure.in to find the X11 libraries in a platform independent
361   way.
363 * Fixed up the gcalctool usage message. Removed command line options that 
364   are no longer applicable to the Gtk2 version.
366 * Fixed up the gcalctool manual pages (removed calctool.1 and created a new
367   gcalctool.1). Fixes include:
368   - changing all occurances of "calctool" to "gcalctool".
369   - removing command line options that are no longer supported.
370   - removing X resources that are no longer supported.
372 * gcalctool now looks for ~/.gcalctoolrc and ~/.gcalctooldefaults files 
373   rather than ~/.calctoolrc and ~/.calctooldefaults
375 * X resources are not "gcalctool.<whatever" rather than "calctool.<whatever>".
377 ----
379 v4.1.0 - 3rd May - 5th June 2002.
381 * Started work on a Gtk2 version:
383   - Create an automake/autoconf environment that builts against the Solaris
384     GNOME 2 beta3 release.
386   - Conversion of the XView graphics to Gtk2: 
387     . Added new gtk.c source file and removed xview.c.
388     . Converted .icon files to .xbm files.
390     Note that the code is no longer easily portable to other graphic toolkits,
391     and now uses higher level graphic widgets. This reduced the code line 
392     count by over 5000.
394   - Del key wasn't being recognized. For XView was '\177'; for Gtk2 need
395     to use values in <gdk/gdkkeysyms.h>. Change needed in text.c for setting 
396     the .value entry on the button structure for the del key, to be an int 
397     not a char. Also had to adjust get_key_val to return an int. menu_entries 
398     changed to array of int's not char's.
400   - The Control-L keyboard accelerator (used to refresh the display) has been
401     removed. Everything is a high-level widget now, so automatic redrawing
402     should occur.
404   - Cut and Paste function keys now do the right thing.
405   - Switching "hands" now works from the calctool property sheet.
407   - Removed the "Display: [color][monochrome]" option from the property sheet,
408     fixed up the code to no longer care about this option, and removed the
409     associated command line options and X property.
411   - Two fprintf() statements in the mpchk() routine in mp.c did not have their
412     numeric arguments.
414   - Fixed up all the deprecated Gtk calls.
415     Modify CFLAGS to add:
417       -DG_DISABLE_DEPRECATED 
418       -DGDK_PIXBUF_DISABLE_DEPRECATED
419       -DGDK_DISABLE_DEPRECATED 
420       -DGTK_DISABLE_DEPRECATED
422     then fixed up the warnings and errors that were reported.
424   - This version placed into CVS on cvs.gnome.org as module "gcalctool".
426 ----
428 v4.0.0 - 26th February 2002.
430   26th February 2002 - Rich Burridge <rich.burridge@Sun.COM>
432   Preparation for releasing the calctool sources to the community:
434   - Added "#define OWTOOLKIT_WARNING_DISABLED" to calctool_ui.c and xview.c
436   - Added code into calctool_ui.c from:
438     /net/dtserver/export/src_998/MASTER_OL3.0/external/DeskSet/V3_release:
439     .../audiotool/guide/libguidexv/group.h
440     .../audiotool/guide/libguide/guide.h
441     .../audiotool/guide/libguidexv/group_impl.h
443     This file also includes dummy routines for:
445     group_destroy()
446     group_set()
447     group_get()
448     group_init()
450     and a definition for group_pkg.
452   - Created dsdefs.h which includes definitions from:
454     /net/dtserver/export/src_300/PMASTER_OL300/external/DeskSet:
455     .../libdeskset/ds_popup.h
456     .../libdeskset/ds_xlib.h
458     Adjusted calctool_ui.c and xview.c to call this.
460   - Create dsfuns.c which includes code from:
462     /net/dtserver/export/src_300/PMASTER_OL300/external/DeskSet:
463     .../libdeskset/ds_xlib.c
464     .../libdeskset/ds_popup.c
465     .../libdeskset/ds_pathname.c
466     .../libdeskset/ds_hostname.c
468   - Fixed up one of the compiler warnings in xview.c
470   - Adjusted the build environment to use autoconf and automake.
472   - Moved all the image file into the .../calctool/calctool directory, and
473     adjusted calctool_ui.c, graphics.c and xview.c accordingly.
475   - Adjusted all the copyright notices to have dates upto 2002.
477   - Fixed up most of the warnings generated by the Gnu compiler and lint.
479   - Removed patchlevel.h and replaced it with VERSION from config.h
481   - Adjusted the code to K&R style.
483   - Removed the "calctool_" prefix on all names in calctool_ui.c and
484     calctool_ui.h (and calls in xview.c).
486   - Created AUTHORS, NEWS and README files.
488   - Adjusted the calctool manual pages to remove references to the Solaris
489     User's Guide and the note to indicate that the OpenWindows environment
490     may no longer be supported in a future release.